LayoutLine
Object Hierarchy:
Pango.LayoutLine
Pango.LayoutLine
Pango.LayoutLine
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
A `PangoLayoutLine` represents one of the lines resulting from laying out a paragraph via `PangoLayout`.
`PangoLayoutLine` structures are obtained by calling [method@Pango.Layout.get_line] and are only valid until the text, attributes, or settings
of the parent `PangoLayout` are modified.
Content:
Methods:
public unowned LayoutLine ? @ref ()
Increase the reference count of a `PangoLayoutLine` 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, as the maximum of the heights of fonts used
in this line.
public int get_length ()
Returns the length of the line, in bytes.
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 Direction get_resolved_direction ()
Returns the resolved direction of the line.
public int get_start_index ()
Returns the start index of the line, as byte index into the text of the
layout.
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 bool is_paragraph_start ()
Returns whether this is the first line of the paragraph.
public void unref ()
Decrease the reference count of a `PangoLayoutLine` 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: