Pango.RendererClass

Fields

Name

Type

Access

Description

begin

object

r

Do renderer-specific initialization before drawing

draw_error_underline

object

r

draws a squiggly line that approximately covers the given rectangle in the style of an underline used to indicate a spelling error.

draw_glyph

object

r

draws a single glyph

draw_glyph_item

object

r

draws a PangoGlyphItem

draw_glyphs

object

r

draws a PangoGlyphString

draw_rectangle

object

r

draws a rectangle

draw_shape

object

r

draw content for a glyph shaped with PangoAttrShape x, y are the coordinates of the left edge of the baseline, in user coordinates.

draw_trapezoid

object

r

draws a trapezoidal filled area

end

object

r

Do renderer-specific cleanup after drawing

parent_class

GObject.ObjectClass

r

part_changed

object

r

do renderer specific processing when rendering attributes change

prepare_run

object

r

updates the renderer for a new run

Methods

None

Details

class Pango.RendererClass

Class structure for PangoRenderer.

The following vfuncs take user space coordinates in Pango units and have default implementations:

  • draw_glyphs

  • draw_rectangle

  • draw_error_underline

  • draw_shape

  • draw_glyph_item

The default draw_shape implementation draws nothing.

The following vfuncs take device space coordinates as doubles and must be implemented:

  • draw_trapezoid

  • draw_glyph

New in version 1.8.