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  // The event generator queues UI_EVENT_KEY_PRESS and UI_EVENT_KEY_RELEASE
34  // events.
35  //
36  // The legacy UI_EVENT_KEYBOARD, UI_EVENT_KEYUPDOWN, UI_EVENT_FUNCTION_KEY,
37  // UI_EVENT_ARROW_KEY, UI_EVENT_KEYOTHER events are synthesized from these
38  // for feel handlers and are generally not queued.
39  //
40  // The legacy hit events are determined by id, and how to interpret data
41  // depends on the hit event type.
44 
45  // data = UI_Keyboard key
72 };
73 
74 
75 static inline bool
76 UIisExclusiveEvent(UI_EventType e)
77 {
78  switch(e)
79  {
80  case UI_EVENT_BUTTON:
81  case UI_EVENT_KEY_PRESS:
83  case UI_EVENT_KEYBOARD:
84  case UI_EVENT_KEYUPDOWN:
86  case UI_EVENT_ARROW_KEY:
87  case UI_EVENT_MOTION:
88  case UI_EVENT_QUIT:
89  case UI_EVENT_KEYOTHER:
91  case UI_EVENT_DBLCLK:
92  case UI_EVENT_MENU:
93  return true;
94  default:
95  return false;
96  }
97 }
98 
99 static inline bool
100 UIisRedrawFenceEvent(UI_EventType e)
101 {
102  switch(e)
103  {
104  case UI_EVENT_BUTTON:
105  case UI_EVENT_KEY_PRESS:
107  case UI_EVENT_KEYBOARD:
108  case UI_EVENT_KEYUPDOWN:
110  case UI_EVENT_ARROW_KEY:
111  case UI_EVENT_MOTION:
112  case UI_EVENT_RESIZE:
113  case UI_EVENT_KEYOTHER:
114  case UI_EVENT_MOUSEWHEEL:
115  case UI_EVENT_DBLCLK:
116  case UI_EVENT_REFRESH:
117  case UI_EVENT_MENU:
120  return true;
121  default:
122  return false;
123  }
124 }
125 
126 #endif
UI_EventType
Definition: UI_EventType.h:20