Import line: | Pango = imports.gi.Pango; |
GIR File: | Pango-1.0.gir |
C documentation: | Pango.LayoutLine |
Struct : | LayoutLine |
Properties | Defined By | |
---|---|---|
is_paragraph_start : guint32
|
Pango.LayoutLine | |
layout : Pango.Layout
|
Pango.LayoutLine | |
length : gint32
|
Pango.LayoutLine | |
resolved_dir : guint32
|
Pango.LayoutLine | |
runs : Array
|
Pango.LayoutLine | |
start_index : gint32
|
Pango.LayoutLine |
Method / Constructor | Defined By | |
---|---|---|
new Pango.LayoutLine
()
Create a new Pango.LayoutLine
Create a new Pango.LayoutLine
|
||
get_extents
()
:
Object
Computes the logical and ink extents of a layout line.
Computes the logical and ink extents of a layout line. See
pango_font_get_glyph_extents() for details about the interpretation of the rectangles.
|
Pango.LayoutLine | |
get_pixel_extents
()
:
Object
Computes the logical and ink extents of layout_line in device units.
Computes the logical and ink extents of layout_line in device units.
This function just calls pango_layout_line_get_extents() followed by two pango_extents_to_pixels() calls, rounding ink_rect and logical_rect such that the rounded rectangles fully contain the unrounded one (that is, passes them as first argument to pango_extents_to_pixels()).
|
Pango.LayoutLine | |
Gets a list of visual ranges corresponding to a given logical range.
Gets 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.
|
Pango.LayoutLine | |
Converts an index within a line to a X position.
Converts an index within a line to a X position.
|
Pango.LayoutLine | |
Converts from x offset to the byte index of the corresponding
character within the text of the layout.
Converts from x offset to the byte index of the corresponding
character within the text of the layout. If x_pos is outside the line, in the line. This determination is based on the resolved direction of the paragraph; for example, if the resolved direction is right-to-left, then an X position to the right of the line (after it) results in 0 being stored in index_ and trailing. An X position to the left of the line results in index_ pointing to the (logical) last grapheme in the line and trailing being set to the number of characters in that grapheme. The reverse is true for a left-to-right line.
|
Pango.LayoutLine |
None |
Class / Namespace | Method / Signal / Properties |
---|---|
Pango.Layout
Method |
get_line
(gint32 line)
:
Pango.LayoutLine
Retrieves a particular line from a PangoLayout.
|
Pango.Layout
Method |
get_line_readonly
(gint32 line)
:
Pango.LayoutLine
Retrieves a particular line from a PangoLayout.
|
Pango.LayoutIter
Method |
get_line
()
:
Pango.LayoutLine
Gets the current line.
|
Pango.LayoutIter
Method |
get_line_readonly
()
:
Pango.LayoutLine
Gets the current line for read-only access.
|
Pango.Renderer
Method |
Draws line with the specified PangoRenderer.
|
Pango.Renderer
Method |
get_layout_line
()
:
Pango.LayoutLine
Gets the layout line currently being rendered using renderer.
|
PangoCairo
Method |
Adds the text in PangoLayoutLine to the current path in the
specified cairo context. |
PangoCairo
Method |
Draws a PangoLayoutLine in the specified cairo context.
|
PangoFT2
Method |
|
PangoFT2
Method |
|
PangoXft
Method |
Render a PangoLayoutLine onto a XftDraw
|