gsk.stroke

Module for [Stroke] class

class Stroke

Types 1

A [gsk.stroke.Stroke] struct collects the parameters that influence the operation of stroking a path.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
Stroke self()Returns `this`, for use in `with` statements.
gsk.stroke.Stroke copy()Creates a copy of the given other stroke. Returns: a new [gsk.stroke.Stroke]. Use [gsk.stroke.Stroke.free] to free it
float[] getDash()Gets the dash array in use or `NULL` if dashing is disabled. Returns: The dash array or `NULL` if the dash array is empty.
float getDashOffset()Returns the dash_offset of a [gsk.stroke.Stroke]. Returns:
gsk.types.LineCap getLineCap()Gets the line cap used.
gsk.types.LineJoin getLineJoin()Gets the line join used.
float getLineWidth()Gets the line width used. Returns: The line width
float getMiterLimit()Returns the miter limit of a [gsk.stroke.Stroke]. Returns:
void setDash(float[] dash = null)Sets the dash pattern to use by this stroke.
void setDashOffset(float offset)Sets the offset into the dash pattern where dashing should begin.
void setLineCap(gsk.types.LineCap lineCap)Sets the line cap to be used when stroking.
void setLineJoin(gsk.types.LineJoin lineJoin)Sets the line join to be used when stroking.
void setLineWidth(float lineWidth)Sets the line width to be used when stroking.
void setMiterLimit(float limit)Sets the limit for the distance from the corner where sharp turns of joins get cut off.
void toCairo(cairo.context.Context cr)A helper function that sets the stroke parameters of cr from the values found in self.
bool equal(const(void) * stroke1 = null, const(void) * stroke2 = null)Checks if 2 strokes are identical.
Constructors
this(void * ptr, Flag!"Take" take)
this(float lineWidth)Creates a new [gsk.stroke.Stroke] with the given line_width.