UIng::Area::Draw::Path
Inherits UIng::BlockConstructor < Reference < Object
Constructors
new(*args, &)
Sourcenew(*args, **kwargs, &)
Sourcenew(ref_ptr : Pointer(LibUI::DrawPath))
Sourcenew(mode : FillMode)
SourceClass methods
open(mode : FillMode, &)
Creates a new Path and yields it to the block.
- The block must explicitly call end_path before using this path in Context APIs.
- The path is always freed after the block, even if an exception occurs.
- Returns the block's return value (NOT the Path instance).
Instance methods
add_rectangle(x : Float64, y : Float64, width : Float64, height : Float64) : self
Sourcearc_to(x_center : Float64, y_center : Float64, radius : Float64, start_angle : Float64, sweep : Float64, negative : Bool) : self
Sourcebezier_to(c1x : Float64, c1y : Float64, c2x : Float64, c2y : Float64, end_x : Float64, end_y : Float64) : self
Sourceclose_figure
Sourceend_path
Sourceended?
Sourcefree
Sourceline_to(x : Float64, y : Float64) : self
Sourcenew_figure(x : Float64, y : Float64) : self
Sourcenew_figure_with_arc(x_center : Float64, y_center : Float64, radius : Float64, start_angle : Float64, sweep : Float64, negative : Bool) : self
Sourcereleased?
Sourceto_unsafe
Source