Table of Contents

Class Stroke

Namespace
Gsk.Internal
Assembly
Gsk-4.0.dll
public class Stroke
Inheritance
Stroke
Inherited Members

Methods

Copy(StrokeHandle)

Calls native method gsk_stroke_copy. Version: 4.14

[Version("4.14")]
public static extern StrokeOwnedHandle Copy(StrokeHandle other)

Parameters

other StrokeHandle

Transfer ownership: None Nullable: False

Returns

StrokeOwnedHandle

Transfer ownership: Full Nullable: False

Equal(IntPtr, IntPtr)

Calls native function gsk_stroke_equal. Version: 4.14

[Version("4.14")]
public static extern bool Equal(IntPtr stroke1, IntPtr stroke2)

Parameters

stroke1 IntPtr

Transfer ownership: None Nullable: True

stroke2 IntPtr

Transfer ownership: None Nullable: True

Returns

bool

Transfer ownership: None Nullable: False

Free(StrokeHandle)

Calls native method gsk_stroke_free. Version: 4.14

[Version("4.14")]
public static extern void Free(StrokeHandle self)

Parameters

self StrokeHandle

Transfer ownership: None Nullable: False

GetDash(StrokeHandle, out nuint)

Calls native method gsk_stroke_get_dash. Version: 4.14

[Version("4.14")]
public static extern float[] GetDash(StrokeHandle self, out nuint nDash)

Parameters

self StrokeHandle

Transfer ownership: None Nullable: False

nDash nuint

Transfer ownership: Full Nullable: False

Returns

float[]

Transfer ownership: None Nullable: True

GetDashOffset(StrokeHandle)

Calls native method gsk_stroke_get_dash_offset. Version: 4.14

[Version("4.14")]
public static extern float GetDashOffset(StrokeHandle self)

Parameters

self StrokeHandle

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

GetGType()

Calls native function gsk_stroke_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetLineCap(StrokeHandle)

Calls native method gsk_stroke_get_line_cap. Version: 4.14

[Version("4.14")]
public static extern LineCap GetLineCap(StrokeHandle self)

Parameters

self StrokeHandle

Transfer ownership: None Nullable: False

Returns

LineCap

Transfer ownership: None Nullable: False

GetLineJoin(StrokeHandle)

Calls native method gsk_stroke_get_line_join. Version: 4.14

[Version("4.14")]
public static extern LineJoin GetLineJoin(StrokeHandle self)

Parameters

self StrokeHandle

Transfer ownership: None Nullable: False

Returns

LineJoin

Transfer ownership: None Nullable: False

GetLineWidth(StrokeHandle)

Calls native method gsk_stroke_get_line_width. Version: 4.14

[Version("4.14")]
public static extern float GetLineWidth(StrokeHandle self)

Parameters

self StrokeHandle

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

GetMiterLimit(StrokeHandle)

Calls native method gsk_stroke_get_miter_limit. Version: 4.14

[Version("4.14")]
public static extern float GetMiterLimit(StrokeHandle self)

Parameters

self StrokeHandle

Transfer ownership: None Nullable: False

Returns

float

Transfer ownership: None Nullable: False

New(float)

Calls native constructor gsk_stroke_new. Version: 4.14

[Version("4.14")]
public static extern StrokeOwnedHandle New(float lineWidth)

Parameters

lineWidth float

Transfer ownership: None Nullable: False

Returns

StrokeOwnedHandle

Transfer ownership: Full Nullable: False

SetDash(StrokeHandle, ref float, nuint)

Calls native method gsk_stroke_set_dash. Version: 4.14

[Version("4.14")]
public static extern void SetDash(StrokeHandle self, ref float dash, nuint nDash)

Parameters

self StrokeHandle

Transfer ownership: None Nullable: False

dash float

Transfer ownership: None Nullable: True

nDash nuint

Transfer ownership: None Nullable: False

SetDashOffset(StrokeHandle, float)

Calls native method gsk_stroke_set_dash_offset. Version: 4.14

[Version("4.14")]
public static extern void SetDashOffset(StrokeHandle self, float offset)

Parameters

self StrokeHandle

Transfer ownership: None Nullable: False

offset float

Transfer ownership: None Nullable: False

SetLineCap(StrokeHandle, LineCap)

Calls native method gsk_stroke_set_line_cap. Version: 4.14

[Version("4.14")]
public static extern void SetLineCap(StrokeHandle self, LineCap lineCap)

Parameters

self StrokeHandle

Transfer ownership: None Nullable: False

lineCap LineCap

Transfer ownership: None Nullable: False

SetLineJoin(StrokeHandle, LineJoin)

Calls native method gsk_stroke_set_line_join. Version: 4.14

[Version("4.14")]
public static extern void SetLineJoin(StrokeHandle self, LineJoin lineJoin)

Parameters

self StrokeHandle

Transfer ownership: None Nullable: False

lineJoin LineJoin

Transfer ownership: None Nullable: False

SetLineWidth(StrokeHandle, float)

Calls native method gsk_stroke_set_line_width. Version: 4.14

[Version("4.14")]
public static extern void SetLineWidth(StrokeHandle self, float lineWidth)

Parameters

self StrokeHandle

Transfer ownership: None Nullable: False

lineWidth float

Transfer ownership: None Nullable: False

SetMiterLimit(StrokeHandle, float)

Calls native method gsk_stroke_set_miter_limit. Version: 4.14

[Version("4.14")]
public static extern void SetMiterLimit(StrokeHandle self, float limit)

Parameters

self StrokeHandle

Transfer ownership: None Nullable: False

limit float

Transfer ownership: None Nullable: False

ToCairo(StrokeHandle, ContextHandle)

Calls native method gsk_stroke_to_cairo. Version: 4.14

[Version("4.14")]
public static extern void ToCairo(StrokeHandle self, ContextHandle cr)

Parameters

self StrokeHandle

Transfer ownership: None Nullable: False

cr ContextHandle

Transfer ownership: None Nullable: False