Class Pattern
public class Pattern
- Inheritance
-
Pattern
- Inherited Members
Methods
AddColorStopRgb(PatternHandle, double, double, double, double)
public static extern void AddColorStopRgb(PatternHandle pattern, double offset, double r, double g, double b)
Parameters
pattern
PatternHandleoffset
doubler
doubleg
doubleb
double
AddColorStopRgba(PatternHandle, double, double, double, double, double)
public static extern void AddColorStopRgba(PatternHandle pattern, double offset, double r, double g, double b, double a)
Parameters
CreateForSurface(SurfaceHandle)
public static extern PatternOwnedHandle CreateForSurface(SurfaceHandle surface)
Parameters
surface
SurfaceHandle
Returns
CreateLinear(double, double, double, double)
public static extern PatternOwnedHandle CreateLinear(double x0, double y0, double x1, double y1)
Parameters
Returns
CreateRadial(double, double, double, double, double, double)
public static extern PatternOwnedHandle CreateRadial(double cx0, double cy0, double radius0, double cx1, double cy1, double radius1)
Parameters
Returns
CreateRgb(double, double, double)
public static extern PatternOwnedHandle CreateRgb(double r, double g, double b)
Parameters
Returns
CreateRgba(double, double, double, double)
public static extern PatternOwnedHandle CreateRgba(double r, double g, double b, double a)
Parameters
Returns
Destroy(IntPtr)
public static extern void Destroy(IntPtr handle)
Parameters
handle
IntPtr
GetColorStopCount(PatternHandle, out int)
public static extern Status GetColorStopCount(PatternHandle pattern, out int count)
Parameters
pattern
PatternHandlecount
int
Returns
GetColorStopRgba(PatternHandle, int, out double, out double, out double, out double, out double)
public static extern Status GetColorStopRgba(PatternHandle pattern, int index, out double offset, out double r, out double g, out double b, out double a)
Parameters
Returns
GetExtend(PatternHandle)
public static extern Extend GetExtend(PatternHandle pattern)
Parameters
pattern
PatternHandle
Returns
GetFilter(PatternHandle)
public static extern Filter GetFilter(PatternHandle pattern)
Parameters
pattern
PatternHandle
Returns
GetGType()
Calls native function cairo_gobject_pattern_get_type.
public static extern nuint GetGType()
Returns
- nuint
Transfer ownership: None Nullable: False
GetLinearPoints(PatternHandle, out double, out double, out double, out double)
public static extern Status GetLinearPoints(PatternHandle pattern, out double x0, out double y0, out double x1, out double y1)
Parameters
pattern
PatternHandlex0
doubley0
doublex1
doubley1
double
Returns
GetMatrix(PatternHandle, MatrixHandle)
public static extern void GetMatrix(PatternHandle pattern, MatrixHandle matrix)
Parameters
pattern
PatternHandlematrix
MatrixHandle
GetRgba(PatternHandle, out double, out double, out double, out double)
public static extern Status GetRgba(PatternHandle pattern, out double r, out double g, out double b, out double a)
Parameters
pattern
PatternHandler
doubleg
doubleb
doublea
double
Returns
GetSurface(PatternHandle, out SurfaceUnownedHandle)
public static extern Status GetSurface(PatternHandle pattern, out SurfaceUnownedHandle surface)
Parameters
pattern
PatternHandlesurface
SurfaceUnownedHandle
Returns
GetType(PatternHandle)
public static extern PatternType GetType(PatternHandle pattern)
Parameters
pattern
PatternHandle
Returns
SetExtend(PatternHandle, Extend)
public static extern void SetExtend(PatternHandle pattern, Extend extend)
Parameters
pattern
PatternHandleextend
Extend
SetFilter(PatternHandle, Filter)
public static extern void SetFilter(PatternHandle pattern, Filter filter)
Parameters
pattern
PatternHandlefilter
Filter
SetMatrix(PatternHandle, MatrixHandle)
public static extern void SetMatrix(PatternHandle pattern, MatrixHandle matrix)
Parameters
pattern
PatternHandlematrix
MatrixHandle
Status(PatternHandle)
public static extern Status Status(PatternHandle pattern)
Parameters
pattern
PatternHandle