Class
Pango.Renderer
Description [src]
abstract class Pango.Renderer : GObject.Object {
matrix: PangoMatrix*
}
PangoRenderer
is a base class for objects that can render text
provided as PangoGlyphString
or PangoLayout
.
By subclassing PangoRenderer
and overriding operations such as
draw_glyphs
and draw_rectangle
, renderers for particular font
backends and destinations can be created.
Instance methods
pango_renderer_activate
Does initial setup before rendering operations on renderer
.
pango_renderer_deactivate
Cleans up after rendering operations on renderer
.
pango_renderer_draw_error_underline
Draw a squiggly line that approximately covers the given rectangle in the style of an underline used to indicate a spelling error.
pango_renderer_draw_glyph
Draws a single glyph with coordinates in device space.
pango_renderer_draw_glyph_item
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.
pango_renderer_draw_glyphs
Draws the glyphs in glyphs
with the specified PangoRenderer
.
pango_renderer_draw_layout
Draws layout
with the specified PangoRenderer
.
pango_renderer_draw_layout_line
Draws line
with the specified PangoRenderer
.
pango_renderer_draw_rectangle
Draws an axis-aligned rectangle in user space coordinates with the
specified PangoRenderer
.
pango_renderer_draw_trapezoid
Draws a trapezoid with the parallel sides aligned with the X axis
using the given PangoRenderer
; coordinates are in device space.
pango_renderer_get_alpha
Gets the current alpha for the specified part.
pango_renderer_get_color
Gets the current rendering color for the specified part.
pango_renderer_get_layout
Gets the layout currently being rendered using renderer
.
pango_renderer_get_layout_line
Gets the layout line currently being rendered using renderer
.
pango_renderer_get_matrix
Gets the transformation matrix that will be applied when rendering.
pango_renderer_part_changed
Informs Pango that the way that the rendering is done
for part
has changed.
pango_renderer_set_alpha
Sets the alpha for part of the rendering.
pango_renderer_set_color
Sets the color for part of the rendering.
pango_renderer_set_matrix
Sets the transformation matrix that will be applied when rendering.
Class structure
struct PangoRendererClass {
void (* draw_glyphs) (
PangoRenderer* renderer,
PangoFont* font,
PangoGlyphString* glyphs,
int x,
int y
);
void (* draw_rectangle) (
PangoRenderer* renderer,
PangoRenderPart part,
int x,
int y,
int width,
int height
);
void (* draw_error_underline) (
PangoRenderer* renderer,
int x,
int y,
int width,
int height
);
void (* draw_shape) (
PangoRenderer* renderer,
PangoAttrShape* attr,
int x,
int y
);
void (* draw_trapezoid) (
PangoRenderer* renderer,
PangoRenderPart part,
double y1_,
double x11,
double x21,
double y2,
double x12,
double x22
);
void (* draw_glyph) (
PangoRenderer* renderer,
PangoFont* font,
PangoGlyph glyph,
double x,
double y
);
void (* part_changed) (
PangoRenderer* renderer,
PangoRenderPart part
);
void (* begin) (
PangoRenderer* renderer
);
void (* end) (
PangoRenderer* renderer
);
void (* prepare_run) (
PangoRenderer* renderer,
PangoLayoutRun* run
);
void (* draw_glyph_item) (
PangoRenderer* renderer,
const char* text,
PangoGlyphItem* glyph_item,
int x,
int y
);
void (* _pango_reserved2) (
void
);
void (* _pango_reserved3) (
void
);
void (* _pango_reserved4) (
void
);
}
Class members
draw_glyphs |
|
No description available. | |
draw_rectangle |
|
No description available. | |
draw_error_underline |
|
No description available. | |
draw_shape |
|
No description available. | |
draw_trapezoid |
|
No description available. | |
draw_glyph |
|
No description available. | |
part_changed |
|
No description available. | |
begin |
|
No description available. | |
end |
|
No description available. | |
prepare_run |
|
No description available. | |
draw_glyph_item |
|
No description available. | |
_pango_reserved2 |
|
No description available. | |
_pango_reserved3 |
|
No description available. | |
_pango_reserved4 |
|
No description available. |
Virtual methods
Pango.RendererClass.begin
Pango.RendererClass.draw_error_underline
Draw a squiggly line that approximately covers the given rectangle in the style of an underline used to indicate a spelling error.
Pango.RendererClass.draw_glyph
Draws a single glyph with coordinates in device space.
Pango.RendererClass.draw_glyph_item
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.
Pango.RendererClass.draw_glyphs
Draws the glyphs in glyphs
with the specified PangoRenderer
.
Pango.RendererClass.draw_rectangle
Draws an axis-aligned rectangle in user space coordinates with the
specified PangoRenderer
.
Pango.RendererClass.draw_shape
Pango.RendererClass.draw_trapezoid
Draws a trapezoid with the parallel sides aligned with the X axis
using the given PangoRenderer
; coordinates are in device space.
Pango.RendererClass.end
Pango.RendererClass.part_changed
Informs Pango that the way that the rendering is done
for part
has changed.