Module drawing_ctx

Module drawing_ctx 

Source
Expand description

The main context structure which drives the drawing process.

StructsΒ§

CompositingAffines πŸ”’
DrawingCtx
FontOptions
Opaque font options for a DrawingCtx.
PathExtents
Extents for a path in its current coordinate system.
PathHelper πŸ”’
Set path on the cairo context, or clear it. This helper object keeps track whether the path has been set already, so that it isn’t recalculated every so often.
RenderingConfiguration
Values that stay constant during rendering with a DrawingCtx.
Viewport
Holds the size of the current viewport in the user’s coordinate system.

EnumsΒ§

DrawingMode
SvgNesting
Whether an SVG document is being rendered standalone or referenced from an <image> element.

ConstantsΒ§

CAIRO_TAG_LINK πŸ”’

FunctionsΒ§

clip_to_rectangle πŸ”’
compute_stroke_and_fill_box πŸ”’
compute_stroke_and_fill_extents πŸ”’
create_pango_context
Create a Pango context with a particular configuration.
draw_tree
The toplevel drawing routine.
element_can_be_used_inside_clip_path πŸ”’
escape_link_target πŸ”’
escape quotes and backslashes with backslash
pango_layout_to_cairo πŸ”’
Converts a Pango layout to a Cairo path on the specified cr starting at (x, y). Does not clear the current path first.
pango_layout_to_cairo_path
Converts a Pango layout to a CairoPath starting at (x, y).
set_gradient_on_cairo πŸ”’
set_source_color_on_cairo
setup_cr_for_stroke πŸ”’
with_saved_cr