abstract class SfmlBook::Chapter6::GUI::Component
- SfmlBook::Chapter6::GUI::Component
- SF::Transformable
- Reference
- Object
Included Modules
- SF::Drawable
- SF::NonCopyable
Direct Known Subclasses
Defined in:
chapter6/gui/component.crInstance Method Summary
- #activate
- #active? : Bool
- #deactivate
- #deselect
-
#draw(target : SF::RenderTarget, states : SF::RenderStates)
Draw the object to a render target.
- #handle_event(event : SF::Event)
- #select
- #selectable?
- #selected? : Bool
Instance Method Detail
abstract
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