28 template <
class T,
class... Args> T*
addWidget(Args&&... args) {
39 uint8_t iterating = 0;
Helper class to handle multiple instances of Widget.
Widget * addWidget(std::unique_ptr< Widget >)
Adds a Widget to the container (safe to call during Container::step)
void draw() const
Calls Widget::draw of every widget.
void removeWidget(Widget *)
Removes a Widget from the Container (safe to call during Container::step)
void step()
Calls Widget::step of every widget and removes the once which request it.
T * addWidget(Args &&... args)
The same as addWidget(std::unique_ptr<Widget>) but creates the Widget for you.