gCAD3D 2.40
gui_types.h
Go to the documentation of this file.
1 // ../gui/gui_types.h
2 // see also ../ut/ut_types.h
3 // see also ../ut/AP_types.h
4 
5 
6 
8 #define GUI_DATA_EVENT *(int*)data[0]
9 
10 #define GUI_DATA_I1 *(int*)data[1]
11 #define GUI_DATA_L1 *(long*)data[1]
12 #define GUI_DATA_D1 *(double*)data[1]
13 #define GUI_DATA_S1 (char*)data[1]
14 #define GUI_DATA_PTR_I1 (int*)(data[1])
15 
16 #define GUI_DATA_I2 *(int*)data[2]
17 #define GUI_DATA_L2 *(long*)data[2]
18 #define GUI_DATA_S2 (char*)data[2]
19 
20 #define GUI_DATA_I3 *(int*)data[3]
21 #define GUI_DATA_S3 (char*)data[3]
22 
23 #define GUI_DATA_I4 *(int*)data[4]
24 #define GUI_DATA_S4 (char*)data[4]
25 
26 #define GUI_DATA_I5 *(int*)data[5]
27 #define GUI_DATA_S5 (char*)data[5]
28 
29 
30 
31 //================================================================
32 #define UI_FuncInit 90
33 #define UI_FuncClear 194
34 #define UI_FuncGet 91
35 #define UI_FuncSet 92
36 #define UI_FuncDisable 93
37 #define UI_FuncEnable 94
38 #define UI_FuncFocus 95
39 #define UI_FuncPrev 96
40 #define UI_FuncNext 97
41 #define UI_FuncWork 98
42 #define UI_FuncKill 99
43 #define UI_FuncOK 100
44 #define UI_FuncCancel 101
45 #define UI_FuncExit 102
46 #define UI_FuncHelp 103
47 #define UI_FuncNO 104
48 
49 #define UI_FuncInsert 110
50 #define UI_FuncModify 111
51 #define UI_FuncDelete 112
52 #define UI_FuncUndo 113
53 
54 #define UI_FuncUCB 1000 // Usercallbacks; 1000-1999
55 #define UI_FuncUCB1 1001
56 #define UI_FuncUCB2 1002
57 #define UI_FuncUCB3 1003
58 #define UI_FuncUCB4 1004
59 #define UI_FuncUCB5 1005
60 #define UI_FuncUCB6 1006
61 #define UI_FuncUCB7 1007
62 #define UI_FuncUCB8 1008
63 #define UI_FuncUCB9 1009
64 #define UI_FuncUCB10 1010
65 #define UI_FuncUCB11 1011
66 #define UI_FuncUCB12 1012
67 #define UI_FuncUCB13 1013
68 
69 // was ../ut/ut_geo.h
71 #define TYP_EventEnter 400
72 #define TYP_EventLeave 401
73 #define TYP_EventPress 402
74 #define TYP_EventRelease 403
75 #define TYP_EventMove 404
76 #define TYP_EventDraw 405
77 #define TYP_EventConfig 406
78 #define TYP_EventUnmap 407
79 #define TYP_EventMap 408
80 #define TYP_EventExit 409
81 
82 
84 // ../ut/ut_geo.h
86 #define TYP_DeviceKeyb 410
87 #define TYP_DeviceMouse 411
88 // #define TYP_DeviceButton 312
89 // #define TYP_DeviceScreen 311
90 
91 #define TYP_GUI_Unknown 420
93 #define TYP_GUI_Win 421
94 #define TYP_GUI_BoxH 422
95 #define TYP_GUI_BoxV 423
96 #define TYP_GUI_Label 424
97 #define TYP_GUI_Button 425
98 #define TYP_GUI_CheckBox 426
99 #define TYP_GUI_Entry 427
100 #define TYP_GUI_Slider 428
101 #define TYP_GUI_MenuShell 429
102 #define TYP_GUI_MenuItem 430
103 #define TYP_GUI_OptMen 431
104 #define TYP_GUI_MsgWin 432
105 #define TYP_GUI_List 433
106 #define TYP_GUI_Frame 434
107 #define TYP_GUI_Toolbar 435
108 #define TYP_GUI_Notebook 436
109 #define TYP_GUI_Tree 437
110 #define TYP_GUI_BoxGL 438
111 #define TYP_GUI_Editor 439
112 
113 
114 //================================================================
116 #define GUI_MouseL 1
117 #define GUI_MouseM 2
118 #define GUI_MouseR 3
119 #define GUI_Mouse2L 4
120 #define GUI_MouseScUp 5
121 #define GUI_MouseScDown 6
122 
123 #define GUI_KeyEsc 0xff1b // 65307
127 #define GUI_KeyTab 0xff09
128 #define GUI_KeyReturn 0xff0d // 65293
129 #define GUI_KeyBackSpace 0xff08 // "remove-previous-char"
130 #define GUI_KeyDel 0xffff // Delete, "remove-next-char" 65535
131 #define GUI_KeyNumDel 0xff9f // Delete in numeric-key-block
132 
133 #define GUI_KeyPageUp 0xff55 // 65365 ff9a 65434
134 #define GUI_KeyPageDown 0xff56 // 65366 ff9b 65435
135 
136 #define GUI_KeyCurUp 0xff52 //
137 #define GUI_KeyCurDown 0xff54 // 65364
138 #define GUI_KeyCurLeft 0xff51
139 #define GUI_KeyCurRight 0xff53
140 
141 #define GUI_KeyShift_L 0xffe1 // 65505
142 #define GUI_KeyShift_R 0xffe2
143 #define GUI_KeyControl_L 0xffe3 // 65507
144 #define GUI_KeyControl_R 0xffe4 // 65508
145 #define GUI_KeyAlt_L 0xffe9 // 65513
146 #define GUI_KeyAlt_R 0xffea // 65514
147 #define GUI_KeyMeta_L 0xffe7 // GTK: Shift + Alt !
148 #define GUI_KeyMeta_R 0xffe8
149  // ffeb=65515=windows-key
150 #define GUI_KeyF1 0xff91 // XK_F1 XK_KP_F1
151 #define GUI_KeyF2 0xff92
152 #define GUI_KeyF3 65472 // 0xff93
153 #define GUI_KeyF4 65473
154 #define GUI_KeyF5 0xffc2
155 
156 // MouseButtons: mouseButtonNr(1|2|3);
157 // DoubleClick(GDK_2BUTTON_PRESS)=4;
158 // ScrollUp(GDK_SCROLL_UP)=5; ScrollDown(GDK_SCROLL_DOWN)=6;
159 // ReturnKey=13;
160 
161 #define GUI_Modif_shift 1 // 2=SHIFT LOCK
162 #define GUI_Modif_ctrl 4
163 #define GUI_Modif_alt 8
164 
166 
167 #define GUI_STYL_normal 0
168 #define GUI_STYL_activ 1
169 #define GUI_STYL_passiv 2
170 
171 
172 
173 // EOF