Gets the gtk.Layout used to display the entry.
The layout is useful to e.g. convert text positions to
pixel positions, in combination with Entry.getLayoutOffsets.
The returned layout is owned by the entry and must not be
modified or freed by the caller.
Gets the gtk.Layout used to display the entry. The layout is useful to e.g. convert text positions to pixel positions, in combination with 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 Entry.layoutIndexToTextIndex and Entry.textIndexToLayoutIndex are needed to convert byte indices in the layout to byte indices in the entry contents.