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 
74 };
75 
76 
77 static inline bool
78 UIisExclusiveEvent(UI_EventType e)
79 {
80  switch(e)
81  {
82  case UI_EVENT_BUTTON:
83  case UI_EVENT_KEY_PRESS:
85  case UI_EVENT_KEYBOARD:
86  case UI_EVENT_KEYUPDOWN:
88  case UI_EVENT_ARROW_KEY:
89  case UI_EVENT_MOTION:
90  case UI_EVENT_QUIT:
91  case UI_EVENT_KEYOTHER:
93  case UI_EVENT_DBLCLK:
94  case UI_EVENT_MENU:
95  return true;
96  default:
97  return false;
98  }
99 }
100 
101 static inline bool
102 UIisRedrawFenceEvent(UI_EventType e)
103 {
104  switch(e)
105  {
106  case UI_EVENT_BUTTON:
107  case UI_EVENT_KEY_PRESS:
109  case UI_EVENT_KEYBOARD:
110  case UI_EVENT_KEYUPDOWN:
112  case UI_EVENT_ARROW_KEY:
113  case UI_EVENT_MOTION:
114  case UI_EVENT_RESIZE:
115  case UI_EVENT_KEYOTHER:
116  case UI_EVENT_MOUSEWHEEL:
117  case UI_EVENT_DBLCLK:
118  case UI_EVENT_REFRESH:
119  case UI_EVENT_MENU:
122  return true;
123  default:
124  return false;
125  }
126 }
127 
128 #endif
UI_EventType
Definition: UI_EventType.h:20