JNGL
|
Helper class to handle multiple instances of Widget. More...
#include <jngl/Container.hpp>
Public Member Functions | |
void | step () |
Calls Widget::step of every widget and removes the once which request it. | |
void | draw () const |
Calls Widget::draw of every widget. | |
Widget * | addWidget (std::unique_ptr< Widget >) |
Immediately adds a Widget to the container. | |
template<class T , class... Args> | |
T * | addWidget (Args &&... args) |
The same as addWidget(std::unique_ptr<Widget>) but creates the Widget for you. | |
void | removeWidget (Widget *) |
Marks a Widget to be removed by Container::step. | |
Helper class to handle multiple instances of Widget.
Definition at line 16 of file Container.hpp.