class
UIng::Area::Draw::Path
- UIng::Area::Draw::Path
- Reference
- Object
Included Modules
Defined in:
uing/area/area/draw/path.crConstructors
- .new(*args, &)
- .new(*args, **kwargs, &)
- .new(ref_ptr : Pointer(LibUI::DrawPath))
- .new(mode : FillMode)
Class Method Summary
-
.open(mode : FillMode, & : Path -> Nil)
RAII pattern: automatically free path when block exits
Instance Method Summary
- #add_rectangle(x : Float64, y : Float64, width : Float64, height : Float64) : Path
- #arc_to(x_center : Float64, y_center : Float64, radius : Float64, start_angle : Float64, sweep : Float64, negative : Bool) : Path
- #bezier_to(c1x : Float64, c1y : Float64, c2x : Float64, c2y : Float64, end_x : Float64, end_y : Float64) : Path
- #close_figure : Path
- #end_ : Nil
- #end_path : Nil
- #ended? : Bool
- #free : Nil
- #line_to(x : Float64, y : Float64) : Path
- #new_figure(x : Float64, y : Float64) : Path
- #new_figure_with_arc(x_center : Float64, y_center : Float64, radius : Float64, start_angle : Float64, sweep : Float64, negative : Bool) : Path
- #to_unsafe : Pointer(Void)
Macros inherited from module UIng::BlockConstructor
block_constructor
block_constructor
Constructor Detail
Class Method Detail
RAII pattern: automatically free path when block exits
Instance Method Detail
def arc_to(x_center : Float64, y_center : Float64, radius : Float64, start_angle : Float64, sweep : Float64, negative : Bool) : Path
#
def bezier_to(c1x : Float64, c1y : Float64, c2x : Float64, c2y : Float64, end_x : Float64, end_y : Float64) : Path
#