class

GSDL::UI::Element

Inherits Reference < Object

Instance methods

anchor

Layout Logic (For things like Bottom Bar alignment)

Source
anchor=(anchor : Anchor)
Source
apply_anchor!(pw : Int32, ph : Int32)
Source
background_color
Source
background_color=(background_color : Color | Nil)
Source
background_skin

Aesthetics

Source
background_skin=(background_skin : GSDL::NinePatch | Nil)

Aesthetics

Source
calculate_global_position
Source
collect_focusable_elements(elements : Array(Element))
Source
contains_point?(mx : Int32, my : Int32) : Bool
Source
content_height
Source
content_width
Source
content_x
Source
content_y
Source
draw(draw : Draw)
Source
draw_background(draw : Draw)
Source
effective_z_index
Source
find_element_at(mx : Int32, my : Int32) : Element | Nil
Source
find_highest_container
Source
find_highest_non_flow_container
Source
find_root_canvas
Source
flex

The "Shares" this element takes in a BoxLayout 0 = Fixed/Fit, 1+ = Flex Fill

Source
flex=(flex : UInt8)
Source
focusable=(focusable : Bool)
Source
focusable?
Source
focused?
Source
footprint_height

The total horizontal space taken up in the parent

Source
footprint_width

The total horizontal space taken up in the parent

Source
footprint_x
Source
footprint_y
Source
foreground_color
Source
foreground_color=(foreground_color : Color)
Source
global_position

Public coordinate API (automatically virtualized when inside a Viewport)

Source
global_x
Source
global_y
Source
height
Source
height=(height : Int32)
Source
height_fixed?
Source
hover_cursor

Hover State & Callbacks

Source
hover_cursor=(hover_cursor : GSDL::SystemCursor | Nil)

Hover State & Callbacks

Source
hovered=(value : Bool)
Source
hovered?
Source
inner_height
Source
inner_position
Source
inner_width
Source
inner_x
Source
inner_y
Source
is_descendant_of?(other : Element) : Bool
Source
is_descendant_of_overlay?
Source
layout!
Source
margin

The Box Model

Source
margin=(value : SpacingInput)
Source
on_focus
Source
on_hover_enter
Source
on_hover_enter=(on_hover_enter : Proc(Element, Nil) | Nil)
Source
on_hover_leave
Source
on_hover_leave=(on_hover_leave : Proc(Element, Nil) | Nil)
Source
on_key_down(event : GSDL::Event) : Bool
Source
on_key_up(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
on_text_input(event : GSDL::Event) : Bool
Source
on_unfocus
Source
padding
Source
padding=(value : SpacingInput)
Source
parent
Source
parent=(parent : Element | Nil)
Source
release_focus
Source
request_focus
Source
reset_layout!
Source
set_layout_height(height : Int32)
Source
set_layout_width(width : Int32)
Source
style_height
Source
style_width
Source
style_x
Source
style_y
Source
swallows_events=(swallows_events : Bool)
Source
swallows_events?
Source
update(dt : Float32)
Source
visible=(visible : Bool)

Tree Structure

Source
visible?

Tree Structure

Source
width
Source
width=(width : Int32)
Source
width_fixed?
Source
x

Basic Transform

Source
x=(x : Int32)
Source
y=(y : Int32)
Source
z_index
Source
z_index=(z_index : Int32)
Source