#include <event.hpp>
Inheritance diagram for gcn::Event:

All events in Guichan should inherit from this class.
Definition at line 60 of file event.hpp.
Public Member Functions | |
| Event (Widget *source) | |
| Constructor. | |
| Widget * | getSource () const |
| Gets the source widget of the event. | |
| virtual | ~Event () |
| Destructor. | |
Protected Attributes | |
| Widget * | mSource |
| Holds the source widget of the event. | |
| gcn::Event::Event | ( | Widget * | source | ) |
| Widget * gcn::Event::getSource | ( | ) | const |
Gets the source widget of the event.
The function is used to tell which widget fired an event.
Definition at line 63 of file event.cpp.
References mSource.
Referenced by gcn::TabbedArea::action(), gcn::DropDown::death(), gcn::FocusHandler::distributeFocusGainedEvent(), gcn::FocusHandler::distributeFocusLostEvent(), gcn::Gui::distributeKeyEvent(), gcn::Window::mouseDragged(), gcn::Window::mousePressed(), gcn::TabbedArea::mousePressed(), gcn::DropDown::mousePressed(), gcn::DropDown::mouseWheelMovedDown(), and gcn::DropDown::mouseWheelMovedUp().
1.5.2