Table of Contents

Class Stroke

Namespace
Gsk
Assembly
Gsk-4.0.dll
public sealed class Stroke : BoxedRecord, IEquatable<Stroke>
Inheritance
Stroke
Implements
Inherited Members

Constructors

Stroke(StrokeOwnedHandle)

public Stroke(StrokeOwnedHandle handle)

Parameters

handle StrokeOwnedHandle

Properties

Handle

public StrokeOwnedHandle Handle { get; }

Property Value

StrokeOwnedHandle

Methods

Copy()

[Version("4.14")]
public Stroke Copy()

Returns

Stroke

Equal(IntPtr, IntPtr)

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

Parameters

stroke1 IntPtr
stroke2 IntPtr

Returns

bool

Equals(Stroke?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Stroke? other)

Parameters

other Stroke

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Free()

[Version("4.14")]
public void Free()

GetDashOffset()

[Version("4.14")]
public float GetDashOffset()

Returns

float

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetLineCap()

[Version("4.14")]
public LineCap GetLineCap()

Returns

LineCap

GetLineJoin()

[Version("4.14")]
public LineJoin GetLineJoin()

Returns

LineJoin

GetLineWidth()

[Version("4.14")]
public float GetLineWidth()

Returns

float

GetMiterLimit()

[Version("4.14")]
public float GetMiterLimit()

Returns

float

New(float)

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

Parameters

lineWidth float

Returns

Stroke

SetDash(Span<float>)

[Version("4.14")]
public void SetDash(Span<float> dash)

Parameters

dash Span<float>

SetDashOffset(float)

[Version("4.14")]
public void SetDashOffset(float offset)

Parameters

offset float

SetLineCap(LineCap)

[Version("4.14")]
public void SetLineCap(LineCap lineCap)

Parameters

lineCap LineCap

SetLineJoin(LineJoin)

[Version("4.14")]
public void SetLineJoin(LineJoin lineJoin)

Parameters

lineJoin LineJoin

SetLineWidth(float)

[Version("4.14")]
public void SetLineWidth(float lineWidth)

Parameters

lineWidth float

SetMiterLimit(float)

[Version("4.14")]
public void SetMiterLimit(float limit)

Parameters

limit float

ToCairo(Context)

[Version("4.14")]
public void ToCairo(Context cr)

Parameters

cr Context