#include <DM_MouseHook.h>
A DM_MouseHook creates new DM_MouseEventHook objects when new viewports are created.
- Examples:
- DM/DM_GreedyMouseHook.C.
Definition at line 91 of file DM_MouseHook.h.
DM_MouseHook::DM_MouseHook |
( |
const char * |
hook_name, |
|
|
int |
priority |
|
) |
| |
Create a mouse hook which creates mouse event hook instances for specific viewports. Only one mouse hook is ever created, and it is responsible for managing the mouse event hooks for viewports. Each hook requires a name (for error reporting) and a priority level to resolve multiple mouse hook conflicts.
virtual DM_MouseHook::~DM_MouseHook |
( |
| ) |
|
|
virtual |
const char* DM_MouseHook::getName |
( |
| ) |
const |
|
inline |
int DM_MouseHook::getPriority |
( |
| ) |
const |
|
inline |
Called when a viewport needs to create a new hook.
Each viewport has its own event hook.
Called when a viewport no longer requires the hook.
When a viewport is destroyed, it retires all its hooks. Because a hook could be shared between all viewports, this method gives the mouse hook the opportunity to delete it, dereference it, etc. The viewport doing the retiring is passed in along with the hook it is retiring.
The documentation for this class was generated from the following file: