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) nothrow
GType _getGType() static nothrow
GType _gType() @property nothrow
Stroke self() nothrowReturns `this`, for use in `with` statements.
gsk.stroke.Stroke copy() nothrowCreates a copy of the given other stroke. Returns: a new [gsk.stroke.Stroke]. Use [gsk.stroke.Stroke.free] to free it
float[] getDash() nothrowGets 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() nothrowReturns the dash_offset of a [gsk.stroke.Stroke]. Returns:
gsk.types.LineCap getLineCap() nothrowGets the line cap used.
gsk.types.LineJoin getLineJoin() nothrowGets the line join used.
float getLineWidth() nothrowGets the line width used. Returns: The line width
float getMiterLimit() nothrowReturns the miter limit of a [gsk.stroke.Stroke]. Returns:
void setDash(float[] dash = null) nothrowSets the dash pattern to use by this stroke.
void setDashOffset(float offset) nothrowSets the offset into the dash pattern where dashing should begin.
void setLineCap(gsk.types.LineCap lineCap) nothrowSets the line cap to be used when stroking.
void setLineJoin(gsk.types.LineJoin lineJoin) nothrowSets the line join to be used when stroking.
void setLineWidth(float lineWidth) nothrowSets the line width to be used when stroking.
void setMiterLimit(float limit) nothrowSets the limit for the distance from the corner where sharp turns of joins get cut off.
void toCairo(cairo.context.Context cr) nothrowA 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) static nothrowChecks 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.