HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UI_EventType.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: UI_EventType.h
7  *
8  * COMMENTS:
9  *
10  * The various event types generated by objects and event generators.
11  *
12  */
13 #ifndef __UI_EventType__
14 #define __UI_EventType__
15 
16 #define UI_REDRAW_FENCE_EVENT 0
17 
18 // All events, except specifically noted, have keyboard modifier and cursor
19 // position -- relative to window -- in altFlags, and values[X/Y].
21 {
23 
24  // data = New window, context = old window
26 
27  // data = Old window, context = New window
29 
30  // values[W] = buttons, values[TUVZ] = tablet data
32 
33  // data = UI_Keyboard key
60 
61  // Only fired when drag-n-drop a file from outside Houdini
62  // context = active window, key = file path
64 
65 };
66 
67 
68 static inline bool
69 UIisExclusiveEvent(UI_EventType e)
70 {
71  switch(e)
72  {
73  case UI_EVENT_BUTTON:
74  case UI_EVENT_KEYBOARD:
75  case UI_EVENT_KEYUPDOWN:
77  case UI_EVENT_ARROW_KEY:
78  case UI_EVENT_MOTION:
79  case UI_EVENT_QUIT:
80  case UI_EVENT_KEYOTHER:
82  case UI_EVENT_DBLCLK:
83  case UI_EVENT_MENU:
84  return true;
85  default:
86  return false;
87  }
88 }
89 
90 static inline bool
91 UIisRedrawFenceEvent(UI_EventType e)
92 {
93  switch(e)
94  {
95  case UI_EVENT_BUTTON:
96  case UI_EVENT_KEYBOARD:
97  case UI_EVENT_KEYUPDOWN:
99  case UI_EVENT_ARROW_KEY:
100  case UI_EVENT_MOTION:
101  case UI_EVENT_RESIZE:
102  case UI_EVENT_KEYOTHER:
103  case UI_EVENT_MOUSEWHEEL:
104  case UI_EVENT_DBLCLK:
105  case UI_EVENT_REFRESH:
106  case UI_EVENT_MENU:
109  return true;
110  default:
111  return false;
112  }
113 }
114 
115 #endif
UI_EventType
Definition: UI_EventType.h:20