ManaPlus
|
#include <event.h>
Public Member Functions | |
Event (Widget *const source) | |
virtual | ~Event () |
Widget * | getSource () const |
Protected Attributes | |
Widget * | mSource |
Base class for all events. All events in Guichan should inherit from this class.
|
inlineexplicit |
Constructor.
source | The source widget of the event. |
|
inline |
Gets the source widget of the event. The function is used to tell which widget fired an event.
Definition at line 104 of file event.h.
References mSource.
Referenced by TabbedArea::action(), ChangeDisplay::action(), Setup_Input::action(), TabStrip::action(), SocialWindow::action(), FocusHandler::distributeFocusGainedEvent(), FocusHandler::distributeFocusLostEvent(), MailEditWindow::focusLost(), Window::getResizeHandles(), Window::isResizeAllowed(), MailWindow::mouseClicked(), ServerDialog::mouseClicked(), Window::mouseDragged(), Viewport::mouseDragged(), WindowMenu::mouseMoved(), ItemAmountWindow::mouseMoved(), MiniStatusWindow::mouseMoved(), DropDown::mousePressed(), Window::mousePressed(), NpcDialog::mousePressed(), Viewport::mousePressed(), PopupList::mouseReleased(), Viewport::mouseReleased(), TradeWindow::valueChanged(), and BankWindow::widgetShown().
|
protected |
Holds the source widget of the event.
Definition at line 111 of file event.h.
Referenced by getSource().