Import line: | Pango = imports.gi.Pango; |
GIR File: | Pango-1.0.gir |
C documentation: | Pango.LayoutLine |
Struct : | LayoutLine |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
is_paragraph_start : Number
|
Pango.LayoutLine | |
layout : Pango.Layout
|
Pango.LayoutLine | |
length : Number
|
Pango.LayoutLine | |
resolved_dir : Number
|
Pango.LayoutLine | |
runs : Array
|
Pango.LayoutLine | |
start_index : Number
|
Pango.LayoutLine |
Method / Constructor | Defined By | |
---|---|---|
new Pango.LayoutLine
()
Create a new Pango.LayoutLine
Create a new Pango.LayoutLine
|
||
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 | |
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.
|
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 |
---|---|
Gdk
Method |
Render a PangoLayoutLine onto an GDK drawable If the layout's PangoContext has a transformation matrix set, then (left is in before-tranform user coordinates) in after-transform device coordinates.
|
Gdk
Method |
Gdk.draw_layout_line_with_colors
(Drawable drawable, GC gc, Number x, Number y, LayoutLine line, Color foreground, Color background)
:
none
Render a PangoLayoutLine onto a GdkDrawable, overriding the layout's normal colors with foreground and/or background.
|
Gdk
Method |
Gdk.pango_layout_line_get_clip_region
(LayoutLine line, Number x_origin, Number y_origin, Object out_values, Number n_ranges)
:
Gdk.Region
Obtains a clip region which contains the areas where the given ranges of text would be drawn.
|
Pango.Layout
Method |
get_line
(Number line)
:
Pango.LayoutLine
Retrieves a particular line from a PangoLayout.
|
Pango.Layout
Method |
get_line_readonly
(Number 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 |
|
PangoX
Method |
PangoX.render_layout_line
(Display display, Drawable drawable, GC gc, LayoutLine line, Number x, Number y)
:
none
|
PangoXft
Method |
Render a PangoLayoutLine onto a XftDraw
|