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
Methods
Copy()
[Version("4.14")]
public Stroke Copy()
Returns
Equal(IntPtr, IntPtr)
[Version("4.14")]
public static bool Equal(IntPtr stroke1, IntPtr stroke2)
Parameters
Returns
Equals(Stroke?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Stroke? other)
Parameters
other
StrokeAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Free()
[Version("4.14")]
public void Free()
GetDashOffset()
[Version("4.14")]
public float GetDashOffset()
Returns
GetGType()
public static Type GetGType()
Returns
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
GetLineJoin()
[Version("4.14")]
public LineJoin GetLineJoin()
Returns
GetLineWidth()
[Version("4.14")]
public float GetLineWidth()
Returns
GetMiterLimit()
[Version("4.14")]
public float GetMiterLimit()
Returns
New(float)
[Version("4.14")]
public static Stroke New(float lineWidth)
Parameters
lineWidth
float
Returns
SetDash(Span<float>)
[Version("4.14")]
public void SetDash(Span<float> dash)
Parameters
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