class

UIng::Area::Draw::Path

Inherits UIng::BlockConstructor < Reference < Object

Constructors

new(*args, &)
Source
new(*args, **kwargs, &)
Source
new(ref_ptr : Pointer(LibUI::DrawPath))
Source
new(mode : FillMode)
Source

Class 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).
Source

Instance methods

add_rectangle(x : Float64, y : Float64, width : Float64, height : Float64) : self
Source
arc_to(x_center : Float64, y_center : Float64, radius : Float64, start_angle : Float64, sweep : Float64, negative : Bool) : self
Source
bezier_to(c1x : Float64, c1y : Float64, c2x : Float64, c2y : Float64, end_x : Float64, end_y : Float64) : self
Source
close_figure
Source
end_path
Source
ended?
Source
free
Source
line_to(x : Float64, y : Float64) : self
Source
new_figure(x : Float64, y : Float64) : self
Source
new_figure_with_arc(x_center : Float64, y_center : Float64, radius : Float64, start_angle : Float64, sweep : Float64, negative : Bool) : self
Source
released?
Source
to_unsafe
Source