class

SfmlBook::Chapter6::GUI::Container

Inherits SfmlBook::Chapter6::GUI::Component < SF::NonCopyable < SF::Drawable < SF::Transformable < Reference < Object

Constructors

Instance methods

destroy
Source
draw(target : SF::RenderTarget, states : SF::RenderStates)

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
Source
handle_event(event : SF::Event)
Source
handle_event_key_released(event : SF::Event::KeyReleased)
Source
pack(ptr : Component)
Source
select(index)
Source
select_next
Source
select_previous
Source
selectable?
Source
selection_exists?
Source