cairo-cairo-t {RGtk2} | R Documentation |
The cairo drawing context
cairoCreate(target)
cairoSave(cr)
cairoRestore(cr)
cairoStatus(cr)
cairoGetTarget(cr)
cairoSetSourceRgb(cr, red, green, blue)
cairoSetSourceRgba(cr, red, green, blue, alpha)
cairoSetSource(cr, source)
cairoSetSourceSurface(cr, surface, x, y)
cairoGetSource(cr)
cairoSetAntialias(cr, antialias)
cairoGetAntialias(cr)
cairoSetDash(cr, dashes, offset)
cairoSetFillRule(cr, fill.rule)
cairoGetFillRule(cr)
cairoSetLineCap(cr, line.cap)
cairoGetLineCap(cr)
cairoSetLineJoin(cr, line.join)
cairoGetLineJoin(cr)
cairoSetLineWidth(cr, width)
cairoGetLineWidth(cr)
cairoSetMiterLimit(cr, limit)
cairoGetMiterLimit(cr)
cairoSetOperator(cr, op)
cairoGetOperator(cr)
cairoSetTolerance(cr, tolerance)
cairoGetTolerance(cr)
cairoClip(cr)
cairoClipPreserve(cr)
cairoResetClip(cr)
cairoFill(cr)
cairoFillPreserve(cr)
cairoFillExtents(cr)
cairoInFill(cr, x, y)
cairoMask(cr, pattern)
cairoMaskSurface(cr, surface, surface.x, surface.y)
cairoPaint(cr)
cairoPaintWithAlpha(cr, alpha)
cairoStroke(cr)
cairoStrokePreserve(cr)
cairoStrokeExtents(cr)
cairoInStroke(cr, x, y)
cairoCopyPage(cr)
cairoShowPage(cr)
cairo(target)
Cairo
is the main object used when drawing with cairo. To
draw with cairo, you create a Cairo
, set the target surface,
and drawing options for the Cairo
, create shapes with
functions like cairoMoveTo
and cairoLineTo
, and then
draw shapes with cairoStroke
or cairoFill
.
Cairo
's can be pushed to a stack via cairoSave
.
They may then safely be changed, without loosing the current state.
Use cairoRestore
to restore to the saved state.
Cairo
Cairo
contains the current state of the rendering device,
including coordinates of yet to be drawn shapes.
cairo
is the equivalent of cairoCreate
.
CairoAntialias
default
none
gray
subpixel
CairoFillRule
CairoFillRule
is used to select how paths are filled. For both
fill rules, whether or not a point is included in the fill is
determined by taking a ray from that point to infinity and looking
at intersections with the path. The ray can be in any direction,
as long as it doesn't pass through the end point of a segment
or have a tricky intersection such as intersecting tangent to the path.
(Note that filling is not actually implemented in this way. This
is just a description of the rule that is applied.)
winding
even-odd
CairoLineCap
butt
round
square
CairoLineJoin
miter
round
bevel
CairoOperator
clear
source
over
in
out
atop
dest
dest-over
dest-in
dest-out
dest-atop
xor
add
saturate
Derived by RGtkGen from GTK+ documentation
http://www.cairographics.org/manual/cairo-cairo-t.html