class UIng::Area::Draw::Context

Included Modules

Defined in:

uing/area/area/draw/context.cr

Constructors

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::DrawContext)) #

[View source]

Instance Method Detail

def clip(draw_path : Path) : Nil #

[View source]
def fill(draw_path : Path, draw_brush : Brush) : Nil #

[View source]
def restore : Nil #

[View source]
def save : Nil #

[View source]
def stroke(draw_path : Path, draw_brush : Brush, draw_stroke_params : StrokeParams) : Nil #

[View source]
def stroke(draw_path : Path, draw_brush : Brush, cap : UIng::Area::Draw::LineCap = LineCap::Flat, join : UIng::Area::Draw::LineJoin | Nil = LineJoin::Miter, thickness : Number = 0.0, miter_limit : Number = 0.0, dash_phase : Number = 0.0, dashes : Enumerable(Float64) | Nil = nil) : Nil #

[View source]
def text(draw_text_layout : TextLayout, x : Float64, y : Float64) : Nil #

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

[View source]
def transform(draw_matrix : DrawMatrix) : Nil #

[View source]