Collects the parameters that are needed when stroking a path.
Creates a copy of a <GskStroke>.
Passed: a <GskStroke>.
the stroke to copy
Returned: a <GskStroke>.
a new <GskStroke>. Use stroke:free to free it
Checks if two strokes are identical.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
the first stroke
Passed, or left out: a foreign pointer, or a bytevector, or #f.
the second stroke
Returned: a boolean.
true if the two strokes are equal, false otherwise
Frees a <GskStroke>.
Passed: a <GskStroke>.
a stroke
Gets the dash array in use.
Passed: a <GskStroke>.
a stroke
Returned: a f32vector, or #f.
the dash array or NULL if the dash array is empty
Not returned: it is the length of %return.
number of elements in the array returned
Gets the dash offset.
Passed: a <GskStroke>.
a stroke
Returned: a real number.
the dash offset
Gets the line cap used.
See <GskLineCap> for details.
Passed: a <GskStroke>.
a stroke
Returned: a <GskLineCap>.
the line cap
Gets the line join used.
See <GskLineJoin> for details.
Passed: a <GskStroke>.
a stroke
Returned: a <GskLineJoin>.
the line join
Gets the line width used.
Passed: a <GskStroke>.
a stroke
Returned: a real number.
the line width
Gets the miter limit.
Passed: a <GskStroke>.
a stroke
Returned: a real number.
the miter limit
Creates a new <GskStroke> with the given
line-width.
Passed: a real number.
line width of the stroke. Must be > 0
Returned: a <GskStroke>.
a new <GskStroke>
Sets the dash pattern to use.
A dash pattern is specified by an array of alternating non-negative values. Each value provides the length of alternate "on" and "off" portions of the stroke.
Each "on" segment will have caps applied as if the segment were a
separate contour. In particular, it is valid to use an "on" length of 0
with Gsk.LineCap.round or Gsk.LineCap.square to draw dots
or squares along a path.
If n-dash is 0, if all elements in dash are 0, or if there are negative values in dash, then dashing is disabled.
If n-dash is 1, an alternating "on" and "off" pattern with the single dash length provided is assumed.
If n-dash is uneven, the dash array will be used with the first element in dash defining an "on" or "off" in alternating passes through the array.
You can specify a starting offset into the dash with stroke:set-dash-offset.
Passed: a <GskStroke>.
a stroke
Passed: a f32vector, or a list or vector, each a real number, or
#f.
the array of dashes
Not passed: guile-gi gives the length of dash.
number of elements in dash
Sets the offset into the dash pattern where dashing should begin.
This is an offset into the length of the path, not an index into the array values of the dash array.
See stroke:set-dash for more details on
dashing.
Passed: a <GskStroke>.
a stroke
Passed: a real number.
offset into the dash pattern
Sets the line cap to be used when stroking.
See <GskLineCap> for details.
Passed: a <GskStroke>.
a stroke
Passed: a <GskLineCap>, or one of its symbols.
the line cap
Sets the line join to be used when stroking.
See <GskLineJoin> for details.
Passed: a <GskStroke>.
a stroke
Passed: a <GskLineJoin>, or one of its symbols.
the line join to use
Sets the line width to be used when stroking.
The line width must be >= 0.
Passed: a <GskStroke>.
a stroke
Passed: a real number.
width of the line in pixels
Sets the miter limit to be used when stroking.
The miter limit is the distance from the corner where sharp turns of joins get cut off.
The limit is specfied in units of line width and must be non-negative.
For joins of type Gsk.LineJoin.miter that exceed the miter limit,
the join gets rendered as if it was of type Gsk.LineJoin.bevel.
Passed: a <GskStroke>.
a stroke
Passed: a real number.
the miter limit
A helper function that sets the stroke parameters of a cairo context
from a <GskStroke>.
Passed: a <GskStroke>.
a stroke
Passed: a <CairoContext>.
the cairo context to configure