Stroke

class Stroke(val gskStrokePointer: <Error class: unknown class><<Error class: unknown class>>)(source)

A GskStroke struct collects the parameters that influence the operation of stroking a path.

Skipped during bindings generation

  • parameter n_dash: n_dash: Out parameter is not supported

  • parameter dash: Array parameter of type gfloat is not supported

Since

4.14

Constructors

Link copied to clipboard
constructor(lineWidth: <Error class: unknown class>)

Creates a new GskStroke with the given @line_width.

constructor(gskStrokePointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gskStrokePointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun copy(): Stroke

Creates a copy of the given @other stroke.

Link copied to clipboard
fun free()

Frees a GskStroke.

Link copied to clipboard
fun getDashOffset(): <Error class: unknown class>

Returns the dash_offset of a GskStroke.

Link copied to clipboard

Gets the line cap used.

Link copied to clipboard

Gets the line join used.

Link copied to clipboard
fun getLineWidth(): <Error class: unknown class>

Gets the line width used.

Link copied to clipboard
fun getMiterLimit(): <Error class: unknown class>

Returns the miter limit of a GskStroke.

Link copied to clipboard
fun setDashOffset(offset: <Error class: unknown class>)

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

Link copied to clipboard
fun setLineCap(lineCap: LineCap)

Sets the line cap to be used when stroking.

Link copied to clipboard
fun setLineJoin(lineJoin: LineJoin)

Sets the line join to be used when stroking.

Link copied to clipboard
fun setLineWidth(lineWidth: <Error class: unknown class>)

Sets the line width to be used when stroking.

Link copied to clipboard
fun setMiterLimit(limit: <Error class: unknown class>)

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

Link copied to clipboard
fun toCairo(cr: <Error class: unknown class>)

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