Mono Class Library: Overview

Cairo.Context: Members

The members of Cairo.Context are listed below.

See Also: Inherited members from System.Object

Public Constructors

Creates a Cairo.Context object using the provided surface.
This constructor accepts a Cairo graphics object coming in from the C API and wraps it into our Cairo.Context class.

Public Properties

AntialiasAntialias. The antialiasing mode of the rasterizer used for drawing shapes.
[write-only]
ColorColor. The current Color in the drawing context.
[write-only]
ColorRgbColor. Sets the source pattern to be the given opaque color.
ContextFontFaceFontFace. Documentation for this section has not yet been entered.
[read-only]
CurrentPointPointD. Gets the current point of the current path, which is conceptually the final point reached by the path so far.
FillRuleFillRule. Get or set the fill rule.
[read-only]
FontExtentsFontExtents. Gets the font extents for the currently selected font.
FontMatrixMatrix. The current font matrix
FontOptionsFontOptions. A set of custom font rendering options
[write-only]
FontSizedouble. Set the size of the font for the context.
[read-only]
GroupTargetSurface. Documentation for this section has not yet been entered.
[read-only]
HandleIntPtr. Internal handle to the native cairo object
LineCapLineCap. Get or set the line cap style.
LineJoinLineJoin. Get or set the line join style.
LineWidthdouble. Get or set the width of the stroke.
MatrixMatrix. Get or set the current transformation matrix (CTM).
MiterLimitdouble. Get or set the miter limit (the value beyond which joins are no longer mitered).
OperatorOperator. The current Operator for the drawing context.
PatternPattern. See Context.Source.
[read-only]
ReferenceCountuint. Documentation for this section has not yet been entered.
ScaledFontScaledFont. Documentation for this section has not yet been entered.
SourcePattern. Sets the source pattern within graphics object to source.
[read-only]
StatusStatus. Get the internal status of Cairo.
TargetSurface. Gets the target surface for the cairo context as passed to Context().
Tolerancedouble. Sets the tolerance used when converting paths into trapezoids.

Public Methods

AppendPath(Path)
Documentation for this section has not yet been entered.
Arc(double, double, double, double, double)
Adds an arc from angle1 to angle2 to the current path.
ArcNegative(double, double, double, double, double)
Adds an arc from angle1 to angle2 to the current path.
Clip()
Establishes a new clip region by intersecting the current clip region with the current path as it would be filled by Context.Fill and according to the current fill rule (see Context.FillRule).
ClipPreserve()
Establishes a new clip region by intersecting the current clip region with the current path as it would be filled by Context.Fill() and according to the current fill rule (see Context.FillRule()).
ClosePath()
Closes a path so it can be stroked.
CopyPage()
Emits the current page for backends that support multiple pages, without clearing it..
CopyPath() : Path
Documentation for this section has not yet been entered.
CopyPathFlat() : Path
Documentation for this section has not yet been entered.
CurveTo(PointD, PointD, PointD)
Adds a cubic Bézier spline to the path from the current point to position (x3, y3) in user-space coordinates, using (x1, y1) and (x2, y2) as the control points.
CurveTo(double, double, double, double, double, double)
Adds a cubic Bézier spline to the path from the current point to position (x3, y3) in user-space coordinates, using (x1, y1) and (x2, y2) as the control points.
DeviceToUser(ref double, ref double)
Documentation for this section has not yet been entered.
DeviceToUserDistance(ref double, ref double)
Documentation for this section has not yet been entered.
Fill()
A drawing operator that fills the current path according to the current fill rule.
FillExtents() : Rectangle
Computes a bounding box in user coordinates covering the area that would be affected by a call to Context.Fill().
FillPreserve()
A drawing operator that fills the current path according to the current fill rule. Unlike Context.Fill, this preserves the path within the cairo context.
Finalize()
Documentation for this section has not yet been entered.
FontFace(string, FontSlant, FontWeight)
Selects a family and style of font from a simplified description as a family name, slant and weight.
FontSetSize(double)
Documentation for this section has not yet been entered.
GlyphExtents(Glyph[]) : TextExtents
Documentation for this section has not yet been entered.
GlyphPath(Glyph[])
Documentation for this section has not yet been entered.
GlyphPath(Matrix, Glyph[])
Documentation for this section has not yet been entered.
IdentityMatrix()
Documentation for this section has not yet been entered.
InFill(double, double) : bool
Documentation for this section has not yet been entered.
InStroke(double, double) : bool
Documentation for this section has not yet been entered.
InverseTransformDistance(ref double, ref double)
Transform the specified distance vector by the inverse of the current transformation matrix (CTM).
InverseTransformPoint(ref double, ref double)
Transform the specified point by the inverse of the current transformation matrix (CTM).
LineTo(PointD)
Adds a line to the path from the current point to position (x, y) in user-space coordinates.
LineTo(double, double)
Adds a line to the path from the current point to position (x, y) in user-space coordinates.
Mask(Pattern)
A drawing operator that paints the current source using the alpha channel of pattern as a mask.
MaskSurface(Surface, double, double)
A drawing operator that paints the current source using the alpha channel of surface as a mask.
MoveTo(PointD)
If the current subpath is not empty, begin a new subpath.
MoveTo(double, double)
If the current subpath is not empty, begin a new subpath.
NewPath()
Clears the current path.
NewSubPath()
.
Paint()
A drawing operator that paints the current source everywhere within the current clip region.
PaintWithAlpha(double)
A drawing operator that paints the current source everywhere within the current clip region using a mask of constant alpha value alpha.
PopGroup() : Pattern
Documentation for this section has not yet been entered.
PopGroupToSource()
Documentation for this section has not yet been entered.
PushGroup()
Documentation for this section has not yet been entered.
PushGroup(Content)
Documentation for this section has not yet been entered.
Rectangle(Rectangle)
Adds a closed-subpath rectangle of the given size to the current path in user-space coordinates.
Rectangle(PointD, double, double)
Draw a rectangle at Cairo.PointD p with width and height.
Rectangle(double, double, double, double)
Adds a closed-subpath rectangle of the given size to the current path at position (x, y) in user-space coordinates.
RelCurveTo(Distance, Distance, Distance)
Relative-coordinate version of Context.CurveTo().
RelCurveTo(double, double, double, double, double, double)
Relative-coordinate version of Context.CurveTo().
RelLineTo(Distance)
Relative-coordinate version of Context.LineTo().
RelLineTo(double, double)
Relative-coordinate version of Context.LineTo().
RelMoveTo(Distance)
If the current subpath is not empty, begin a new subpath.
RelMoveTo(double, double)
If the current subpath is not empty, begin a new subpath.
ResetClip()
Reset the current clip region to its original, unrestricted state.
Restore()
Restores the object to the state saved by a preceding call to Context.Save and removes that state from the stack of saved states.
Rotate(double)
Modifies the current transformation matrix (CTM) by rotating the user-space axes by angle radians.
Save()
Makes a copy of the current state of the object and saves it on an internal stack of saved states.
Scale(double, double)
Modifies the current transformation matrix (CTM) by scaling the X and Y user-space axes by sx and sy respectively.
SelectFontFace(string, FontSlant, FontWeight)
Selects a family and style of font from a simplified description as a family name, slant and weight.
SetDash(double[], double)
Sets the dash pattern to be used by Context.Stroke().
SetFontSize(double)
Sets the current font matrix to a scale by a factor of scale, replacing any font matrix previously set with Context.SetFontSize() or Context.SetFontMatrix().
SetSource(Surface)
Documentation for this section has not yet been entered.
SetSource(Surface, double, double)
Documentation for this section has not yet been entered.
SetSourceRGB(double, double, double)
Sets the source pattern to an opaque color.
SetSourceRGBA(double, double, double, double)
Sets the source pattern to a translucent color.
SetSourceSurface(Surface, int, int)
This is a convenience function for creating a pattern from a surface and setting it as the source.
ShowGlyphs(Glyph[])
Documentation for this section has not yet been entered.
ShowGlyphs(Matrix, Glyph[])
Documentation for this section has not yet been entered.
ShowPage()
Emits and clears the current page for backends that support multiple pages..
ShowText(string)
A drawing operator that generates the shape from a string of UTF-8 characters, rendered according to the current font_face, font_size (font_matrix), and font_options.
Stroke()
A drawing operator that strokes the current path according to the current line width, line join, line cap, and dash settings.
StrokeExtents() : Rectangle
Computes a bounding box in user coordinates covering the area that would be affected by a call to Context.Stroke() using the current stroke parameters.
StrokePreserve()
A drawing operator that strokes the current path according to the current line width, line join, line cap, and dash settings. Unlike Context.Stroke, it preserves the path within the cairo context.
TextExtents(string) : TextExtents
Gets the extents for a string of text.
TextPath(string)
Documentation for this section has not yet been entered.
Transform(Matrix)
Transform the CTM (Current Transformation Matrix) by the specified affine transformation matrix.
TransformDistance(ref double, ref double)
Transform the specified distance vector by the current transformation matrix (CTM).
TransformPoint(ref double, ref double)
Transform the specified point by the current transformation matrix (CTM).
Translate(double, double)
Modifies the current transformation matrix (CTM) by translating the user-space origin by (tx, ty).
UserToDevice(ref double, ref double)
Documentation for this section has not yet been entered.
UserToDeviceDistance(ref double, ref double)
Documentation for this section has not yet been entered.

Protected Methods

Dispose(bool)
Documentation for this section has not yet been entered.

Explicitly Implemented Interface Members

IDisposable.DisposeDocumentation for this section has not yet been entered.