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

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.
 
void addWidget (std::unique_ptr< Widget >)
 Immediately adds a Widget to the container.
 
template<class T , class... Args>
void 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.
 

Detailed Description

Helper class to handle multiple instances of Widget.

Definition at line 16 of file Container.hpp.


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