Debian Codegraph @

doc/man/man3/ivm/events/SoKeyboardEvent.ivm

raw
1 NAME SoKeyboardEvent SoKeyEv SO_KEY_EV_ { keyboard key press and release events }
2
3 INCLUDE events/SoKeyboardEvent.h
4
5 DESC { \cSoKeyboardEvent\. represents keyboard key press and release events
6 in the Inventor event model.
7 }
8
9 ENUM Key {
10 ANY "Special constant for any key",
11 LEFT_SHIFT "Modifiers",
12 RIGHT_SHIFT "",
13 LEFT_CONTROL "",
14 RIGHT_CONTROL "",
15 LEFT_ALT "",
16 RIGHT_ALT "",
17 NUMBER_0 "Numbers",
18 NUMBER_1 "",
19 NUMBER_2 "",
20 NUMBER_3 "",
21 NUMBER_4 "",
22 NUMBER_5 "",
23 NUMBER_6 "",
24 NUMBER_7 "",
25 NUMBER_8 "",
26 NUMBER_9 "",
27 A "Letters",
28 B "",
29 C "",
30 D "",
31 E "",
32 F "",
33 G "",
34 H "",
35 I "",
36 J "",
37 K "",
38 L "",
39 M "",
40 N "",
41 O "",
42 P "",
43 Q "",
44 R "",
45 S "",
46 T "",
47 U "",
48 V "",
49 W "",
50 X "",
51 Y "",
52 Z "",
53 HOME "Cursor control and motion",
54 LEFT_ARROW "",
55 UP_ARROW "",
56 RIGHT_ARROW "",
57 DOWN_ARROW "",
58 PAGE_UP "",
59 PAGE_DOWN "",
60 PRIOR "",
61 NEXT "",
62 END "",
63 PAD_ENTER "Keypad functions",
64 PAD_F1 "",
65 PAD_F2 "",
66 PAD_F3 "",
67 PAD_F4 "",
68 PAD_0 "",
69 PAD_1 "",
70 PAD_2 "",
71 PAD_3 "",
72 PAD_4 "",
73 PAD_5 "",
74 PAD_6 "",
75 PAD_7 "",
76 PAD_8 "",
77 PAD_9 "",
78 PAD_ADD "",
79 PAD_SUBTRACT "",
80 PAD_MULTIPLY "",
81 PAD_DIVIDE "",
82 PAD_SPACE "",
83 PAD_TAB "",
84 PAD_INSERT "",
85 PAD_DELETE "",
86 PAD_PERIOD "",
87 F1 "Function keys",
88 F2 "",
89 F3 "",
90 F4 "",
91 F5 "",
92 F6 "",
93 F7 "",
94 F8 "",
95 F9 "",
96 F10 "",
97 F11 "",
98 F12 "",
99 BACKSPACE "Miscellaneous",
100 TAB "",
101 RETURN "",
102 ENTER "",
103 PAUSE "",
104 SCROLL_LOCK "",
105 ESCAPE "",
106 DELETE "",
107 PRINT "",
108 INSERT "",
109 NUM_LOCK "",
110 CAPS_LOCK "",
111 SHIFT_LOCK "",
112 SPACE "",
113 APOSTROPHE "",
114 COMMA "",
115 MINUS "",
116 PERIOD "",
117 SLASH "",
118 SEMICOLON "",
119 EQUAL "",
120 BRACKETLEFT "",
121 BACKSLASH "",
122 BRACKETRIGHT "",
123 GRAVE ""
124 }
125
126 BEGIN C++
127 DEFINE { SO_KEY_PRESS_EVENT(EVENT,KEY)
128 (SoKeyboardEvent::isKeyPressEvent(EVENT,SoKeyboardEvent::KEY)) }
129 DEFINE { SO_KEY_RELEASE_EVENT(EVENT,KEY)
130 (SoKeyboardEvent::isKeyReleaseEvent(EVENT,SoKeyboardEvent::KEY)) }
131 END
132 BEGIN C
133 DEFINE { SO_KEY_PRESS_EV(EVENT,KEY)
134 (SoKeyEvIsKeyPressEv(EVENT,KEY)) }
135 DEFINE { SO_KEY_RELEASE_EV(EVENT,KEY)
136 (SoKeyEvIsKeyReleaseEv(EVENT,KEY)) }
137 END
138
139 METHOD "" SoKeyboardEvent() { Constructor. }
140
141 METHOD "" static SoType getClassTypeId() {
142 Return the type id for the \cSoKeyboardEvent\. class.
143 }
144
145 BEGIN C++
146 METHOD "" void setKey(SoKeyboardEvent::Key whichKey) {}
147 METHOD "" SoKeyboardEvent::Key getKey() const
148 { Set and get which key generated the event. }
149 END
150 BEGIN C
151 METHOD "" void setKey(SoKeyboardEventKey whichKey) {}
152 METHOD "" SoKeyboardEventKey getKey() const
153 { Set and get which key generated the event. }
154 END
155
156 BEGIN C++
157 METHOD "" static SbBool isKeyPressEvent(
158 const SoEvent *e,
159 SoKeyboardEvent::Key whichKey) {}
160 METHOD "" static SbBool isKeyReleaseEvent(
161 const SoEvent *e,
162 SoKeyboardEvent::Key whichKey)
163 { Returns whether the passed event is a keyboard press or release event
164 of the passed key. When \vSoKeyboardEvent::ANY\. is passed,
165 this returns TRUE if the event represents a keyboard press
166 or release of any key. }
167 END
168 BEGIN C
169 METHOD "" SbBool isKeyPressEvent(
170 const SoEvent *e,
171 SoKeyboardEventKey whichKey) {}
172 METHOD "" SbBool isKeyReleaseEvent(
173 const SoEvent *e,
174 SoKeyboardEventKey whichKey)
175 { Returns whether the passed event is a keyboard press or release event
176 of the passed key. When \eSO_KEY_EV_ANY\. is passed,
177 this returns \eTRUE\. if the event represents a keyboard press
178 or release of any key. }
179 END
180
181 METHOD "" char getPrintableCharacter() const {
182 Convenience routine that returns the character representing the
183 key, if it's printable. If not, this returns NULL ('\\0').
184 }
185
186 ALSO {
187 SoEvent, SoButtonEvent, SoLocation2Event, SoMotion3Event,
188 SoMouseButtonEvent, SoSpaceballButtonEvent,
189 SoHandleEventAction, SoEventCallback, SoSelection, SoInteraction,
190 SoXtDevice }
191
192
193