Mana
|
A widget container. More...
#include <container.h>
Public Member Functions | |
Container () | |
~Container () override | |
void | drawFrame (gcn::Graphics *graphics) override |
Protected Member Functions | |
Layout & | getLayout () |
Gets the layout handler for this container. | |
LayoutCell & | place (int x, int y, gcn::Widget *wg, int w=1, int h=1) |
Adds a widget to the container and sets it at given cell. | |
ContainerPlacer | getPlacer (int x, int y) |
Returns a proxy for adding widgets in an inner table of the layout. | |
Private Attributes | |
LayoutHelper * | mLayoutHelper = nullptr |
A widget container.
The main difference between the standard Guichan container and this one is that children added to this container are automatically deleted when the container is deleted.
This container is also non-opaque by default.
Definition at line 40 of file container.h.
Container::Container | ( | ) |
Definition at line 26 of file container.cpp.
|
override |
Definition at line 31 of file container.cpp.
|
inlineoverride |
Definition at line 47 of file container.h.
|
protected |
Gets the layout handler for this container.
Definition at line 39 of file container.cpp.
|
protected |
Returns a proxy for adding widgets in an inner table of the layout.
Definition at line 52 of file container.cpp.
|
protected |
Adds a widget to the container and sets it at given cell.
Definition at line 46 of file container.cpp.
|
private |
Definition at line 66 of file container.h.