|
FifeGUI 0.2.0
A C++ GUI library designed for games.
|
#include <containerevent.hpp>
Public Member Functions | |
| ContainerEvent (Widget *source, Container *container) | |
| Container * | getContainer () const |
| Public Member Functions inherited from fcn::Event | |
| Event (Widget *source) | |
| Widget * | getSource () const |
Protected Attributes | |
| Container * | mContainer |
| Protected Attributes inherited from fcn::Event | |
| Widget * | mSource {nullptr} |
Represents changes within a container (e.g., widget added/removed).
A container event is an event that can be fired by a container when a widget is added or removed.
Any object can listen for actions from a container by implementing the ContainerListener interface.
Definition at line 30 of file containerevent.hpp.
Constructor.
| source | The source widget of the event. |
| container | The container the event concerns. |
Definition at line 11 of file containerevent.cpp.
References fcn::Event::Event(), and mContainer.
| Container * fcn::ContainerEvent::getContainer | ( | ) | const |
Gets the container the event concerns.
Definition at line 13 of file containerevent.cpp.
References mContainer.
|
protected |
Holds the container the event concerns.
Definition at line 52 of file containerevent.hpp.
Referenced by ContainerEvent(), and getContainer().