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, &)
Creates a new Path and yields it to the block.
Instance Method Summary
- #add_rectangle(x : Float64, y : Float64, width : Float64, height : Float64) : self
- #arc_to(x_center : Float64, y_center : Float64, radius : Float64, start_angle : Float64, sweep : Float64, negative : Bool) : self
- #bezier_to(c1x : Float64, c1y : Float64, c2x : Float64, c2y : Float64, end_x : Float64, end_y : Float64) : self
- #close_figure : self
- #end_path : Nil
- #ended? : Bool
- #free : Nil
- #line_to(x : Float64, y : Float64) : self
- #new_figure(x : Float64, y : Float64) : self
- #new_figure_with_arc(x_center : Float64, y_center : Float64, radius : Float64, start_angle : Float64, sweep : Float64, negative : Bool) : self
- #released? : Bool
- #to_unsafe
Macros inherited from module UIng::BlockConstructor
block_constructor
block_constructor
Constructor Detail
Class Method Detail
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 Method Detail
def add_rectangle(x : Float64, y : Float64, width : Float64, height : Float64) : self
#
def arc_to(x_center : Float64, y_center : Float64, radius : Float64, start_angle : Float64, sweep : Float64, negative : Bool) : self
#
def bezier_to(c1x : Float64, c1y : Float64, c2x : Float64, c2y : Float64, end_x : Float64, end_y : Float64) : self
#
def new_figure_with_arc(x_center : Float64, y_center : Float64, radius : Float64, start_angle : Float64, sweep : Float64, negative : Bool) : self
#