abstract class SfmlBook::Chapter6::GUI::Component

Included Modules

Direct Known Subclasses

Defined in:

chapter6/gui/component.cr

Instance Method Summary

Instance Method Detail

def activate #

[View source]
def active? : Bool #

[View source]
def deactivate #

[View source]
def deselect #

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

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

[View source]
def select #

[View source]
abstract def selectable? #

[View source]
def selected? : Bool #

[View source]