class

GUI::Display

Inherits GUI::Component < GUI::Eventable < Reference < Object

The top-most Component in the component hierarchy. The display manages input events, and solves the layout constraints.

Constructors

Instance methods

add(block : Layout::Block)

Adds a component to the hierarchy

Source
build

Loads all of the constraints from every component in this hierarchy into the solver. This should only be ran once.

Source
height=(size)

Changes the height of the display

Source
on_input(event : InputEvent)

Executed on the "input" event.

Source
solve

Calculates the layout dimensions. This runs each time the screen is rendered

Source
trigger_input(tick : RenderLoop::Tick, input : RenderLoop::Input)
Source
width=(size)

Changes the width of the display

Source

Nested types