GObject.Object
Pango.Renderer
PangoCairo.Renderer
Import line: | PangoCairo = imports.gi.PangoCairo; |
GIR File: | PangoCairo-1.0.gir |
C documentation: | PangoCairoRenderer |
Class : | Renderer |
Extends: | Pango.Renderer |
Show / Hide Inherited methods, properties and signals |
Properties | Defined By | |
---|---|---|
active_count : Number
read only
|
Pango.Renderer | |
matrix : Pango.Matrix
read only
|
Pango.Renderer | |
parent_instance : GObject.Object
read only
|
Pango.Renderer | |
priv : Pango.RendererPrivate
read only
|
Pango.Renderer | |
strikethrough : Boolean
read only
|
Pango.Renderer | |
underline : Pango.Underline
read only
|
Pango.Renderer |
Method / Constructor | Defined By | |
---|---|---|
new PangoCairo.Renderer
(Object properties)
Create a new PangoCairo.Renderer
Create a new PangoCairo.Renderer
|
||
activate
()
:
none
Does initial setup before rendering operations on renderer.
Does initial setup before rendering operations on renderer. pango_renderer_deactivate() should be called when done drawing. Calls such as pango_renderer_draw_layout() automatically activate the layout before drawing on it. Calls to pango_renderer_activate() and pango_renderer_deactivate() can be nested and the renderer will only be initialized and deinitialized once.
|
Pango.Renderer | |
deactivate
()
:
none
Cleans up after rendering operations on renderer.
Cleans up after rendering operations on renderer. See docs for pango_renderer_activate().
|
Pango.Renderer | |
Draw a squiggly line that approximately covers the given rectangle in the style of an underline used to indicate a spelling error.
Draw a squiggly line that approximately covers the given rectangle in the style of an underline used to indicate a spelling error. (The width of the underline is rounded to an integer number of up/down segments and the resulting rectangle is centered in the original rectangle) This should be called while renderer is already active. Use pango_renderer_activate() to activate a renderer.
|
Pango.Renderer | |
Draws a single glyph with coordinates in device space.
Draws a single glyph with coordinates in device space.
|
Pango.Renderer | |
Draws the glyphs in glyph_item with the specified PangoRenderer, embedding the text associated with the glyphs in the output if the output format supports it (PDF for example).
Draws the glyphs in glyph_item with the specified PangoRenderer, embedding the text associated with the glyphs in the output if the output format supports it (PDF for example). Note that text is the start of the text for layout, which is then indexed by
|
Pango.Renderer | |
Draws the glyphs in glyphs with the specified PangoRenderer.
Draws the glyphs in glyphs with the specified PangoRenderer.
|
Pango.Renderer | |
Draws layout with the specified PangoRenderer.
Draws layout with the specified PangoRenderer.
|
Pango.Renderer | |
Draws line with the specified PangoRenderer.
Draws line with the specified PangoRenderer.
|
Pango.Renderer | |
Draws an axis-aligned rectangle in user space coordinates with the specified PangoRenderer.
Draws an axis-aligned rectangle in user space coordinates with the specified PangoRenderer. This should be called while renderer is already active. Use pango_renderer_activate() to activate a renderer.
|
Pango.Renderer | |
draw_trapezoid
(RenderPart part, Number y1_, Number x11, Number x21, Number y2, Number x12, Number x22)
:
none
Draws a trapezoid with the parallel sides aligned with the X axis using the given PangoRenderer; coordinates are in device space.
Draws a trapezoid with the parallel sides aligned with the X axis using the given PangoRenderer; coordinates are in device space.
|
Pango.Renderer | |
get_color
(RenderPart part)
:
Pango.Color
Gets the current rendering color for the specified part.
Gets the current rendering color for the specified part. if it hasn't been set and should be inherited from the environment.
|
Pango.Renderer | |
get_layout
()
:
Pango.Layout
Gets the layout currently being rendered using renderer.
Gets the layout currently being rendered using renderer. Calling this function only makes sense from inside a subclass's methods, like in its draw_shape() for example. The returned layout should not be modified while still being rendered. rendered using renderer at this time.
|
Pango.Renderer | |
get_layout_line
()
:
Pango.LayoutLine
Gets the layout line currently being rendered using renderer.
Gets the layout line currently being rendered using renderer. Calling this function only makes sense from inside a subclass's methods, like in its draw_shape() for example. The returned layout line should not be modified while still being rendered. rendered using renderer at this time.
|
Pango.Renderer | |
get_matrix
()
:
Pango.Matrix
Gets the transformation matrix that will be applied when rendering.
Gets the transformation matrix that will be applied when rendering. See pango_renderer_set_matrix(). (which is the same as the identity matrix). The returned matrix is owned by Pango and must not be modified or freed.
|
Pango.Renderer | |
part_changed
(RenderPart part)
:
none
Informs Pango that the way that the rendering is done for part has changed in a way that would prevent multiple pieces being joined together into one drawing call.
Informs Pango that the way that the rendering is done for part has changed in a way that would prevent multiple pieces being joined together into one drawing call. For instance, if a subclass of PangoRenderer was to add a stipple option for drawing underlines, it needs to call
|
Pango.Renderer | |
set_color
(RenderPart part, Color color)
:
none
Sets the color for part of the rendering.
Sets the color for part of the rendering.
|
Pango.Renderer | |
set_matrix
(Matrix matrix)
:
none
Sets the transformation matrix that will be applied when rendering.
Sets the transformation matrix that will be applied when rendering.
|
Pango.Renderer |
None |