![]() |
![]() |
Public Member Functions | |
void | activate () |
Does initial setup before rendering operations on renderer . | |
void | deactivate () |
Cleans up after rendering operations on renderer . | |
void | draw_error_underline (int x, int y, int width, int height) |
Draw a squiggly line that approximately covers the given rectangle in the style of an underline used to indicate a spelling error. | |
void | draw_glyph (const Glib::RefPtr<Font>& font, Glyph glyph, double x, double y) |
Draws a single glyph with coordinates in device space. | |
void | draw_glyphs (const Glib::RefPtr<Font>& font, const GlyphString& glyphs, int x, int y) |
Draws the glyphs in glyphs with the specified Pango::Renderer. | |
void | draw_layout (const Glib::RefPtr<Layout>& layout, int x, int y) |
Draws layout with the specified Pango::Renderer. | |
void | draw_layout_line (const Glib::RefPtr<LayoutLine>& line, int x, int y) |
Draws line with the specified Pango::Renderer. | |
void | draw_rectangle (RenderPart part, int x, int y, int width, int height) |
Draws an axis-aligned rectangle in user space coordinates with the specified Pango::Renderer. | |
void | draw_trapezoid (RenderPart part, double y1, double x11, double x21, double y2, double x12, double x22) |
Draws a trapezoid with the parallel sides aligned with the X axis using the given Pango::Renderer; coordinates are in device space. | |
Color | get_color (RenderPart part) const |
Gets the current rendering color for the specified part. | |
Matrix | get_matrix () const |
const PangoRenderer* | gobj () const |
Provides access to the underlying C GObject. | |
PangoRenderer* | gobj () |
Provides access to the underlying C GObject. | |
PangoRenderer* | gobj_copy () |
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs. | |
void | part_changed (RenderPart part) |
Informs Pango that the way that the renderering is done for part has changed in a way that would prevent multiple pieces being joined together into one drawing call. | |
void | set_color (RenderPart part, const Color& color) |
Sets the color for part of the rendering. | |
void | set_matrix (const Matrix& matrix) |
Sets the transformation matrix that will be applied when rendering. | |
virtual | ~Renderer () |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<Pango::Renderer> | wrap (PangoRenderer* object, bool take_copy=false) |
|
|
|
Does initial setup before rendering operations on renderer . deactivate() should be called when done drawing. Calls such as draw_layout() automatically activate the layout before drawing on it. Calls to activate() and deactivate() can be nested and the renderer will only be initialized and deinitialized once. Since: 1.8 |
|
Cleans up after rendering operations on renderer . See docs for activate(). Since: 1.8 |
|
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) Since: 1.8 |
|
Draws a single glyph with coordinates in device space. Since: 1.8
|
|
Draws the glyphs in glyphs with the specified Pango::Renderer. Since: 1.8
|
|
Draws layout with the specified Pango::Renderer. Since: 1.8
|
|
Draws line with the specified Pango::Renderer. Since: 1.8
|
|
Draws an axis-aligned rectangle in user space coordinates with the specified Pango::Renderer. Since: 1.8
|
|
Draws a trapezoid with the parallel sides aligned with the X axis using the given Pango::Renderer; coordinates are in device space. Since: 1.8
|
|
Gets the current rendering color for the specified part.
|
|
|
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase. |
|
Provides access to the underlying C GObject.
Reimplemented from Glib::ObjectBase. |
|
Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
|
|
Informs Pango that the way that the renderering 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 Pango::Renderer was to add a stipple option for drawing underlines, it needs to call
pango_renderer_part_changed (render, PANGO_RENDER_PART_UNDERLINE); When the stipple changes or underlines with different stipples might be joined together. Pango automatically calls this for changes to colors. (See set_color()) Since: 1.8
|
|
Sets the color for part of the rendering. Since: 1.8
|
|
Sets the transformation matrix that will be applied when rendering. Since: 1.8
|
|
|