GUI::Drawer
Inherits GUI::Component < GUI::Eventable < Reference < Object
This is a sample composed component
Instance methods
build(display : Component)
Override this to compose complex components.
You'll have access to the root display Component so that
you can use the display dimensions in constraints if needed.
When composing your custom component you must add the sub-components to
@children otherwise they won't be picked up by the constraint solver.
Example
def build(display : Component)
child = MySubComponent.new
# set some constraints...
@children << child
end