pangocairo.global

Undocumented in source.

Members

Functions

contextGetFontOptions
cairo.font_options.FontOptions contextGetFontOptions(pango.context.Context context)

Retrieves any font rendering options previously set with funcPangoCairo.context_set_font_options.

contextGetResolution
double contextGetResolution(pango.context.Context context)

Gets the resolution for the context.

contextSetFontOptions
void contextSetFontOptions(pango.context.Context context, cairo.font_options.FontOptions options)

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

contextSetResolution
void contextSetResolution(pango.context.Context context, double dpi)

Sets the resolution for the context.

contextSetShapeRenderer
void contextSetShapeRenderer(pango.context.Context context, pangocairo.types.ShapeRendererFunc func)

Sets callback function for context to use for rendering attributes of type pango.types.AttrType.Shape.

createContext
pango.context.Context createContext(cairo.context.Context cr)

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

createLayout
pango.layout.Layout createLayout(cairo.context.Context cr)

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

errorUnderlinePath
void errorUnderlinePath(cairo.context.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(cairo.context.Context cr, pango.font.Font font, pango.glyph_string.GlyphString glyphs)

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

layoutLinePath
void layoutLinePath(cairo.context.Context cr, pango.layout_line.LayoutLine line)

Adds the text in pango.layout_line.LayoutLine to the current path in the specified cairo context.

layoutPath
void layoutPath(cairo.context.Context cr, pango.layout.Layout layout)

Adds the text in a pango.layout.Layout to the current path in the specified cairo context.

showErrorUnderline
void showErrorUnderline(cairo.context.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(cairo.context.Context cr, string text, pango.glyph_item.GlyphItem glyphItem)

Draws the glyphs in glyph_item in the specified cairo context,

showGlyphString
void showGlyphString(cairo.context.Context cr, pango.font.Font font, pango.glyph_string.GlyphString glyphs)

Draws the glyphs in glyphs in the specified cairo context.

showLayout
void showLayout(cairo.context.Context cr, pango.layout.Layout layout)

Draws a pango.layout.Layout in the specified cairo context.

showLayoutLine
void showLayoutLine(cairo.context.Context cr, pango.layout_line.LayoutLine line)

Draws a pango.layout_line.LayoutLine in the specified cairo context.

updateContext
void updateContext(cairo.context.Context cr, pango.context.Context context)

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

updateLayout
void updateLayout(cairo.context.Context cr, pango.layout.Layout layout)

Updates the private pango.context.Context of a pango.layout.Layout created with funccreate_layout to match the current transformation and target surface of a Cairo context.