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 
62 
63 static inline bool
64 UIisExclusiveEvent(UI_EventType e)
65 {
66  switch(e)
67  {
68  case UI_EVENT_BUTTON:
69  case UI_EVENT_KEYBOARD:
70  case UI_EVENT_KEYUPDOWN:
72  case UI_EVENT_ARROW_KEY:
73  case UI_EVENT_MOTION:
74  case UI_EVENT_QUIT:
75  case UI_EVENT_KEYOTHER:
77  case UI_EVENT_DBLCLK:
78  case UI_EVENT_MENU:
79  return true;
80  default:
81  return false;
82  }
83 }
84 
85 static inline bool
86 UIisRedrawFenceEvent(UI_EventType e)
87 {
88  switch(e)
89  {
90  case UI_EVENT_BUTTON:
91  case UI_EVENT_KEYBOARD:
92  case UI_EVENT_KEYUPDOWN:
94  case UI_EVENT_ARROW_KEY:
95  case UI_EVENT_MOTION:
96  case UI_EVENT_RESIZE:
97  case UI_EVENT_KEYOTHER:
99  case UI_EVENT_DBLCLK:
100  case UI_EVENT_REFRESH:
101  case UI_EVENT_MENU:
104  return true;
105  default:
106  return false;
107  }
108 }
109 
110 #endif
UI_EventType
Definition: UI_EventType.h:20