class SfmlBook::Chapter6::GUI::Container

Defined in:

chapter6/gui/container.cr

Constructors

Instance Method Summary

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

def self.new #

[View source]

Instance Method Detail

def destroy #

[View source]
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

[View source]
def handle_event(event : SF::Event) #

[View source]
def handle_event_key_released(event : SF::Event::KeyReleased) #

[View source]
def pack(ptr : Component) #

[View source]
def select(index) #

[View source]
def select_next #

[View source]
def select_previous #

[View source]
def selectable? #

[View source]
def selection_exists? #

[View source]