|
enum class | Action { NONE
, REMOVE
, REQUEST_FOCUS
} |
|
|
| 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.
|
|
virtual void | drawSelf () const =0 |
| Override this function to draw the widget. More...
|
|
void | addEffect (std::unique_ptr< Effect >) |
|
template<class T , class... Args> |
void | addEffect (Args &&... args) |
|
void | removeEffect (Effect *) |
|
virtual void | removeEffects () |
| Removes all effects.
|
|
jngl::Vec2 | getPosition () const |
| Returns the center.
|
|
Definition at line 17 of file Widget.hpp.
◆ Action
◆ step()
Steps all Effects.
When Action::REMOVE is returned, the Widget wants to be removed from its container.
◆ drawSelf()
virtual void drawSelf |
( |
| ) |
const |
|
pure virtual |
Override this function to draw the widget.
Implemented in Label.
◆ addEffect()
void addEffect |
( |
Args &&... |
args | ) |
|
|
inline |
◆ position
The documentation for this class was generated from the following file: