Import line: | Pango = imports.gi.Pango; |
GIR File: | Pango-1.0.gir |
C documentation: | Pango.LayoutIter |
Struct : | LayoutIter |
None |
Method / Constructor | Defined By | |
---|---|---|
at_last_line
()
:
gboolean
Determines whether iter is on the last line of the layout.
Determines whether iter is on the last line of the layout.
|
Pango.LayoutIter | |
copy
()
:
Pango.LayoutIter
Copies a PangLayoutIter.
Copies a PangLayoutIter.
be freed with pango_layout_iter_free(), or NULL if
|
Pango.LayoutIter | |
free
()
:
none
Frees an iterator that's no longer in use.
Frees an iterator that's no longer in use.
|
Pango.LayoutIter | |
get_baseline
()
:
gint32
Gets the Y position of the current line's baseline, in layout
coordinates (origin at top left of the entire layout).
Gets the Y position of the current line's baseline, in layout
coordinates (origin at top left of the entire layout).
|
Pango.LayoutIter | |
get_char_extents
(Rectangle logical_rect)
:
none
Gets the extents of the current character, in layout coordinates
(origin is the 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.
|
Pango.LayoutIter | |
Gets the extents of the current cluster, in layout coordinates
(origin is the top left of the entire layout).
Gets the extents of the current cluster, in layout coordinates
(origin is the top left of the entire layout).
|
Pango.LayoutIter | |
get_index
()
:
gint32
Gets the current byte index.
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 pango_layout_iter_get_run()).
|
Pango.LayoutIter | |
Obtains the extents of the PangoLayout being iterated
over.
Obtains the extents of the PangoLayout being iterated
over. ink_rect or logical_rect can be NULL if you aren't interested in them.
|
Pango.LayoutIter | |
get_line
()
:
Pango.LayoutLine
Gets the current line.
Gets the current line.
Use the faster pango_layout_iter_get_line_readonly() if you do not plan to modify the contents of the line (glyphs, glyph widths, etc.).
|
Pango.LayoutIter | |
Obtains the extents of 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 PangoLayout). 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 pango_layout_line_get_extents().
|
Pango.LayoutIter | |
get_line_readonly
()
:
Pango.LayoutLine
Gets the current line for read-only access.
Gets the current line for read-only access.
This is a faster alternative to pango_layout_iter_get_line(), but the user is not expected to modify the contents of the line (glyphs, glyph widths, etc.).
|
Pango.LayoutIter | |
Divides the vertical space in the PangoLayout being iterated over
between the lines in the layout, and returns the space belonging to the current line.
Divides the vertical space in the PangoLayout 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 pango_layout_set_spacing() has been called to set layout spacing. The Y positions are in layout coordinates (origin at top left of the entire layout).
|
Pango.LayoutIter | |
Gets the extents of the current run in layout coordinates
(origin is the top left of the entire layout).
Gets the extents of the current run in layout coordinates
(origin is the top left of the entire layout).
|
Pango.LayoutIter | |
next_char
()
:
gboolean
Moves iter forward to the next character in visual order.
Moves iter forward to the next character in visual order. If iter was already at
the end of the layout, returns FALSE.
|
Pango.LayoutIter | |
next_cluster
()
:
gboolean
Moves iter forward to the next cluster in visual order.
Moves iter forward to the next cluster in visual order. If iter
was already at the end of the layout, returns FALSE.
|
Pango.LayoutIter | |
next_line
()
:
gboolean
Moves iter forward to the start of the next line.
Moves iter forward to the start of the next line. If iter is
already on the last line, returns FALSE.
|
Pango.LayoutIter | |
next_run
()
:
gboolean
Moves iter forward to the next run in visual order.
Moves iter forward to the next run in visual order. If iter was
already at the end of the layout, returns FALSE.
|
Pango.LayoutIter |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Pango.Layout
Method |
get_iter
()
:
Pango.LayoutIter
Returns an iterator to iterate over the visual extents of the layout.
|