pangocairo
Description:
Rendering with the Cairo backend.
Content:
Namespaces:
- Pango
Interfaces:
- CairoFont - `PangoCairoFont` is an interface
exported by fonts for use with Cairo.
- CairoFontMap - `PangoCairoFontMap` is an
interface exported by font maps for use with Cairo.
Delegates:
Methods:
- public unowned FontOptions? cairo_context_get_font_options (Context context)
Retrieves any font rendering options previously set with [
func@PangoCairo.
- public double cairo_context_get_resolution (Context context)
Gets the resolution for the context.
- public unowned CairoShapeRendererFunc? cairo_context_get_shape_renderer (Context context)
Sets callback function for context to use for rendering attributes
of type pango_attr_shape.
- public void cairo_context_set_font_options (Context context, FontOptions? options)
Sets the font options used when rendering text with this context.
- public void cairo_context_set_resolution (Context context, double dpi)
Sets the resolution for the context.
- public void cairo_context_set_shape_renderer (Context context, owned CairoShapeRendererFunc? func)
Sets callback function for context to use for rendering attributes
of type pango_attr_shape.
- public Context cairo_create_context (Context cr)
Creates a context object set up to match the current transformation
and target surface of the Cairo context.
- public Layout cairo_create_layout (Context cr)
Creates a layout object set up to match the current transformation
and target surface of the Cairo context.
- public void cairo_error_underline_path (Context cr, double x, double y, double width, double height)
Add a squiggly line to the current path in the specified cairo
context that approximately covers the given rectangle in the style of an underline used to indicate a spelling error.
- public unowned FontMap cairo_font_map_get_default ()
- public FontMap cairo_font_map_new ()
- public FontMap? cairo_font_map_new_for_font_type (FontType fonttype)
- public void cairo_glyph_string_path (Context cr, Font font, GlyphString glyphs)
Adds the glyphs in glyphs
to the current path in the
specified cairo context.
- public void cairo_layout_line_path (Context cr, LayoutLine line)
Adds the text in `PangoLayoutLine` to the current path in the
specified cairo context.
- public void cairo_layout_path (Context cr, Layout layout)
Adds the text in a `PangoLayout` to the current path in the
specified cairo context.
- public void cairo_show_error_underline (Context cr, double x, double y, double width, double height)
Draw a squiggly line in the specified cairo context that
approximately covers the given rectangle in the style of an underline used to indicate a spelling error.
- public void cairo_show_glyph_item (Context cr, string text, GlyphItem glyph_item)
Draws the glyphs in glyph_item
in the specified cairo
context,
- public void cairo_show_glyph_string (Context cr, Font font, GlyphString glyphs)
Draws the glyphs in glyphs
in the specified cairo
context.
- public void cairo_show_layout (Context cr, Layout layout)
Draws a `PangoLayout` in the specified cairo context.
- public void cairo_show_layout_line (Context cr, LayoutLine line)
Draws a `PangoLayoutLine` in the specified cairo context.
- public void cairo_update_context (Context cr, Context context)
Updates a `PangoContext` previously created for use with Cairo to
match the current transformation and target surface of a Cairo context.
- public void cairo_update_layout (Context cr, Layout layout)
Updates the private `PangoContext` of a `PangoLayout` created with [
func@create_layout] to match the current transformation and target surface of a Cairo context.