Class Context
public class Context
- Inheritance
-
Context
- Inherited Members
Methods
AppendPath(ContextHandle, PathHandle)
public static extern void AppendPath(ContextHandle cr, PathHandle path)
Parameters
cr
ContextHandlepath
PathHandle
Arc(ContextHandle, double, double, double, double, double)
public static extern void Arc(ContextHandle cr, double xc, double yc, double radius, double angle1, double angle2)
Parameters
ArcNegative(ContextHandle, double, double, double, double, double)
public static extern void ArcNegative(ContextHandle cr, double xc, double yc, double radius, double angle1, double angle2)
Parameters
Clip(ContextHandle)
public static extern void Clip(ContextHandle cr)
Parameters
ClipExtents(ContextHandle, out double, out double, out double, out double)
public static extern void ClipExtents(ContextHandle cr, out double x1, out double y1, out double x2, out double y2)
Parameters
cr
ContextHandlex1
doubley1
doublex2
doubley2
double
ClipPreserve(ContextHandle)
public static extern void ClipPreserve(ContextHandle cr)
Parameters
ClosePath(ContextHandle)
public static extern void ClosePath(ContextHandle cr)
Parameters
CopyPage(ContextHandle)
public static extern void CopyPage(ContextHandle cr)
Parameters
CopyPath(ContextHandle)
public static extern PathOwnedHandle CopyPath(ContextHandle cr)
Parameters
Returns
CopyPathFlat(ContextHandle)
public static extern PathOwnedHandle CopyPathFlat(ContextHandle cr)
Parameters
Returns
Create(SurfaceHandle)
public static extern ContextOwnedHandle Create(SurfaceHandle target)
Parameters
target
SurfaceHandle
Returns
CurveTo(ContextHandle, double, double, double, double, double, double)
public static extern void CurveTo(ContextHandle cr, double x1, double y1, double x2, double y2, double x3, double y3)
Parameters
Destroy(IntPtr)
public static extern void Destroy(IntPtr handle)
Parameters
handle
IntPtr
DeviceToUser(ContextHandle, ref double, ref double)
public static extern void DeviceToUser(ContextHandle cr, ref double x, ref double y)
Parameters
cr
ContextHandlex
doubley
double
DeviceToUserDistance(ContextHandle, ref double, ref double)
public static extern void DeviceToUserDistance(ContextHandle cr, ref double dx, ref double dy)
Parameters
cr
ContextHandledx
doubledy
double
Fill(ContextHandle)
public static extern void Fill(ContextHandle cr)
Parameters
FillExtents(ContextHandle, out double, out double, out double, out double)
public static extern void FillExtents(ContextHandle cr, out double x1, out double y1, out double x2, out double y2)
Parameters
cr
ContextHandlex1
doubley1
doublex2
doubley2
double
FillPreserve(ContextHandle)
public static extern void FillPreserve(ContextHandle cr)
Parameters
FontExtents(ContextHandle, out FontExtents)
public static extern void FontExtents(ContextHandle cr, out FontExtents extents)
Parameters
cr
ContextHandleextents
FontExtents
GetAntialias(ContextHandle)
public static extern Antialias GetAntialias(ContextHandle cr)
Parameters
Returns
GetCurrentPoint(ContextHandle, out double, out double)
public static extern void GetCurrentPoint(ContextHandle cr, out double x, out double y)
Parameters
cr
ContextHandlex
doubley
double
GetDash(ContextHandle, double[], out double)
public static extern void GetDash(ContextHandle cr, double[] dashes, out double offset)
Parameters
cr
ContextHandledashes
double[]offset
double
GetDashCount(ContextHandle)
public static extern int GetDashCount(ContextHandle cr)
Parameters
Returns
GetFillRule(ContextHandle)
public static extern FillRule GetFillRule(ContextHandle cr)
Parameters
Returns
GetFontFace(ContextHandle)
public static extern FontFaceUnownedHandle GetFontFace(ContextHandle cr)
Parameters
Returns
GetFontMatrix(ContextHandle, MatrixHandle)
public static extern void GetFontMatrix(ContextHandle cr, MatrixHandle matrix)
Parameters
cr
ContextHandlematrix
MatrixHandle
GetFontOptions(ContextHandle, FontOptionsHandle)
public static extern void GetFontOptions(ContextHandle cr, FontOptionsHandle options)
Parameters
cr
ContextHandleoptions
FontOptionsHandle
GetGType()
Calls native function cairo_gobject_context_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetGroupTarget(ContextHandle)
public static extern SurfaceUnownedHandle GetGroupTarget(ContextHandle cr)
Parameters
Returns
GetLineCap(ContextHandle)
public static extern LineCap GetLineCap(ContextHandle cr)
Parameters
Returns
GetLineJoin(ContextHandle)
public static extern LineJoin GetLineJoin(ContextHandle cr)
Parameters
Returns
GetLineWidth(ContextHandle)
public static extern double GetLineWidth(ContextHandle cr)
Parameters
Returns
GetMatrix(ContextHandle, MatrixHandle)
public static extern void GetMatrix(ContextHandle cr, MatrixHandle matrix)
Parameters
cr
ContextHandlematrix
MatrixHandle
GetMiterLimit(ContextHandle)
public static extern double GetMiterLimit(ContextHandle cr)
Parameters
Returns
GetOperator(ContextHandle)
public static extern Operator GetOperator(ContextHandle cr)
Parameters
Returns
GetScaledFont(ContextHandle)
public static extern ScaledFontUnownedHandle GetScaledFont(ContextHandle cr)
Parameters
Returns
GetSource(ContextHandle)
public static extern PatternUnownedHandle GetSource(ContextHandle cr)
Parameters
Returns
GetTarget(ContextHandle)
public static extern SurfaceUnownedHandle GetTarget(ContextHandle cr)
Parameters
Returns
GetTolerance(ContextHandle)
public static extern double GetTolerance(ContextHandle cr)
Parameters
Returns
HasCurrentPoint(ContextHandle)
public static extern bool HasCurrentPoint(ContextHandle cr)
Parameters
Returns
IdentityMatrix(ContextHandle)
public static extern void IdentityMatrix(ContextHandle cr)
Parameters
InClip(ContextHandle, double, double)
public static extern bool InClip(ContextHandle cr, double x, double y)
Parameters
cr
ContextHandlex
doubley
double
Returns
InFill(ContextHandle, double, double)
public static extern bool InFill(ContextHandle cr, double x, double y)
Parameters
cr
ContextHandlex
doubley
double
Returns
InStroke(ContextHandle, double, double)
public static extern bool InStroke(ContextHandle cr, double x, double y)
Parameters
cr
ContextHandlex
doubley
double
Returns
LineTo(ContextHandle, double, double)
public static extern void LineTo(ContextHandle cr, double x, double y)
Parameters
cr
ContextHandlex
doubley
double
Mask(ContextHandle, PatternHandle)
public static extern void Mask(ContextHandle cr, PatternHandle pattern)
Parameters
cr
ContextHandlepattern
PatternHandle
MaskSurface(ContextHandle, SurfaceHandle, double, double)
public static extern void MaskSurface(ContextHandle cr, SurfaceHandle surface, double surface_x, double surface_y)
Parameters
cr
ContextHandlesurface
SurfaceHandlesurface_x
doublesurface_y
double
MoveTo(ContextHandle, double, double)
public static extern void MoveTo(ContextHandle cr, double x, double y)
Parameters
cr
ContextHandlex
doubley
double
NewPath(ContextHandle)
public static extern void NewPath(ContextHandle cr)
Parameters
NewSubPath(ContextHandle)
public static extern void NewSubPath(ContextHandle cr)
Parameters
Paint(ContextHandle)
public static extern void Paint(ContextHandle cr)
Parameters
PaintWithAlpha(ContextHandle, double)
public static extern void PaintWithAlpha(ContextHandle cr, double alpha)
Parameters
cr
ContextHandlealpha
double
PathExtents(ContextHandle, out double, out double, out double, out double)
public static extern void PathExtents(ContextHandle cr, out double x1, out double y1, out double x2, out double y2)
Parameters
cr
ContextHandlex1
doubley1
doublex2
doubley2
double
PopGroup(ContextHandle)
public static extern PatternOwnedHandle PopGroup(ContextHandle cr)
Parameters
Returns
PopGroupToSource(ContextHandle)
public static extern void PopGroupToSource(ContextHandle cr)
Parameters
PushGroup(ContextHandle)
public static extern void PushGroup(ContextHandle cr)
Parameters
PushGroupWithContent(ContextHandle, Content)
public static extern void PushGroupWithContent(ContextHandle cr, Content content)
Parameters
cr
ContextHandlecontent
Content
Rectangle(ContextHandle, double, double, double, double)
public static extern void Rectangle(ContextHandle cr, double x, double y, double width, double height)
Parameters
cr
ContextHandlex
doubley
doublewidth
doubleheight
double
RelCurveTo(ContextHandle, double, double, double, double, double, double)
public static extern void RelCurveTo(ContextHandle cr, double x1, double y1, double x2, double y2, double x3, double y3)
Parameters
RelLineTo(ContextHandle, double, double)
public static extern void RelLineTo(ContextHandle cr, double x, double y)
Parameters
cr
ContextHandlex
doubley
double
RelMoveTo(ContextHandle, double, double)
public static extern void RelMoveTo(ContextHandle cr, double x, double y)
Parameters
cr
ContextHandlex
doubley
double
ResetClip(ContextHandle)
public static extern void ResetClip(ContextHandle cr)
Parameters
Restore(ContextHandle)
public static extern void Restore(ContextHandle cr)
Parameters
Rotate(ContextHandle, double)
public static extern void Rotate(ContextHandle cr, double angle)
Parameters
cr
ContextHandleangle
double
Save(ContextHandle)
public static extern void Save(ContextHandle cr)
Parameters
Scale(ContextHandle, double, double)
public static extern void Scale(ContextHandle cr, double sx, double sy)
Parameters
cr
ContextHandlesx
doublesy
double
SelectFontFace(ContextHandle, NonNullableUtf8StringHandle, FontSlant, FontWeight)
public static extern void SelectFontFace(ContextHandle cr, NonNullableUtf8StringHandle family, FontSlant slant, FontWeight weight)
Parameters
cr
ContextHandlefamily
NonNullableUtf8StringHandleslant
FontSlantweight
FontWeight
SetAntialias(ContextHandle, Antialias)
public static extern void SetAntialias(ContextHandle cr, Antialias antialias)
Parameters
cr
ContextHandleantialias
Antialias
SetDash(ContextHandle, double[], int, double)
public static extern void SetDash(ContextHandle cr, double[] dashes, int num_dashes, double offset)
Parameters
cr
ContextHandledashes
double[]num_dashes
intoffset
double
SetFillRule(ContextHandle, FillRule)
public static extern void SetFillRule(ContextHandle cr, FillRule fill_rule)
Parameters
cr
ContextHandlefill_rule
FillRule
SetFontFace(ContextHandle, FontFaceHandle)
public static extern void SetFontFace(ContextHandle cr, FontFaceHandle font_face)
Parameters
cr
ContextHandlefont_face
FontFaceHandle
SetFontMatrix(ContextHandle, MatrixHandle)
public static extern void SetFontMatrix(ContextHandle cr, MatrixHandle matrix)
Parameters
cr
ContextHandlematrix
MatrixHandle
SetFontOptions(ContextHandle, FontOptionsHandle)
public static extern void SetFontOptions(ContextHandle cr, FontOptionsHandle options)
Parameters
cr
ContextHandleoptions
FontOptionsHandle
SetFontSize(ContextHandle, double)
public static extern void SetFontSize(ContextHandle cr, double size)
Parameters
cr
ContextHandlesize
double
SetLineCap(ContextHandle, LineCap)
public static extern void SetLineCap(ContextHandle cr, LineCap line_cap)
Parameters
cr
ContextHandleline_cap
LineCap
SetLineJoin(ContextHandle, LineJoin)
public static extern void SetLineJoin(ContextHandle cr, LineJoin line_join)
Parameters
cr
ContextHandleline_join
LineJoin
SetLineWidth(ContextHandle, double)
public static extern void SetLineWidth(ContextHandle cr, double width)
Parameters
cr
ContextHandlewidth
double
SetMatrix(ContextHandle, MatrixHandle)
public static extern void SetMatrix(ContextHandle cr, MatrixHandle matrix)
Parameters
cr
ContextHandlematrix
MatrixHandle
SetMiterLimit(ContextHandle, double)
public static extern void SetMiterLimit(ContextHandle cr, double limit)
Parameters
cr
ContextHandlelimit
double
SetOperator(ContextHandle, Operator)
public static extern void SetOperator(ContextHandle cr, Operator op)
Parameters
cr
ContextHandleop
Operator
SetScaledFont(ContextHandle, ScaledFontHandle)
public static extern void SetScaledFont(ContextHandle cr, ScaledFontHandle scaled_font)
Parameters
cr
ContextHandlescaled_font
ScaledFontHandle
SetSource(ContextHandle, PatternHandle)
public static extern void SetSource(ContextHandle cr, PatternHandle source)
Parameters
cr
ContextHandlesource
PatternHandle
SetSourceRgb(ContextHandle, double, double, double)
public static extern void SetSourceRgb(ContextHandle cr, double red, double green, double blue)
Parameters
cr
ContextHandlered
doublegreen
doubleblue
double
SetSourceRgba(ContextHandle, double, double, double, double)
public static extern void SetSourceRgba(ContextHandle cr, double red, double green, double blue, double alpha)
Parameters
cr
ContextHandlered
doublegreen
doubleblue
doublealpha
double
SetSourceSurface(ContextHandle, SurfaceHandle, double, double)
public static extern void SetSourceSurface(ContextHandle cr, SurfaceHandle surface, double x, double y)
Parameters
cr
ContextHandlesurface
SurfaceHandlex
doubley
double
SetTolerance(ContextHandle, double)
public static extern void SetTolerance(ContextHandle cr, double tolerance)
Parameters
cr
ContextHandletolerance
double
ShowPage(ContextHandle)
public static extern void ShowPage(ContextHandle cr)
Parameters
ShowText(ContextHandle, NonNullableUtf8StringHandle)
public static extern void ShowText(ContextHandle cr, NonNullableUtf8StringHandle utf8)
Parameters
Status(ContextHandle)
public static extern Status Status(ContextHandle cr)
Parameters
Returns
Stroke(ContextHandle)
public static extern void Stroke(ContextHandle cr)
Parameters
StrokeExtents(ContextHandle, out double, out double, out double, out double)
public static extern void StrokeExtents(ContextHandle cr, out double x1, out double y1, out double x2, out double y2)
Parameters
cr
ContextHandlex1
doubley1
doublex2
doubley2
double
StrokePreserve(ContextHandle)
public static extern void StrokePreserve(ContextHandle cr)
Parameters
TextExtents(ContextHandle, NonNullableUtf8StringHandle, out TextExtents)
public static extern void TextExtents(ContextHandle cr, NonNullableUtf8StringHandle utf8, out TextExtents extents)
Parameters
cr
ContextHandleutf8
NonNullableUtf8StringHandleextents
TextExtents
TextPath(ContextHandle, NonNullableUtf8StringHandle)
public static extern void TextPath(ContextHandle cr, NonNullableUtf8StringHandle utf8)
Parameters
Transform(ContextHandle, MatrixHandle)
public static extern void Transform(ContextHandle cr, MatrixHandle matrix)
Parameters
cr
ContextHandlematrix
MatrixHandle
Translate(ContextHandle, double, double)
public static extern void Translate(ContextHandle cr, double tx, double ty)
Parameters
cr
ContextHandletx
doublety
double
UserToDevice(ContextHandle, ref double, ref double)
public static extern void UserToDevice(ContextHandle cr, ref double x, ref double y)
Parameters
cr
ContextHandlex
doubley
double
UserToDeviceDistance(ContextHandle, ref double, ref double)
public static extern void UserToDeviceDistance(ContextHandle cr, ref double dx, ref double dy)
Parameters
cr
ContextHandledx
doubledy
double