Stroke
Object Hierarchy:
Description:
[ CCode ( copy_function = "g_boxed_copy" , free_function = "g_boxed_free" , type_id = "gsk_stroke_get_type ()" ) ]
[ Compact ]
[ Version ( since = "4.14" ) ]
public class Stroke
A `GskStroke` struct collects the parameters that influence the operation of stroking a path.
Content:
Static methods:
- public static bool equal (void* stroke1, void* stroke2)
Creation methods:
Methods:
- public Stroke copy ()
Creates a copy of the given this
stroke.
- public void free ()
Frees a `GskStroke`.
- public unowned float[]? get_dash ()
Gets the dash array in use or `NULL` if dashing is disabled.
- public float get_dash_offset ()
Returns the dash_offset of a `GskStroke`.
- public LineCap get_line_cap ()
Gets the line cap used.
- public LineJoin get_line_join ()
Gets the line join used.
- public float get_line_width ()
Gets the line width used.
- public float get_miter_limit ()
Returns the miter limit of a `GskStroke`.
- public void set_dash (float[]? dash)
Sets the dash pattern to use by this stroke.
- public void set_dash_offset (float offset)
Sets the offset into the dash pattern where dashing should begin.
- public void set_line_cap (LineCap line_cap)
Sets the line cap to be used when stroking.
- public void set_line_join (LineJoin line_join)
Sets the line join to be used when stroking.
- public void set_line_width (float line_width)
Sets the line width to be used when stroking.
- public void set_miter_limit (float limit)
Sets the limit for the distance from the corner where sharp turns of
joins get cut off.
- public void to_cairo (Context cr)
A helper function that sets the stroke parameters of cr
from the values found in this.