Class for getting window events. More...
#include <Luminous/WindowEventHook.hpp>
Public Types | |
| enum | MouseButtonMask { NoButton = 0, LeftButton = 1, RightButton = 2, MiddleButton = 4, WheelForward = 8, WheelBackward = 16 } |
| Different mouse buttons. | |
Public Member Functions | |
| virtual void | handleDropEvent (const Radiant::DropEvent &event)=0 |
| Callback to handle drop events. | |
| virtual void | handleKeyboardEvent (const Radiant::KeyEvent &event)=0 |
| Callback to handle keyboard events. | |
| virtual void | handleMouseEvent (const Radiant::MouseEvent &event)=0 |
| Callback to handle mouse events. | |
| virtual void | handleTabletEvent (const Radiant::TabletEvent &event)=0 |
| Used to handle tablet events. | |
| virtual void | handleTouchEvent (const Radiant::TouchEvent &event)=0 |
| Used to handle touch events. | |
| virtual void | handleWindowCloseEvent ()=0 |
| Handle the case where a window is closed. More... | |
| virtual void | handleWindowIconifyEvent ()=0 |
| Handle the event where a window is iconified. | |
| virtual void | handleWindowMove (int x, int y, int width, int height)=0 |
| Handle resize events. | |
| virtual void | handleWindowRestoreEvent ()=0 |
| Handle the case where a window is de-iconified. | |
| virtual double | lastActivity () const =0 |
| Time since last keyboard or mouse activity. | |
Class for getting window events.
|
pure virtual |
Handle the case where a window is closed.
This is typically triggered when the user clicks on the window-close icon.