class Gsk::Path
- Gsk::Path
- Reference
- Object
Overview
Describes lines and curves that are more complex than simple rectangles.
Paths can used for rendering (filling or stroking) and for animations (e.g. as trajectories).
Gsk::Path
is an immutable, opaque, reference-counted struct.
After creation, you cannot change the types it represents. Instead,
new Gsk::Path
objects have to be created. The Gsk::PathBuilder
structure is meant to help in this endeavor.
Conceptually, a path consists of zero or more contours (continuous, connected curves), each of which may or may not be closed. Contours are typically constructed from Bézier segments.

Defined in:
lib/gi-crystal/src/auto/gsk-4.0/path.crConstructors
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
- .parse(string : String) : Gsk::Path | Nil
Instance Method Summary
- #bounds : Graphene::Rect
- #closest_point(point : Graphene::Point, threshold : Float32) : Gsk::PathPoint
- #end_point : Gsk::PathPoint
- #finalize
- #foreach(flags : Gsk::PathForeachFlags, func : Gsk::PathForeachFunc, user_data : Pointer(Void) | Nil) : Bool
- #in_fill(point : Graphene::Point, fill_rule : Gsk::FillRule) : Bool
- #is_closed : Bool
- #is_empty : Bool
- #print(string : GLib::String) : Nil
- #ref : Gsk::Path
- #start_point : Gsk::PathPoint
- #stroke_bounds(stroke : Gsk::Stroke) : Graphene::Rect
- #to_cairo(cr : Cairo::Context) : Nil
- #to_string : String
- #to_unsafe : Pointer(Void)
- #unref : Nil
Constructor Detail
Class Method Detail
Instance Method Detail
def foreach(flags : Gsk::PathForeachFlags, func : Gsk::PathForeachFunc, user_data : Pointer(Void) | Nil) : Bool
#