HDK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
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].
20
enum
UI_EventType
21
{
22
UI_EVENT_NO_EVENT
= 0,
23
24
// data = New window, context = old window
25
UI_EVENT_FOCUS_OFF
= 1,
26
27
// data = Old window, context = New window
28
UI_EVENT_FOCUS_ON
= 2,
29
30
// values[W] = buttons, values[TUVZ] = tablet data
31
UI_EVENT_BUTTON
= 3,
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.
42
UI_EVENT_KEY_PRESS
= 4,
43
UI_EVENT_KEY_RELEASE
= 5,
44
45
// data = UI_Keyboard key
46
UI_EVENT_KEYBOARD
= 6,
47
UI_EVENT_KEYUPDOWN
= 7,
48
UI_EVENT_FUNCTION_KEY
= 8,
49
UI_EVENT_ARROW_KEY
= 9,
50
UI_EVENT_MOTION
= 10,
51
UI_EVENT_REDRAW
= 11,
52
UI_EVENT_MINIMIZE_RESTORE
= 12,
53
UI_EVENT_OPEN
= 13,
54
UI_EVENT_CLOSE
= 14,
55
UI_EVENT_DELETE
= 15,
56
UI_EVENT_QUIT
= 16,
57
UI_EVENT_VALUE_CHANGE
= 17,
58
UI_EVENT_TIMER
= 18,
59
UI_EVENT_PAUSE
= 19,
60
UI_EVENT_ENABLE
= 20,
61
UI_EVENT_APP_SPECIFIC
= 21,
62
UI_EVENT_RESIZE
= 22,
63
UI_EVENT_KEYOTHER
= 23,
64
UI_EVENT_OVERRIDE
= 24,
65
UI_EVENT_MOUSEWHEEL
= 25,
66
UI_EVENT_DBLCLK
= 26,
67
UI_EVENT_REFRESH
= 27,
68
UI_EVENT_MENU
= 28,
69
UI_EVENT_OVERLAY_REDRAW
= 29,
70
UI_EVENT_OVERLAY_CLEAR
= 30,
71
UI_EVENT_VISIBLE
= 31
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
:
82
case
UI_EVENT_KEY_RELEASE
:
83
case
UI_EVENT_KEYBOARD
:
84
case
UI_EVENT_KEYUPDOWN
:
85
case
UI_EVENT_FUNCTION_KEY
:
86
case
UI_EVENT_ARROW_KEY
:
87
case
UI_EVENT_MOTION
:
88
case
UI_EVENT_QUIT
:
89
case
UI_EVENT_KEYOTHER
:
90
case
UI_EVENT_MOUSEWHEEL
:
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
:
106
case
UI_EVENT_KEY_RELEASE
:
107
case
UI_EVENT_KEYBOARD
:
108
case
UI_EVENT_KEYUPDOWN
:
109
case
UI_EVENT_FUNCTION_KEY
:
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
:
118
case
UI_EVENT_OVERLAY_REDRAW
:
119
case
UI_EVENT_OVERLAY_CLEAR
:
120
return
true
;
121
default
:
122
return
false
;
123
}
124
}
125
126
#endif
UI_EVENT_OVERRIDE
Definition:
UI_EventType.h:64
UI_EVENT_MINIMIZE_RESTORE
Definition:
UI_EventType.h:52
UI_EVENT_REFRESH
Definition:
UI_EventType.h:67
UI_EVENT_KEYBOARD
Definition:
UI_EventType.h:46
UI_EVENT_NO_EVENT
Definition:
UI_EventType.h:22
UI_EVENT_DELETE
Definition:
UI_EventType.h:55
UI_EVENT_RESIZE
Definition:
UI_EventType.h:62
UI_EVENT_OVERLAY_CLEAR
Definition:
UI_EventType.h:70
UI_EVENT_OPEN
Definition:
UI_EventType.h:53
UI_EVENT_VALUE_CHANGE
Definition:
UI_EventType.h:57
UI_EVENT_PAUSE
Definition:
UI_EventType.h:59
UI_EVENT_KEYOTHER
Definition:
UI_EventType.h:63
UI_EVENT_BUTTON
Definition:
UI_EventType.h:31
UI_EVENT_QUIT
Definition:
UI_EventType.h:56
UI_EVENT_FOCUS_OFF
Definition:
UI_EventType.h:25
UI_EVENT_MOUSEWHEEL
Definition:
UI_EventType.h:65
UI_EVENT_FUNCTION_KEY
Definition:
UI_EventType.h:48
UI_EVENT_MOTION
Definition:
UI_EventType.h:50
UI_EVENT_KEY_RELEASE
Definition:
UI_EventType.h:43
UI_EVENT_OVERLAY_REDRAW
Definition:
UI_EventType.h:69
UI_EventType
UI_EventType
Definition:
UI_EventType.h:20
UI_EVENT_MENU
Definition:
UI_EventType.h:68
UI_EVENT_REDRAW
Definition:
UI_EventType.h:51
UI_EVENT_ARROW_KEY
Definition:
UI_EventType.h:49
UI_EVENT_KEY_PRESS
Definition:
UI_EventType.h:42
UI_EVENT_DBLCLK
Definition:
UI_EventType.h:66
UI_EVENT_APP_SPECIFIC
Definition:
UI_EventType.h:61
UI_EVENT_KEYUPDOWN
Definition:
UI_EventType.h:47
UI_EVENT_FOCUS_ON
Definition:
UI_EventType.h:28
UI_EVENT_TIMER
Definition:
UI_EventType.h:58
UI_EVENT_CLOSE
Definition:
UI_EventType.h:54
UI_EVENT_VISIBLE
Definition:
UI_EventType.h:71
UI_EVENT_ENABLE
Definition:
UI_EventType.h:60
UI
UI_EventType.h
Generated on Tue Sep 10 2024 02:47:28 for HDK by
1.8.6