diff options
Diffstat (limited to 'intern/ghost/intern/GHOST_EventManager.h')
-rw-r--r-- | intern/ghost/intern/GHOST_EventManager.h | 35 |
1 files changed, 13 insertions, 22 deletions
diff --git a/intern/ghost/intern/GHOST_EventManager.h b/intern/ghost/intern/GHOST_EventManager.h index 5071adb1bd4..c73abed2f7e 100644 --- a/intern/ghost/intern/GHOST_EventManager.h +++ b/intern/ghost/intern/GHOST_EventManager.h @@ -53,32 +53,32 @@ public: /** * Constructor. */ - GHOST_EventManager(); + GHOST_EventManager() {}; /** * Destructor. */ - virtual ~GHOST_EventManager(); + ~GHOST_EventManager(); /** * Returns the number of events currently on the stack. * @return The number of events on the stack. */ - virtual GHOST_TUns32 getNumEvents(); + GHOST_TUns32 getNumEvents(); /** * Returns the number of events of a certain type currently on the stack. * @param type The type of events to be counted. * @return The number of events on the stack of this type. */ - virtual GHOST_TUns32 getNumEvents(GHOST_TEventType type); + GHOST_TUns32 getNumEvents(GHOST_TEventType type); /** * Return the event at the top of the stack without removal. * Do not delete the event! * @return The event at the top of the stack. */ - virtual GHOST_IEvent* peekEvent(); + GHOST_IEvent* peekEvent(); /** * Pushes an event on the stack. @@ -86,27 +86,27 @@ public: * Do not delete the event! * @param event The event to push on the stack. */ - virtual GHOST_TSuccess pushEvent(GHOST_IEvent* event); + GHOST_TSuccess pushEvent(GHOST_IEvent* event); /** * Dispatches the given event directly, bypassing the event stack. * @return Indication as to whether any of the consumers handled the event. */ - virtual bool dispatchEvent(GHOST_IEvent* event); + bool dispatchEvent(GHOST_IEvent* event); /** * Dispatches the event at the back of the stack. * The event will be removed from the stack. * @return Indication as to whether any of the consumers handled the event. */ - virtual bool dispatchEvent(); + bool dispatchEvent(); /** * Dispatches all the events on the stack. * The event stack will be empty afterwards. * @return Indication as to whether any of the consumers handled the events. */ - virtual bool dispatchEvents(); + bool dispatchEvents(); /** * Dispatches most events on the stack, consolidating cursor moves into a single move. @@ -115,29 +115,25 @@ public: */ bool dispatchEvents_lo_fi(); - /** * Adds a consumer to the list of event consumers. * @param consumer The consumer added to the list. * @return Indication as to whether addition has succeeded. */ - virtual GHOST_TSuccess addConsumer(GHOST_IEventConsumer* consumer); + GHOST_TSuccess addConsumer(GHOST_IEventConsumer* consumer); /** * Removes a consumer from the list of event consumers. * @param consumer The consumer removed from the list. * @return Indication as to whether removal has succeeded. */ - virtual GHOST_TSuccess removeConsumer(GHOST_IEventConsumer* consumer); + GHOST_TSuccess removeConsumer(GHOST_IEventConsumer* consumer); /** * Removes all events for a window from the stack. * @param window The window to remove events for. */ - virtual void - removeWindowEvents( - GHOST_IWindow* window - ); + void removeWindowEvents(GHOST_IWindow* window); /** * Removes all events of a certain type from the stack. @@ -146,11 +142,7 @@ public: * @param type The type of events to be removed. * @param window The window to remove the events for. */ - virtual void - removeTypeEvents( - GHOST_TEventType type, - GHOST_IWindow* window = 0 - ); + void removeTypeEvents(GHOST_TEventType type, GHOST_IWindow* window = 0); protected: /** @@ -179,4 +171,3 @@ protected: }; #endif // _GHOST_EVENT_MANAGER_H_ - |