Stroke

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

Constructors

this
this(float lineWidth)

Creates a new gsk.stroke.Stroke with the given line_width.

Members

Functions

copy
gsk.stroke.Stroke copy()

Creates a copy of the given other stroke.

getDash
float[] getDash()

Gets the dash array in use or NULL if dashing is disabled.

getDashOffset
float getDashOffset()

Returns the dash_offset of a gsk.stroke.Stroke.

getLineCap
gsk.types.LineCap getLineCap()

Gets the line cap used.

getLineJoin
gsk.types.LineJoin getLineJoin()

Gets the line join used.

getLineWidth
float getLineWidth()

Gets the line width used.

getMiterLimit
float getMiterLimit()

Returns the miter limit of a gsk.stroke.Stroke.

setDash
void setDash(float[] dash)

Sets the dash pattern to use by this stroke.

setDashOffset
void setDashOffset(float offset)

Sets the offset into the dash pattern where dashing should begin.

setLineCap
void setLineCap(gsk.types.LineCap lineCap)

Sets the line cap to be used when stroking.

setLineJoin
void setLineJoin(gsk.types.LineJoin lineJoin)

Sets the line join to be used when stroking.

setLineWidth
void setLineWidth(float lineWidth)

Sets the line width to be used when stroking.

setMiterLimit
void setMiterLimit(float limit)

Sets the limit for the distance from the corner where sharp turns of joins get cut off.

toCairo
void toCairo(cairo.context.Context cr)

A helper function that sets the stroke parameters of cr from the values found in self.

Static functions

equal
bool equal(const(void)* stroke1, const(void)* stroke2)

Checks if 2 strokes are identical.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.