Since 4.14copySince 4.14freeSince 4.14get_Since 4.14get_Since 4.14get_Since 4.14get_Since 4.14get_Since 4.14get_Since 4.14set_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.
the array of dashes
Since 4.14set_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
Since 4.14set_Sets the line cap to be used when stroking.
See Gsk.LineCap for details.
Since 4.14set_Sets the line join to be used when stroking.
See Gsk.LineJoin for details.
Since 4.14set_Since 4.14set_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
Since 4.14to_A helper function that sets the stroke parameters of a cairo context from a Gsk.Stroke.
StaticSince 4.14equalStaticnew
Collects the parameters that are needed when stroking a path.
Since
4.14