Class Context
- Namespace
- Cairo
- Assembly
- cairo-1.0.dll
public class Context : BoxedRecord, GTypeProvider, InstanceFactory, IDisposable
- Inheritance
-
Context
- Implements
- Inherited Members
Constructors
Context(ContextOwnedHandle)
public Context(ContextOwnedHandle handle)
Parameters
handle
ContextOwnedHandle
Context(Surface)
public Context(Surface target)
Parameters
target
Surface
Properties
Antialias
public Antialias Antialias { get; set; }
Property Value
DashCount
public int DashCount { get; }
Property Value
FillRule
public FillRule FillRule { get; set; }
Property Value
Handle
public ContextOwnedHandle Handle { get; }
Property Value
HasCurrentPoint
public bool HasCurrentPoint { get; }
Property Value
LineCap
public LineCap LineCap { get; set; }
Property Value
LineJoin
public LineJoin LineJoin { get; set; }
Property Value
LineWidth
public double LineWidth { get; set; }
Property Value
MiterLimit
public double MiterLimit { get; set; }
Property Value
Operator
public Operator Operator { get; set; }
Property Value
Status
public Status Status { get; }
Property Value
Tolerance
public double Tolerance { get; set; }
Property Value
Methods
AppendPath(Path)
public void AppendPath(Path path)
Parameters
path
Path
Arc(double, double, double, double, double)
public void Arc(double xc, double yc, double radius, double angle1, double angle2)
Parameters
ArcNegative(double, double, double, double, double)
public void ArcNegative(double xc, double yc, double radius, double angle1, double angle2)
Parameters
Clip()
public void Clip()
ClipExtents(out double, out double, out double, out double)
public void ClipExtents(out double x1, out double y1, out double x2, out double y2)
Parameters
ClipPreserve()
public void ClipPreserve()
ClosePath()
public void ClosePath()
CopyPage()
public void CopyPage()
CopyPath()
public Path CopyPath()
Returns
CopyPathFlat()
public Path CopyPathFlat()
Returns
CurveTo(double, double, double, double, double, double)
public void CurveTo(double x1, double y1, double x2, double y2, double x3, double y3)
Parameters
DeviceToUser(ref double, ref double)
public void DeviceToUser(ref double x, ref double y)
Parameters
DeviceToUserDistance(ref double, ref double)
public void DeviceToUserDistance(ref double dx, ref double dy)
Parameters
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Fill()
public void Fill()
FillExtents(out double, out double, out double, out double)
public void FillExtents(out double x1, out double y1, out double x2, out double y2)
Parameters
FillPreserve()
public void FillPreserve()
FontExtents(out FontExtents)
public void FontExtents(out FontExtents extents)
Parameters
extents
FontExtents
GetCurrentPoint(out double, out double)
public void GetCurrentPoint(out double x, out double y)
Parameters
GetDash(out double[], out double)
public void GetDash(out double[] dashes, out double offset)
Parameters
GetFontFace()
public FontFace GetFontFace()
Returns
GetFontMatrix(Matrix)
public void GetFontMatrix(Matrix matrix)
Parameters
matrix
Matrix
GetFontOptions(FontOptions)
public void GetFontOptions(FontOptions options)
Parameters
options
FontOptions
GetGType()
public static Type GetGType()
Returns
GetGroupTarget()
public Surface GetGroupTarget()
Returns
GetMatrix(Matrix)
public void GetMatrix(Matrix matrix)
Parameters
matrix
Matrix
GetScaledFont()
public ScaledFont GetScaledFont()
Returns
GetSource()
public Pattern GetSource()
Returns
GetTarget()
public Surface GetTarget()
Returns
IdentityMatrix()
public void IdentityMatrix()
InClip(double, double)
public bool InClip(double x, double y)
Parameters
Returns
InFill(double, double)
public bool InFill(double x, double y)
Parameters
Returns
InStroke(double, double)
public bool InStroke(double x, double y)
Parameters
Returns
LineTo(double, double)
public void LineTo(double x, double y)
Parameters
Mask(Pattern)
public void Mask(Pattern source)
Parameters
source
Pattern
MaskSurface(Surface, double, double)
public void MaskSurface(Surface surface, double surface_x, double surface_y)
Parameters
MoveTo(double, double)
public void MoveTo(double x, double y)
Parameters
NewPath()
public void NewPath()
NewSubPath()
public void NewSubPath()
Paint()
public void Paint()
PaintWithAlpha(double)
public void PaintWithAlpha(double alpha)
Parameters
alpha
double
PathExtents(out double, out double, out double, out double)
public void PathExtents(out double x1, out double y1, out double x2, out double y2)
Parameters
PopGroup()
public Pattern PopGroup()
Returns
PopGroupToSource()
public void PopGroupToSource()
PushGroup()
public void PushGroup()
PushGroupWithContent(Content)
public void PushGroupWithContent(Content content)
Parameters
content
Content
Rectangle(double, double, double, double)
public void Rectangle(double x, double y, double width, double height)
Parameters
RelCurveTo(double, double, double, double, double, double)
public void RelCurveTo(double x1, double y1, double x2, double y2, double x3, double y3)
Parameters
RelLineTo(double, double)
public void RelLineTo(double x, double y)
Parameters
RelMoveTo(double, double)
public void RelMoveTo(double x, double y)
Parameters
ResetClip()
public void ResetClip()
Restore()
public void Restore()
Rotate(double)
public void Rotate(double angle)
Parameters
angle
double
Save()
public void Save()
Scale(double, double)
public void Scale(double sx, double sy)
Parameters
SelectFontFace(string, FontSlant, FontWeight)
public void SelectFontFace(string family, FontSlant slant, FontWeight weight)
Parameters
family
stringslant
FontSlantweight
FontWeight
SetDash(double[], double)
public void SetDash(double[] dashes, double offset)
Parameters
SetFontFace(FontFace)
public void SetFontFace(FontFace font_face)
Parameters
font_face
FontFace
SetFontMatrix(Matrix)
public void SetFontMatrix(Matrix matrix)
Parameters
matrix
Matrix
SetFontOptions(FontOptions)
public void SetFontOptions(FontOptions options)
Parameters
options
FontOptions
SetFontSize(double)
public void SetFontSize(double size)
Parameters
size
double
SetMatrix(Matrix)
public void SetMatrix(Matrix matrix)
Parameters
matrix
Matrix
SetScaledFont(ScaledFont)
public void SetScaledFont(ScaledFont scaled_font)
Parameters
scaled_font
ScaledFont
SetSource(Pattern)
public void SetSource(Pattern source)
Parameters
source
Pattern
SetSourceRgb(double, double, double)
public void SetSourceRgb(double red, double green, double blue)
Parameters
SetSourceRgba(double, double, double, double)
public void SetSourceRgba(double red, double green, double blue, double alpha)
Parameters
SetSourceSurface(Surface, double, double)
public void SetSourceSurface(Surface surface, double x, double y)
Parameters
ShowPage()
public void ShowPage()
ShowText(string)
public void ShowText(string text)
Parameters
text
string
Stroke()
public void Stroke()
StrokeExtents(out double, out double, out double, out double)
public void StrokeExtents(out double x1, out double y1, out double x2, out double y2)
Parameters
StrokePreserve()
public void StrokePreserve()
TextExtents(string, out TextExtents)
public void TextExtents(string text, out TextExtents extents)
Parameters
text
stringextents
TextExtents
TextPath(string)
public void TextPath(string text)
Parameters
text
string
Transform(Matrix)
public void Transform(Matrix matrix)
Parameters
matrix
Matrix
Translate(double, double)
public void Translate(double tx, double ty)
Parameters
UserToDevice(ref double, ref double)
public void UserToDevice(ref double x, ref double y)
Parameters
UserToDeviceDistance(ref double, ref double)
public void UserToDeviceDistance(ref double dx, ref double dy)