GObject.Object
Pango.Renderer
Gdk.PangoRenderer
Import line: | Gdk = imports.gi.Gdk; |
GIR File: | Gdk-2.0.gir |
C documentation: | GdkPangoRenderer |
Class : | PangoRenderer |
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 : Pango.Renderer
read only
|
Gdk.PangoRenderer | |
priv : Gdk.PangoRendererPrivate
read only
|
Gdk.PangoRenderer | |
screen : Gdk.Screen
|
Gdk.PangoRenderer | |
strikethrough : Boolean
read only
|
Pango.Renderer | |
underline : Pango.Underline
read only
|
Pango.Renderer |
Method / Constructor | Defined By | |
---|---|---|
new Gdk.PangoRenderer
(Object properties)
Create a new Gdk.PangoRenderer
Create a new Gdk.PangoRenderer
|
||
Create a new Gdk.PangoRenderer
Create a new Gdk.PangoRenderer
|
||
Gets the default PangoRenderer for a screen.
Gets the default PangoRenderer for a screen. This default renderer is shared by all users of the display, so properties such as the color or transformation matrix set for the renderer may be overwritten by functions such as gdk_draw_layout(). Before using the renderer, you need to call gdk_pango_renderer_set_drawable() and gdk_pango_renderer_set_gc() to set the drawable and graphics context to use for drawing. renderer is owned by GTK+ and will be kept around until the screen is closed.
|
Gdk.PangoRenderer | |
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_drawable
(Drawable drawable)
:
none
Sets the drawable the renderer draws to.
Sets the drawable the renderer draws to.
|
Gdk.PangoRenderer | |
set_gc
(GC gc)
:
none
Sets the GC the renderer draws with.
Sets the GC the renderer draws with. Note that the GC must not be modified until it is unset by calling the function again with NULL for the gc parameter, since GDK may make internal copies of the GC which won't be updated to follow changes to the original GC.
|
Gdk.PangoRenderer | |
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 | |
set_override_color
(RenderPart part, Color color)
:
none
Sets the color for a particular render part (foreground, background, underline, etc.
Sets the color for a particular render part (foreground, background, underline, etc.), overriding any attributes on the layouts renderered with this renderer.
|
Gdk.PangoRenderer | |
set_stipple
(RenderPart part, Bitmap stipple)
:
none
Sets the stipple for one render part (foreground, background, underline, etc.
Sets the stipple for one render part (foreground, background, underline, etc.) Note that this is overwritten when iterating through the individual styled runs of a PangoLayout or PangoLayoutLine. This function is thus only useful when you call low level functions like pango_renderer_draw_glyphs() directly, or in the 'prepare_run' virtual function of a subclass of GdkPangoRenderer.
|
Gdk.PangoRenderer |
None |