HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DM_EventTable.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: DM_EventTable.h ( GR Library, C++)
7  *
8  * COMMENTS:
9  * Table for all viewport UI event hooks.
10  */
11 #ifndef __DM_EventTable_H__
12 #define __DM_EventTable_H__
13 
14 #include "DM_API.h"
15 #include "DM_MouseHook.h"
16 
17 
19 {
20 public:
21  static DM_EventTable *getTable();
22 
23  /// @brief Register a mouse hook.
24  /// Register a mouse hook for creating mouse event hooks.
25  /// Returns true if the hook was successfully registered.
26  bool registerMouseHook(DM_MouseHook *hook);
27 
28 private:
29  DM_EventTable();
30  virtual ~DM_EventTable();
31 
32 
33  static void clearEventHookTable(void *);
34  static void clearMouseEventHooks(void *);
35 
36  friend class DM_Viewport;
37 };
38 
39 extern "C" {
40  /// The plugin entry point for event hook registration
42 };
43 
44 
45 
46 #endif
#define SYS_VISIBILITY_EXPORT
#define DM_API
Definition: DM_API.h:10
SYS_VISIBILITY_EXPORT void DMnewEventHook(DM_EventTable *table)
The plugin entry point for event hook registration.