Entry.getLayout

Gets the #PangoLayout used to display the entry. The layout is useful to e.g. convert text positions to pixel positions, in combination with gtk.entry.Entry.getLayoutOffsets. 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.entry.Entry.layoutIndexToTextIndex and gtk.entry.Entry.textIndexToLayoutIndex are needed to convert byte indices in the layout to byte indices in the entry contents.

class Entry
getLayout
()

Return Value

Type: pango.layout.Layout

the #PangoLayout for this entry