API
1.0.0
CPEvent_Constants.j
Go to the documentation of this file.
1
/*
2
* CPEvent_Constants.j
3
* AppKit
4
*
5
* Created by Francisco Tolmasky.
6
* Copyright 2008, 280 North, Inc.
7
*
8
* This library is free software; you can redistribute it and/or
9
* modify it under the terms of the GNU Lesser General Public
10
* License as published by the Free Software Foundation; either
11
* version 2.1 of the License, or (at your option) any later version.
12
*
13
* This library is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16
* Lesser General Public License for more details.
17
*
18
* You should have received a copy of the GNU Lesser General Public
19
* License along with this library; if not, write to the Free Software
20
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21
*/
22
23
CPLeftMouseDown
= 1;
24
CPLeftMouseUp
= 2;
25
CPRightMouseDown
= 3;
26
CPRightMouseUp
= 4;
27
CPMouseMoved
= 5;
28
CPLeftMouseDragged
= 6;
29
CPRightMouseDragged
= 7;
30
CPMouseEntered
= 8;
31
CPMouseExited
= 9;
32
CPKeyDown
= 10;
33
CPKeyUp
= 11;
34
CPFlagsChanged
= 12;
35
CPAppKitDefined
= 13;
36
CPSystemDefined
= 14;
37
CPApplicationDefined
= 15;
38
CPPeriodic
= 16;
39
CPCursorUpdate
= 17;
40
CPScrollWheel
= 22;
41
CPOtherMouseDown
= 25;
42
CPOtherMouseUp
= 26;
43
CPOtherMouseDragged
= 27;
44
45
// iPhone Event Types
46
CPTouchStart
= 28;
47
CPTouchMove
= 29;
48
CPTouchEnd
= 30;
49
CPTouchCancel
= 31;
50
51
CPAlphaShiftKeyMask
= 1 << 16;
52
CPShiftKeyMask
= 1 << 17;
53
CPControlKeyMask
= 1 << 18;
54
CPAlternateKeyMask
= 1 << 19;
55
CPCommandKeyMask
= 1 << 20;
56
CPNumericPadKeyMask
= 1 << 21;
57
CPHelpKeyMask
= 1 << 22;
58
CPFunctionKeyMask
= 1 << 23;
59
CPDeviceIndependentModifierFlagsMask
= 0xffff0000;
60
61
CPLeftMouseDownMask
= 1 <<
CPLeftMouseDown
;
62
CPLeftMouseUpMask
= 1 <<
CPLeftMouseUp
;
63
CPRightMouseDownMask
= 1 <<
CPRightMouseDown
;
64
CPRightMouseUpMask
= 1 <<
CPRightMouseUp
;
65
CPOtherMouseDownMask
= 1 <<
CPOtherMouseDown
;
66
CPOtherMouseUpMask
= 1 <<
CPOtherMouseUp
;
67
CPMouseMovedMask
= 1 <<
CPMouseMoved
;
68
CPLeftMouseDraggedMask
= 1 <<
CPLeftMouseDragged
;
69
CPRightMouseDraggedMask
= 1 <<
CPRightMouseDragged
;
70
CPOtherMouseDragged
= 1 <<
CPOtherMouseDragged
;
71
CPMouseEnteredMask
= 1 <<
CPMouseEntered
;
72
CPMouseExitedMask
= 1 <<
CPMouseExited
;
73
CPCursorUpdateMask
= 1 <<
CPCursorUpdate
;
74
CPKeyDownMask
= 1 <<
CPKeyDown
;
75
CPKeyUpMask
= 1 <<
CPKeyUp
;
76
CPFlagsChangedMask
= 1 <<
CPFlagsChanged
;
77
CPAppKitDefinedMask
= 1 <<
CPAppKitDefined
;
78
CPSystemDefinedMask
= 1 <<
CPSystemDefined
;
79
CPApplicationDefinedMask
= 1 <<
CPApplicationDefined
;
80
CPPeriodicMask
= 1 <<
CPPeriodic
;
81
CPScrollWheelMask
= 1 <<
CPScrollWheel
;
82
CPAnyEventMask
= 0xffffffff;
83
84
CPUpArrowFunctionKey
=
"\uF700"
;
85
CPDownArrowFunctionKey
=
"\uF701"
;
86
CPLeftArrowFunctionKey
=
"\uF702"
;
87
CPRightArrowFunctionKey
=
"\uF703"
;
88
CPF1FunctionKey
=
"\uF704"
;
89
CPF2FunctionKey
=
"\uF705"
;
90
CPF3FunctionKey
=
"\uF706"
;
91
CPF4FunctionKey
=
"\uF707"
;
92
CPF5FunctionKey
=
"\uF708"
;
93
CPF6FunctionKey
=
"\uF709"
;
94
CPF7FunctionKey
=
"\uF70A"
;
95
CPF8FunctionKey
=
"\uF70B"
;
96
CPF9FunctionKey
=
"\uF70C"
;
97
CPF10FunctionKey
=
"\uF70D"
;
98
CPF11FunctionKey
=
"\uF70E"
;
99
CPF12FunctionKey
=
"\uF70F"
;
100
CPF13FunctionKey
=
"\uF710"
;
101
CPF14FunctionKey
=
"\uF711"
;
102
CPF15FunctionKey
=
"\uF712"
;
103
CPF16FunctionKey
=
"\uF713"
;
104
CPF17FunctionKey
=
"\uF714"
;
105
CPF18FunctionKey
=
"\uF715"
;
106
CPF19FunctionKey
=
"\uF716"
;
107
CPF20FunctionKey
=
"\uF717"
;
108
CPF21FunctionKey
=
"\uF718"
;
109
CPF22FunctionKey
=
"\uF719"
;
110
CPF23FunctionKey
=
"\uF71A"
;
111
CPF24FunctionKey
=
"\uF71B"
;
112
CPF25FunctionKey
=
"\uF71C"
;
113
CPF26FunctionKey
=
"\uF71D"
;
114
CPF27FunctionKey
=
"\uF71E"
;
115
CPF28FunctionKey
=
"\uF71F"
;
116
CPF29FunctionKey
=
"\uF720"
;
117
CPF30FunctionKey
=
"\uF721"
;
118
CPF31FunctionKey
=
"\uF722"
;
119
CPF32FunctionKey
=
"\uF723"
;
120
CPF33FunctionKey
=
"\uF724"
;
121
CPF34FunctionKey
=
"\uF725"
;
122
CPF35FunctionKey
=
"\uF726"
;
123
CPInsertFunctionKey
=
"\uF727"
;
124
CPDeleteFunctionKey
=
"\uF728"
;
125
CPHomeFunctionKey
=
"\uF729"
;
126
CPBeginFunctionKey
=
"\uF72A"
;
127
CPEndFunctionKey
=
"\uF72B"
;
128
CPPageUpFunctionKey
=
"\uF72C"
;
129
CPPageDownFunctionKey
=
"\uF72D"
;
130
CPPrintScreenFunctionKey
=
"\uF72E"
;
131
CPScrollLockFunctionKey
=
"\uF72F"
;
132
CPPauseFunctionKey
=
"\uF730"
;
133
CPSysReqFunctionKey
=
"\uF731"
;
134
CPBreakFunctionKey
=
"\uF732"
;
135
CPResetFunctionKey
=
"\uF733"
;
136
CPStopFunctionKey
=
"\uF734"
;
137
CPMenuFunctionKey
=
"\uF735"
;
138
CPUserFunctionKey
=
"\uF736"
;
139
CPSystemFunctionKey
=
"\uF737"
;
140
CPPrintFunctionKey
=
"\uF738"
;
141
CPClearLineFunctionKey
=
"\uF739"
;
142
CPClearDisplayFunctionKey
=
"\uF73A"
;
143
CPInsertLineFunctionKey
=
"\uF73B"
;
144
CPDeleteLineFunctionKey
=
"\uF73C"
;
145
CPInsertCharFunctionKey
=
"\uF73D"
;
146
CPDeleteCharFunctionKey
=
"\uF73E"
;
147
CPPrevFunctionKey
=
"\uF73F"
;
148
CPNextFunctionKey
=
"\uF740"
;
149
CPSelectFunctionKey
=
"\uF741"
;
150
CPExecuteFunctionKey
=
"\uF742"
;
151
CPUndoFunctionKey
=
"\uF743"
;
152
CPRedoFunctionKey
=
"\uF744"
;
153
CPFindFunctionKey
=
"\uF745"
;
154
CPHelpFunctionKey
=
"\uF746"
;
155
CPModeSwitchFunctionKey
=
"\uF747"
;
156
CPEscapeFunctionKey
=
"\u001B"
;
157
CPSpaceFunctionKey
=
"\u0020"
;
158
159
160
CPDOMEventDoubleClick
=
"dblclick"
;
161
CPDOMEventMouseDown
=
"mousedown"
;
162
CPDOMEventMouseUp
=
"mouseup"
;
163
CPDOMEventMouseMoved
=
"mousemove"
;
164
CPDOMEventMouseDragged
=
"mousedrag"
;
165
CPDOMEventKeyUp
=
"keyup"
;
166
CPDOMEventKeyDown
=
"keydown"
;
167
CPDOMEventKeyPress
=
"keypress"
;
168
CPDOMEventCopy
=
"copy"
;
169
CPDOMEventPaste
=
"paste"
;
170
CPDOMEventScrollWheel
=
"mousewheel"
;
171
CPDOMEventTouchStart
=
"touchstart"
;
172
CPDOMEventTouchMove
=
"touchmove"
;
173
CPDOMEventTouchEnd
=
"touchend"
;
174
CPDOMEventTouchCancel
=
"touchcancel"
;
CPDeviceIndependentModifierFlagsMask
CPDeviceIndependentModifierFlagsMask
Definition:
CPEvent_Constants.j:59
CPPeriodicMask
CPPeriodicMask
Definition:
CPEvent_Constants.j:80
CPClearLineFunctionKey
CPClearLineFunctionKey
Definition:
CPEvent_Constants.j:141
CPBeginFunctionKey
CPBeginFunctionKey
Definition:
CPEvent_Constants.j:126
CPF6FunctionKey
CPF6FunctionKey
Definition:
CPEvent_Constants.j:93
CPDOMEventDoubleClick
CPDOMEventDoubleClick
Definition:
CPEvent_Constants.j:160
CPF1FunctionKey
CPF1FunctionKey
Definition:
CPEvent_Constants.j:88
CPF19FunctionKey
CPF19FunctionKey
Definition:
CPEvent_Constants.j:106
CPDOMEventScrollWheel
CPDOMEventScrollWheel
Definition:
CPEvent_Constants.j:170
CPInsertFunctionKey
CPInsertFunctionKey
Definition:
CPEvent_Constants.j:123
CPModeSwitchFunctionKey
CPModeSwitchFunctionKey
Definition:
CPEvent_Constants.j:155
CPScrollWheelMask
CPScrollWheelMask
Definition:
CPEvent_Constants.j:81
CPF30FunctionKey
CPF30FunctionKey
Definition:
CPEvent_Constants.j:117
CPF32FunctionKey
CPF32FunctionKey
Definition:
CPEvent_Constants.j:119
CPTouchEnd
CPTouchEnd
Definition:
CPEvent_Constants.j:48
CPDOMEventTouchStart
CPDOMEventTouchStart
Definition:
CPEvent_Constants.j:171
CPRightArrowFunctionKey
CPRightArrowFunctionKey
Definition:
CPEvent_Constants.j:87
CPMouseExited
CPMouseExited
Definition:
CPEvent_Constants.j:31
CPF34FunctionKey
CPF34FunctionKey
Definition:
CPEvent_Constants.j:121
CPMouseMovedMask
CPMouseMovedMask
Definition:
CPEvent_Constants.j:67
CPFunctionKeyMask
CPFunctionKeyMask
Definition:
CPEvent_Constants.j:58
CPF20FunctionKey
CPF20FunctionKey
Definition:
CPEvent_Constants.j:107
CPDOMEventMouseDragged
CPDOMEventMouseDragged
Definition:
CPEvent_Constants.j:164
CPF18FunctionKey
CPF18FunctionKey
Definition:
CPEvent_Constants.j:105
CPF23FunctionKey
CPF23FunctionKey
Definition:
CPEvent_Constants.j:110
CPCursorUpdateMask
CPCursorUpdateMask
Definition:
CPEvent_Constants.j:73
CPPrintFunctionKey
CPPrintFunctionKey
Definition:
CPEvent_Constants.j:140
CPF15FunctionKey
CPF15FunctionKey
Definition:
CPEvent_Constants.j:102
CPHomeFunctionKey
CPHomeFunctionKey
Definition:
CPEvent_Constants.j:125
CPLeftMouseUpMask
CPLeftMouseUpMask
Definition:
CPEvent_Constants.j:62
CPF12FunctionKey
CPF12FunctionKey
Definition:
CPEvent_Constants.j:99
CPDeleteFunctionKey
CPDeleteFunctionKey
Definition:
CPEvent_Constants.j:124
CPOtherMouseDownMask
CPOtherMouseDownMask
Definition:
CPEvent_Constants.j:65
CPPageDownFunctionKey
CPPageDownFunctionKey
Definition:
CPEvent_Constants.j:129
CPF26FunctionKey
CPF26FunctionKey
Definition:
CPEvent_Constants.j:113
CPOtherMouseDown
CPOtherMouseDown
Definition:
CPEvent_Constants.j:41
CPF3FunctionKey
CPF3FunctionKey
Definition:
CPEvent_Constants.j:90
CPPrintScreenFunctionKey
CPPrintScreenFunctionKey
Definition:
CPEvent_Constants.j:130
CPF27FunctionKey
CPF27FunctionKey
Definition:
CPEvent_Constants.j:114
CPKeyUpMask
CPKeyUpMask
Definition:
CPEvent_Constants.j:75
CPExecuteFunctionKey
CPExecuteFunctionKey
Definition:
CPEvent_Constants.j:150
CPAppKitDefinedMask
CPAppKitDefinedMask
Definition:
CPEvent_Constants.j:77
CPF16FunctionKey
CPF16FunctionKey
Definition:
CPEvent_Constants.j:103
CPResetFunctionKey
CPResetFunctionKey
Definition:
CPEvent_Constants.j:135
CPSystemFunctionKey
CPSystemFunctionKey
Definition:
CPEvent_Constants.j:139
CPDOMEventMouseMoved
CPDOMEventMouseMoved
Definition:
CPEvent_Constants.j:163
CPHelpKeyMask
CPHelpKeyMask
Definition:
CPEvent_Constants.j:57
CPCursorUpdate
CPCursorUpdate
Definition:
CPEvent_Constants.j:39
CPMouseMoved
CPMouseMoved
Definition:
CPEvent_Constants.j:27
CPDOMEventKeyDown
CPDOMEventKeyDown
Definition:
CPEvent_Constants.j:166
CPDOMEventTouchEnd
CPDOMEventTouchEnd
Definition:
CPEvent_Constants.j:173
CPMouseEntered
CPMouseEntered
Definition:
CPEvent_Constants.j:30
CPF24FunctionKey
CPF24FunctionKey
Definition:
CPEvent_Constants.j:111
CPAlternateKeyMask
CPAlternateKeyMask
Definition:
CPEvent_Constants.j:54
CPFindFunctionKey
CPFindFunctionKey
Definition:
CPEvent_Constants.j:153
CPDOMEventMouseDown
CPDOMEventMouseDown
Definition:
CPEvent_Constants.j:161
CPNextFunctionKey
CPNextFunctionKey
Definition:
CPEvent_Constants.j:148
CPSelectFunctionKey
CPSelectFunctionKey
Definition:
CPEvent_Constants.j:149
CPCommandKeyMask
CPCommandKeyMask
Definition:
CPEvent_Constants.j:55
CPRightMouseDragged
CPRightMouseDragged
Definition:
CPEvent_Constants.j:29
CPEndFunctionKey
CPEndFunctionKey
Definition:
CPEvent_Constants.j:127
CPPageUpFunctionKey
CPPageUpFunctionKey
Definition:
CPEvent_Constants.j:128
CPF2FunctionKey
CPF2FunctionKey
Definition:
CPEvent_Constants.j:89
CPUndoFunctionKey
CPUndoFunctionKey
Definition:
CPEvent_Constants.j:151
CPEscapeFunctionKey
CPEscapeFunctionKey
Definition:
CPEvent_Constants.j:156
CPOtherMouseUpMask
CPOtherMouseUpMask
Definition:
CPEvent_Constants.j:66
CPFlagsChanged
CPFlagsChanged
Definition:
CPEvent_Constants.j:34
CPFlagsChangedMask
CPFlagsChangedMask
Definition:
CPEvent_Constants.j:76
CPLeftMouseDownMask
CPLeftMouseDownMask
Definition:
CPEvent_Constants.j:61
CPDOMEventTouchCancel
CPDOMEventTouchCancel
Definition:
CPEvent_Constants.j:174
CPAlphaShiftKeyMask
CPAlphaShiftKeyMask
Definition:
CPEvent_Constants.j:51
CPKeyDown
CPKeyDown
Definition:
CPEvent_Constants.j:32
CPDOMEventCopy
CPDOMEventCopy
Definition:
CPEvent_Constants.j:168
CPNumericPadKeyMask
CPNumericPadKeyMask
Definition:
CPEvent_Constants.j:56
CPInsertLineFunctionKey
CPInsertLineFunctionKey
Definition:
CPEvent_Constants.j:143
CPTouchStart
CPTouchStart
Definition:
CPEvent_Constants.j:46
CPRightMouseUpMask
CPRightMouseUpMask
Definition:
CPEvent_Constants.j:64
CPHelpFunctionKey
CPHelpFunctionKey
Definition:
CPEvent_Constants.j:154
CPF11FunctionKey
CPF11FunctionKey
Definition:
CPEvent_Constants.j:98
CPF31FunctionKey
CPF31FunctionKey
Definition:
CPEvent_Constants.j:118
CPLeftArrowFunctionKey
CPLeftArrowFunctionKey
Definition:
CPEvent_Constants.j:86
CPBreakFunctionKey
CPBreakFunctionKey
Definition:
CPEvent_Constants.j:134
CPLeftMouseUp
CPLeftMouseUp
Definition:
CPEvent_Constants.j:24
CPShiftKeyMask
CPShiftKeyMask
Definition:
CPEvent_Constants.j:52
CPF22FunctionKey
CPF22FunctionKey
Definition:
CPEvent_Constants.j:109
CPRightMouseDraggedMask
CPRightMouseDraggedMask
Definition:
CPEvent_Constants.j:69
CPF13FunctionKey
CPF13FunctionKey
Definition:
CPEvent_Constants.j:100
CPF25FunctionKey
CPF25FunctionKey
Definition:
CPEvent_Constants.j:112
CPF21FunctionKey
CPF21FunctionKey
Definition:
CPEvent_Constants.j:108
CPDOMEventKeyUp
CPDOMEventKeyUp
Definition:
CPEvent_Constants.j:165
CPF33FunctionKey
CPF33FunctionKey
Definition:
CPEvent_Constants.j:120
CPUpArrowFunctionKey
CPUpArrowFunctionKey
Definition:
CPEvent_Constants.j:84
CPF9FunctionKey
CPF9FunctionKey
Definition:
CPEvent_Constants.j:96
CPDOMEventKeyPress
CPDOMEventKeyPress
Definition:
CPEvent_Constants.j:167
CPSystemDefinedMask
CPSystemDefinedMask
Definition:
CPEvent_Constants.j:78
CPSystemDefined
CPSystemDefined
Definition:
CPEvent_Constants.j:36
CPF29FunctionKey
CPF29FunctionKey
Definition:
CPEvent_Constants.j:116
CPClearDisplayFunctionKey
CPClearDisplayFunctionKey
Definition:
CPEvent_Constants.j:142
CPScrollLockFunctionKey
CPScrollLockFunctionKey
Definition:
CPEvent_Constants.j:131
CPTouchCancel
CPTouchCancel
Definition:
CPEvent_Constants.j:49
CPPrevFunctionKey
CPPrevFunctionKey
Definition:
CPEvent_Constants.j:147
CPLeftMouseDragged
CPLeftMouseDragged
Definition:
CPEvent_Constants.j:28
CPMenuFunctionKey
CPMenuFunctionKey
Definition:
CPEvent_Constants.j:137
CPLeftMouseDraggedMask
CPLeftMouseDraggedMask
Definition:
CPEvent_Constants.j:68
CPSpaceFunctionKey
CPSpaceFunctionKey
Definition:
CPEvent_Constants.j:157
CPInsertCharFunctionKey
CPInsertCharFunctionKey
Definition:
CPEvent_Constants.j:145
CPKeyUp
CPKeyUp
Definition:
CPEvent_Constants.j:33
CPMouseExitedMask
CPMouseExitedMask
Definition:
CPEvent_Constants.j:72
CPMouseEnteredMask
CPMouseEnteredMask
Definition:
CPEvent_Constants.j:71
CPDownArrowFunctionKey
CPDownArrowFunctionKey
Definition:
CPEvent_Constants.j:85
CPOtherMouseDragged
CPOtherMouseDragged
Definition:
CPEvent_Constants.j:43
CPRightMouseDownMask
CPRightMouseDownMask
Definition:
CPEvent_Constants.j:63
CPRightMouseUp
CPRightMouseUp
Definition:
CPEvent_Constants.j:26
CPPauseFunctionKey
CPPauseFunctionKey
Definition:
CPEvent_Constants.j:132
CPLeftMouseDown
CPLeftMouseDown
Definition:
CPEvent_Constants.j:23
CPF8FunctionKey
CPF8FunctionKey
Definition:
CPEvent_Constants.j:95
CPF35FunctionKey
CPF35FunctionKey
Definition:
CPEvent_Constants.j:122
CPOtherMouseUp
CPOtherMouseUp
Definition:
CPEvent_Constants.j:42
CPF28FunctionKey
CPF28FunctionKey
Definition:
CPEvent_Constants.j:115
CPDeleteLineFunctionKey
CPDeleteLineFunctionKey
Definition:
CPEvent_Constants.j:144
CPControlKeyMask
CPControlKeyMask
Definition:
CPEvent_Constants.j:53
CPDeleteCharFunctionKey
CPDeleteCharFunctionKey
Definition:
CPEvent_Constants.j:146
CPTouchMove
CPTouchMove
Definition:
CPEvent_Constants.j:47
CPDOMEventTouchMove
CPDOMEventTouchMove
Definition:
CPEvent_Constants.j:172
CPApplicationDefinedMask
CPApplicationDefinedMask
Definition:
CPEvent_Constants.j:79
CPF5FunctionKey
CPF5FunctionKey
Definition:
CPEvent_Constants.j:92
CPKeyDownMask
CPKeyDownMask
Definition:
CPEvent_Constants.j:74
CPAnyEventMask
CPAnyEventMask
Definition:
CPEvent_Constants.j:82
CPApplicationDefined
CPApplicationDefined
Definition:
CPEvent_Constants.j:37
CPStopFunctionKey
CPStopFunctionKey
Definition:
CPEvent_Constants.j:136
CPDOMEventPaste
CPDOMEventPaste
Definition:
CPEvent_Constants.j:169
CPF4FunctionKey
CPF4FunctionKey
Definition:
CPEvent_Constants.j:91
CPAppKitDefined
CPAppKitDefined
Definition:
CPEvent_Constants.j:35
CPUserFunctionKey
CPUserFunctionKey
Definition:
CPEvent_Constants.j:138
CPF17FunctionKey
CPF17FunctionKey
Definition:
CPEvent_Constants.j:104
CPF7FunctionKey
CPF7FunctionKey
Definition:
CPEvent_Constants.j:94
CPDOMEventMouseUp
CPDOMEventMouseUp
Definition:
CPEvent_Constants.j:162
CPRightMouseDown
CPRightMouseDown
Definition:
CPEvent_Constants.j:25
CPF10FunctionKey
CPF10FunctionKey
Definition:
CPEvent_Constants.j:97
CPSysReqFunctionKey
CPSysReqFunctionKey
Definition:
CPEvent_Constants.j:133
CPPeriodic
CPPeriodic
Definition:
CPEvent_Constants.j:38
CPScrollWheel
CPScrollWheel
Definition:
CPEvent_Constants.j:40
CPRedoFunctionKey
CPRedoFunctionKey
Definition:
CPEvent_Constants.j:152
CPF14FunctionKey
CPF14FunctionKey
Definition:
CPEvent_Constants.j:101
AppKit
CPEvent_Constants.j
Generated on Mon Sep 10 2018 12:09:56 for API by
1.8.14