JNGL
Public Member Functions | List of all members
Label Class Reference

Public Member Functions

 Label (const std::string &str, Font &, Color, Vec2 position)
 
void drawSelf () const override
 Override this function to draw the widget.
 
- Public Member Functions inherited from Widget
 Widget (jngl::Vec2 position)
 Creates a Widget centered at position.
 
virtual Action step ()
 Steps all Effects. More...
 
virtual void draw () const
 Draws the widget with all effects applied.
 
void addEffect (std::unique_ptr< Effect >)
 
template<class T , class... Args>
void addEffect (Args &&... args)
 
void removeEffect (Effect *)
 
virtual void removeEffects ()
 Removes all effects.
 

Additional Inherited Members

- Public Types inherited from Widget
enum class  Action { NONE , REMOVE }
 
- Protected Attributes inherited from Widget
jngl::Vec2 position
 Center.
 

Detailed Description

Definition at line 13 of file Label.hpp.

Inheritance diagram for Label:
[legend]
Collaboration diagram for Label:
[legend]

The documentation for this class was generated from the following file: