![]() |
![]() |
Pango::LayoutLine objects are obtained by calling Pango::Layout::get_line() and are only valid until the text, attributes, or settings of the parent Pango::Layout are modified. Routines for rendering Pango::Layout objects are provided in code specific to each rendering system.
Public Member Functions | |
void | reference () const |
void | unreference () const |
PangoLayoutLine* | gobj () |
Provides access to the underlying C instance. | |
const PangoLayoutLine* | gobj () const |
Provides access to the underlying C instance. | |
PangoLayoutLine* | gobj_copy () const |
bool | x_to_index (int x_pos, int& index, int& trailing) const |
Convert from x offset to the byte index of the corresponding character within the text of the layout. | |
int | index_to_x (int index, bool trailing) const |
Converts an index within a line to a x position. | |
Glib::ArrayHandle< std::pair< int, int > > | get_x_ranges (int start_index, int end_index) const |
Get a list of visual ranges corresponding to a given logical range. | |
void | get_extents (Rectangle& ink_rect, Rectangle& logical_rect) const |
Compute the logical and ink extents of a layout line. | |
Rectangle | get_ink_extents () const |
Compute the ink extents of a layout line. | |
Rectangle | get_logical_extents () const |
Compute the logical extents of a layout line. | |
void | get_pixel_extents (Rectangle& ink_rect, Rectangle& logical_rect) const |
Compute the logical and ink extents of a layout line. | |
Rectangle | get_pixel_ink_extents () const |
Compute the ink extents of a layout line in device units. | |
Rectangle | get_pixel_logical_extents () const |
Compute the logical extents of a layout line in device units. | |
Protected Member Functions | |
LayoutLine () | |
void | operator delete (void*, size_t) |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Pango::LayoutLine> | wrap (PangoLayoutLine* object, bool take_copy=false) |
|
|
|
Compute the logical and ink extents of a layout line. See the documentation for Pango::Font::get_glyph_extents() for details about the interpretation of the rectangles. |
|
Compute the ink extents of a layout line.
|
|
Compute the logical extents of a layout line.
|
|
Compute the logical and ink extents of a layout line. See the documentation for Pango::Font::get_glyph_extents() for details about the interpretation of the rectangles. The returned rectangles are in device units, as opposed to pango_layout_line_get_extents(), which returns the extents in units of device unit / PANGO_SCALE. |
|
Compute the ink extents of a layout line in device units.
|
|
Compute the logical extents of a layout line in device units.
|
|
Get a list of visual ranges corresponding to a given logical range. This list is not necessarily minimal - there may be consecutive ranges which are adjacent. The ranges will be sorted from left to right. The ranges are with respect to the left edge of the entire layout, not with respect to the line.
|
|
Provides access to the underlying C instance.
|
|
Provides access to the underlying C instance.
|
|
|
|
Converts an index within a line to a x position.
|
|
|
|
|
|
|
|
Convert from x offset to the byte index of the corresponding character within the text of the layout. If x_pos is outside the line, the start or end of the line will be stored at index .
|
|
|