SfmlBook::Chapter6::GUI::Button
Inherits SfmlBook::Chapter6::GUI::Component < SF::NonCopyable < SF::Drawable < SF::Transformable < Reference < Object
Constructors
new(fonts : FontHolder, textures : TextureHolder)
SourceInstance methods
activate
Sourcecallback=(callback : Proc(Nil) | Nil)
Sourcecallback?
Sourcedeactivate
Sourcedeselect
SourceDraw 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
select
Sourceselectable?
Sourcetext=(text : String)
Sourcetoggle=(toggle : Bool)
Sourcetoggle?
Source