Expand description
The main context structure which drives the drawing process.
StructsΒ§
- Compositing
Affines π - Drawing
Ctx - Font
Options - Opaque font options for a DrawingCtx.
- Path
Extents - Extents for a path in its current coordinate system.
- Path
Helper π - 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.
- Rendering
Configuration - Values that stay constant during rendering with a DrawingCtx.
- Viewport
- Holds the size of the current viewport in the userβs coordinate system.
EnumsΒ§
- Drawing
Mode - 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