|
Mana
|
A window container. More...
#include <windowcontainer.h>
Public Member Functions | |
| void | logic () override |
| Do GUI logic. | |
| void | draw (gcn::Graphics *graphics) override |
| Adds debug drawing. | |
| void | scheduleDelete (gcn::Widget *widget) |
| Schedule a widget for deletion. | |
| void | adjustAfterResize (int oldScreenWidth, int oldScreenHeight) |
| Ensures that all visible windows are on the screen after the screen has been resized. | |
Public Member Functions inherited from Container | |
| Container () | |
| ~Container () override | |
| void | drawFrame (gcn::Graphics *graphics) override |
Private Member Functions | |
| void | debugDraw (gcn::Graphics *graphics) |
| Draws the outlines of the container and all its children. | |
| bool | widgetIsVisible (gcn::Widget *widget) |
| Returns whether the widget is visible and part of the hierarchy. | |
Private Attributes | |
| std::set< gcn::Widget * > | mScheduledDeletions |
| Set of widgets that are scheduled to be deleted. | |
Additional Inherited Members | |
Protected Member Functions inherited from Container | |
| 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. | |
A window container.
This container adds functionality for more convenient widget (windows in particular) destruction.
Definition at line 34 of file windowcontainer.h.
| void WindowContainer::adjustAfterResize | ( | int | oldScreenWidth, |
| int | oldScreenHeight | ||
| ) |
Ensures that all visible windows are on the screen after the screen has been resized.
Definition at line 53 of file windowcontainer.cpp.
|
private |
Draws the outlines of the container and all its children.
Definition at line 61 of file windowcontainer.cpp.
|
override |
Adds debug drawing.
Definition at line 40 of file windowcontainer.cpp.
|
override |
Do GUI logic.
This functions adds automatic deletion of objects that volunteered to be deleted.
Definition at line 31 of file windowcontainer.cpp.
| void WindowContainer::scheduleDelete | ( | gcn::Widget * | widget | ) |
Schedule a widget for deletion.
It will be deleted at the start of the next logic update.
Definition at line 48 of file windowcontainer.cpp.
|
private |
Returns whether the widget is visible and part of the hierarchy.
Definition at line 111 of file windowcontainer.cpp.
|
private |
Set of widgets that are scheduled to be deleted.
Definition at line 71 of file windowcontainer.h.