class

GSDL::UI::RootCanvas

Inherits GSDL::UI::Canvas < GSDL::UI::Container < GSDL::UI::Element < Reference < Object

Constants

OVERLAY_BASE_Z_INDEX = 1000

Constructors

new(width : Int32, height : Int32)
Source
new(*args, **kwargs)
Source
new(*args, **kwargs, &)
Source

Instance methods

clear_overlays
Source
clear_overlays_except_for(target : Element | Nil)
Source
collect_focusable_elements(elements : Array(Element))
Source
draw(draw : Draw)
Source
find_element_at(mx : Int32, my : Int32) : Element | Nil
Source
focused_element
Source
focused_element=(element : Element | Nil)
Source
global_position

The Root is the end of the line, it returns its own x,y (0,0)

Source
handle_event(event : GSDL::Event) : Bool
Source
on_mouse_down(event : GSDL::Event) : Bool
Source
on_mouse_move(event : GSDL::Event) : Bool
Source
on_mouse_up(event : GSDL::Event) : Bool
Source
on_mouse_wheel(event : GSDL::Event) : Bool
Source
overlays
Source
push_overlay(element : Element)
Source
remove_overlay(element : Element)
Source
resize(width : Int32, height : Int32)

Critical: Update this when the user resizes the window

Source
update(dt : Float32)
Source