Frees a Gsk.Stroke.
Gets the dash array in use.
the dash array or NULL if the dash array is empty
Gets the dash offset.
the dash offset
Gets the line width used.
the line width
Gets the miter limit.
the miter limit
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 Gsk.Stroke.set_dash_offset.
Optionaldash: number[]the array of dashes
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 Gsk.Stroke.set_dash for more details on dashing.
offset into the dash pattern
Sets the line cap to be used when stroking.
See Gsk.LineCap for details.
Sets the line join to be used when stroking.
See Gsk.LineJoin for details.
Sets the line width to be used when stroking.
The line width must be >= 0.
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.
the miter limit
A helper function that sets the stroke parameters of a cairo context from a Gsk.Stroke.
StaticequalChecks if two strokes are identical.
Optionalstroke1: anythe first stroke
Optionalstroke2: anythe second stroke
Staticnew
Collects the parameters that are needed when stroking a path.
Since
4.14