Gtk.Entry.prototype.get_layout
function get_layout():Pango.Layout {
// Gjs wrapper for gtk_entry_get_layout()
}Gets the Pango.Layout used to display the entry. The layout is useful to e.g. convert text positions to pixel positions, in combination with Gtk.get_layout_offsets. The returned layout is owned by the entry and must not be modified or freed by the caller.
Keep in mind that the layout text may contain a preedit string, so Gtk.layout_index_to_text_index and Gtk.text_index_to_layout_index are needed to convert byte indices in the layout to byte indices in the entry contents.
- Returns
the Pango.Layout for this entry