LayoutLine
Object Hierarchy:
Description:
[ CCode ( ref_function = "pango_layout_line_ref" , type_id = "pango_layout_line_get_type ()" , unref_function = "pango_layout_line_unref" ) ]
[ Compact ]
public class LayoutLine
The LayoutLine structure represents one of the lines resulting from laying out a paragraph via
Layout.
LayoutLine structures are obtained by calling get_line
and are only valid until the text, attributes, or settings of the parent Layout are
modified.
Routines for rendering PangoLayout objects are provided in code specific to each rendering system.
Content:
Methods:
- public unowned LayoutLine @ref ()
Increase the reference count of a LayoutLine by
one.
- public void get_extents (out Rectangle ink_rect, out Rectangle logical_rect)
Computes the logical and ink extents of a layout line.
- public void get_height (out int height)
Computes the height of the line, ie the distance between this and the
previous lines baseline.
- public void get_pixel_extents (out Rectangle ink_rect, out Rectangle logical_rect)
Computes the logical and ink extents of this
in device units.
- public void get_x_ranges (int start_index, int end_index, out int[] ranges)
Gets a list of visual ranges corresponding to a given logical range.
- public void index_to_x (int index_, bool trailing, out int x_pos)
Converts an index within a line to a X position.
- public void unref ()
Decrease the reference count of a LayoutLine by
one.
- public bool x_to_index (int x_pos, out int index_, out int trailing)
Converts from x offset to the byte index of the corresponding character
within the text of the layout.
Fields: