ManaPlus
|
#include <inputguievent.h>
Public Member Functions | |
InputGuiEvent (Widget *const source) | |
void | consume () |
bool | isConsumed () const |
Public Member Functions inherited from Event | |
Event (Widget *const source) | |
virtual | ~Event () |
Widget * | getSource () const |
Protected Attributes | |
bool | mIsConsumed |
Protected Attributes inherited from Event | |
Widget * | mSource |
Base class for all events concerning input.
Definition at line 75 of file inputguievent.h.
|
inlineexplicit |
Constructor.
source | The source widget of the event. |
Definition at line 83 of file inputguievent.h.
|
inline |
Marks the event as consumed. Input event listeners may discard consumed input or act on consumed input. An example of a widget that discards consumed input is the ScrollArea widget that discards consumed mouse wheel events so the ScrollArea will not scroll if for instance a Slider's value inside the ScrollArea was changed with the mouse wheel.
Definition at line 100 of file inputguievent.h.
References mIsConsumed.
|
inline |
Checks if the input event is consumed.
Definition at line 110 of file inputguievent.h.
References mIsConsumed.
Referenced by Gui::distributeKeyEventToGlobalKeyListeners(), Gui::distributeMouseEvent(), Gui::handleKeyInput(), DropDown::keyPressed(), TabbedArea::keyPressed(), EditServerDialog::keyPressed(), LoginDialog::keyPressed(), RegisterDialog::keyPressed(), ServerDialog::keyPressed(), Window::mouseDragged(), ChatWindow::mouseDragged(), ShortcutWindow::mouseDragged(), Viewport::mouseDragged(), Window::mouseMoved(), ScrollArea::mousePressed(), TabbedArea::mousePressed(), Window::mousePressed(), ChatWindow::mousePressed(), ShortcutWindow::mousePressed(), Viewport::mousePressed(), ScrollArea::mouseReleased(), Viewport::mouseReleased(), ScrollArea::mouseWheelMovedDown(), and ScrollArea::mouseWheelMovedUp().
|
protected |
True if the input event is consumed, false otherwise.
Definition at line 118 of file inputguievent.h.
Referenced by consume(), and isConsumed().