class

SfmlBook::Chapter6::GUI::Label

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

Constructors

new(text : String, fonts : FontHolder)
Source

Instance methods

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
selectable?
Source
text=(text : String)
Source