Method

GtkEntryget_layout

Declaration [src]

PangoLayout*
gtk_entry_get_layout (
  GtkEntry* entry
)

Description [src]

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_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_entry_layout_index_to_text_index() and gtk_entry_text_index_to_layout_index() are needed to convert byte indices in the layout to byte indices in the entry contents.

Return value

Type: PangoLayout

The PangoLayout for this entry.

The returned data is owned by the instance.