class SfmlBook::Chapter6::GUI::Container
- SfmlBook::Chapter6::GUI::Container
- SfmlBook::Chapter6::GUI::Component
- SF::Transformable
- Reference
- Object
Defined in:
chapter6/gui/container.crConstructors
Instance Method Summary
- #destroy
-
#draw(target : SF::RenderTarget, states : SF::RenderStates)
Draw the object to a render target.
- #handle_event(event : SF::Event)
- #handle_event_key_released(event : SF::Event::KeyReleased)
- #pack(ptr : Component)
- #select(index)
- #select_next
- #select_previous
- #selectable?
- #selection_exists?
Instance methods inherited from class SfmlBook::Chapter6::GUI::Component
activate
activate,
active? : Bool
active?,
deactivate
deactivate,
deselect
deselect,
draw(target : SF::RenderTarget, states : SF::RenderStates)
draw,
handle_event(event : SF::Event)
handle_event,
select
select,
selectable?
selectable?,
selected? : Bool
selected?
Constructor Detail
Instance Method Detail
def draw(target : SF::RenderTarget, states : SF::RenderStates)
#
Description copied from module SF::Drawable
Draw the object to a render target.
This is an abstract method that has to be implemented by the including class to define how the drawable should be drawn.
- target - Render target to draw to
- states - Current render states