Learn R Programming

RGtk2 (version 2.20.1)

cairo-context: cairo_t

Description

The cairo drawing context

Arguments

Methods and Functions

cairoCreate(target) cairoStatus(cr) cairoSave(cr) cairoRestore(cr) cairoGetTarget(cr) cairoPushGroup(cr) cairoPushGroupWithContent(cr, content) cairoPopGroup(cr) cairoPopGroupToSource(cr) cairoGetGroupTarget(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) cairoGetDashCount(cr) cairoGetDash(cr) 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) cairoClipExtents(cr) cairoResetClip(cr) cairoCopyClipRectangleList(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) cairoSetUserData(cr, key, user.data) cairoGetUserData(cr, key) cairo(target)

Detailed Description

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.

Convenient Construction

cairo is the equivalent of cairoCreate.

References

http://www.cairographics.org/manual/cairo-context.html