Sets our main struct and passes it to the parent class.
A destructor is present on this object, but not explicitly documented in the source.
Determines whether iter is on the last line of the layout.
Copies a PangoLayoutIter
Frees an iterator that's no longer in use.
Gets the Y position of the current line's baseline, in layout coordinates (origin at top left of the entire layout).
Gets the extents of the current character, in layout coordinates (origin is the top left of the entire layout). Only logical extents can sensibly be obtained for characters; ink extents make sense only down to the level of clusters.
Gets the extents of the current cluster, in layout coordinates (origin is the top left of the entire layout).
Gets the current byte index. Note that iterating forward by char moves in visual order, not logical order, so indexes may not be sequential. Also, the index may be equal to the length of the text in the layout, if on the NULL run (see Layout.iterGetRun).
Gets the layout associated with a PangoLayoutIter
Obtains the extents of the gtk.Layout being iterated over. ink_rect or logical_rect can be NULL if you aren't interested in them.
Gets the current line.
Obtains the extents of the current line. ink_rect or logical_rect can be NULL if you aren't interested in them. Extents are in layout coordinates (origin is the top-left corner of the entire gtk.Layout). Thus the extents returned by this function will be the same width/height but not at the same x/y as the extents returned from Layout.lineGetExtents.
Gets the current line for read-only access.
Divides the vertical space in the gtk.Layout being iterated over between the lines in the layout, and returns the space belonging to the current line. A line's range includes the line's logical extents, plus half of the spacing above and below the line, if Layout.setSpacing has been called to set layout spacing. The Y positions are in layout coordinates (origin at top left of the entire layout).
Get the main Gtk struct
Gets the current run. When iterating by run, at the end of each line, there's a position with a NULL run, so this function can return NULL. The NULL run at the end of each line ensures that all lines have at least one run, even lines consisting of only a newline.
Gets the extents of the current run in layout coordinates (origin is the top left of the entire layout).
Gets the current run. When iterating by run, at the end of each line, there's a position with a NULL run, so this function can return NULL. The NULL run at the end of each line ensures that all lines have at least one run, even lines consisting of only a newline.
the main Gtk struct as a void*
Moves iter forward to the next character in visual order. If iter was already at the end of the layout, returns FALSE.
Moves iter forward to the next cluster in visual order. If iter was already at the end of the layout, returns FALSE.
Moves iter forward to the start of the next line. If iter is already on the last line, returns FALSE.
Moves iter forward to the next run in visual order. If iter was already at the end of the layout, returns FALSE.
the main Gtk struct
A PangoLayoutIter structure can be used to iterate over the visual extents of a gtk.Layout
The PangoLayoutIter structure is opaque, and has no user-visible fields.