Package: pango

GBoxed pango:layout-line

Declaration

(gobject:define-gboxed-cstruct layout-line "PangoLayoutLine"
  (:export t
   :type-initializer "pango_layout_line_get_type")
  (layout (g:object layout))
  (start-index :int)
  (length :int)
  (runs (g:slist-t (g:boxed glyph-item)))
  (is-paragraph-start :uint)
  (resolved-dir :uint))  

Values

layout
The pango:layout object this line belongs to, might be nil.
start-index
The integer with the start of line as byte index into the layout text.
length
The integer with the length of line in bytes.
runs
List of runs in the line, from left to right.
is-paragraph-start
True if this is the first line of the paragraph.
resolved-dir
Resolved pango:direction value of line.

Details

The pango:layout-line structure represents one of the lines resulting from laying out a paragraph via a pango:layout object. The pango:layout-line instances are obtained by calling the pango:layout-line function and are only valid until the text, attributes, or settings of the parent pango:layout object are modified. Routines for rendering pango:layout objects are provided in code specific to each rendering system.
 

See also

2025-2-15