class UIng::Area::Draw::Path

Included Modules

Defined in:

uing/area/area/draw/path.cr

Constructors

Class Method Summary

Instance Method Summary

Macros inherited from module UIng::BlockConstructor

block_constructor block_constructor

Constructor Detail

def self.new(*args, &) #

[View source]
def self.new(*args, **kwargs, &) #

[View source]
def self.new(ref_ptr : Pointer(LibUI::DrawPath)) #

[View source]
def self.new(mode : FillMode) #

[View source]

Class Method Detail

def self.open(mode : FillMode, & : Path -> Nil) #

RAII pattern: automatically free path when block exits


[View source]

Instance Method Detail

def add_rectangle(x : Float64, y : Float64, width : Float64, height : Float64) : Path #

[View source]
def arc_to(x_center : Float64, y_center : Float64, radius : Float64, start_angle : Float64, sweep : Float64, negative : Bool) : Path #

[View source]
def bezier_to(c1x : Float64, c1y : Float64, c2x : Float64, c2y : Float64, end_x : Float64, end_y : Float64) : Path #

[View source]
def close_figure : Path #

[View source]
def end_ : Nil #

[View source]
def end_path : Nil #

[View source]
def ended? : Bool #

[View source]
def free : Nil #

[View source]
def line_to(x : Float64, y : Float64) : Path #

[View source]
def new_figure(x : Float64, y : Float64) : Path #

[View source]
def new_figure_with_arc(x_center : Float64, y_center : Float64, radius : Float64, start_angle : Float64, sweep : Float64, negative : Bool) : Path #

[View source]
def to_unsafe : Pointer(Void) #

[View source]