Table of Contents

Class Pattern

Namespace
Cairo.Internal
Assembly
cairo-1.0.dll
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 PatternHandle
offset double
r double
g double
b 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

pattern PatternHandle
offset double
r double
g double
b double
a double

CreateForSurface(SurfaceHandle)

public static extern PatternOwnedHandle CreateForSurface(SurfaceHandle surface)

Parameters

surface SurfaceHandle

Returns

PatternOwnedHandle

CreateLinear(double, double, double, double)

public static extern PatternOwnedHandle CreateLinear(double x0, double y0, double x1, double y1)

Parameters

x0 double
y0 double
x1 double
y1 double

Returns

PatternOwnedHandle

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

cx0 double
cy0 double
radius0 double
cx1 double
cy1 double
radius1 double

Returns

PatternOwnedHandle

CreateRgb(double, double, double)

public static extern PatternOwnedHandle CreateRgb(double r, double g, double b)

Parameters

r double
g double
b double

Returns

PatternOwnedHandle

CreateRgba(double, double, double, double)

public static extern PatternOwnedHandle CreateRgba(double r, double g, double b, double a)

Parameters

r double
g double
b double
a double

Returns

PatternOwnedHandle

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 PatternHandle
count int

Returns

Status

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

pattern PatternHandle
index int
offset double
r double
g double
b double
a double

Returns

Status

GetExtend(PatternHandle)

public static extern Extend GetExtend(PatternHandle pattern)

Parameters

pattern PatternHandle

Returns

Extend

GetFilter(PatternHandle)

public static extern Filter GetFilter(PatternHandle pattern)

Parameters

pattern PatternHandle

Returns

Filter

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 PatternHandle
x0 double
y0 double
x1 double
y1 double

Returns

Status

GetMatrix(PatternHandle, MatrixHandle)

public static extern void GetMatrix(PatternHandle pattern, MatrixHandle matrix)

Parameters

pattern PatternHandle
matrix 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 PatternHandle
r double
g double
b double
a double

Returns

Status

GetSurface(PatternHandle, out SurfaceUnownedHandle)

public static extern Status GetSurface(PatternHandle pattern, out SurfaceUnownedHandle surface)

Parameters

pattern PatternHandle
surface SurfaceUnownedHandle

Returns

Status

GetType(PatternHandle)

public static extern PatternType GetType(PatternHandle pattern)

Parameters

pattern PatternHandle

Returns

PatternType

SetExtend(PatternHandle, Extend)

public static extern void SetExtend(PatternHandle pattern, Extend extend)

Parameters

pattern PatternHandle
extend Extend

SetFilter(PatternHandle, Filter)

public static extern void SetFilter(PatternHandle pattern, Filter filter)

Parameters

pattern PatternHandle
filter Filter

SetMatrix(PatternHandle, MatrixHandle)

public static extern void SetMatrix(PatternHandle pattern, MatrixHandle matrix)

Parameters

pattern PatternHandle
matrix MatrixHandle

Status(PatternHandle)

public static extern Status Status(PatternHandle pattern)

Parameters

pattern PatternHandle

Returns

Status