PgCairo

Members

Static functions

contextGetFontOptions
FontOption contextGetFontOptions(PgContext context)

Retrieves any font rendering options previously set with [func@PangoCairo.context_set_font_options].

contextGetResolution
double contextGetResolution(PgContext context)

Gets the resolution for the context. See [func@PangoCairo.context_set_resolution]

contextGetShapeRenderer
PangoCairoShapeRendererFunc contextGetShapeRenderer(PgContext context, void** data)

Sets callback function for context to use for rendering attributes of type %PANGO_ATTR_SHAPE.

contextSetFontOptions
void contextSetFontOptions(PgContext context, FontOption options)

Sets the font options used when rendering text with this context.

contextSetResolution
void contextSetResolution(PgContext context, double dpi)

Sets the resolution for the context.

contextSetShapeRenderer
void contextSetShapeRenderer(PgContext context, PangoCairoShapeRendererFunc func, void* data, GDestroyNotify dnotify)

Sets callback function for context to use for rendering attributes of type %PANGO_ATTR_SHAPE.

createContext
PgContext createContext(Context cr)

Creates a context object set up to match the current transformation and target surface of the Cairo context.

createLayout
PgLayout createLayout(Context cr)

Creates a layout object set up to match the current transformation and target surface of the Cairo context.

errorUnderlinePath
void errorUnderlinePath(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.

glyphStringPath
void glyphStringPath(Context cr, PgFont font, PgGlyphString glyphs)

Adds the glyphs in @glyphs to the current path in the specified cairo context.

layoutLinePath
void layoutLinePath(Context cr, PgLayoutLine line)

Adds the text in PangoLayoutLine to the current path in the specified cairo context.

layoutPath
void layoutPath(Context cr, PgLayout layout)

Adds the text in a PangoLayout to the current path in the specified cairo context.

showErrorUnderline
void showErrorUnderline(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.

showGlyphItem
void showGlyphItem(Context cr, string text, PgGlyphItem glyphItem)

Draws the glyphs in @glyph_item in the specified cairo context,

showGlyphString
void showGlyphString(Context cr, PgFont font, PgGlyphString glyphs)

Draws the glyphs in @glyphs in the specified cairo context.

showLayout
void showLayout(Context cr, PgLayout layout)

Draws a PangoLayout in the specified cairo context.

showLayoutLine
void showLayoutLine(Context cr, PgLayoutLine line)

Draws a PangoLayoutLine in the specified cairo context.

updateContext
void updateContext(Context cr, PgContext context)

Updates a PangoContext previously created for use with Cairo to match the current transformation and target surface of a Cairo context.

updateLayout
void updateLayout(Context cr, PgLayout 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.

Meta