class SfmlBook::Chapter6::GUI::Label
- SfmlBook::Chapter6::GUI::Label
- SfmlBook::Chapter6::GUI::Component
- SF::Transformable
- Reference
- Object
Defined in:
chapter6/gui/label.crConstructors
Instance Method Summary
-
#draw(target : SF::RenderTarget, states : SF::RenderStates)
Draw the object to a render target.
- #handle_event(event : SF::Event)
- #selectable?
- #text=(text : String)
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