gCAD3D 2.35
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_EventExit 409
80 
81 
83 // ../ut/ut_geo.h
85 #define TYP_DeviceKeyb 410
86 #define TYP_DeviceMouse 411
87 // #define TYP_DeviceButton 312
88 // #define TYP_DeviceScreen 311
89 
90 #define TYP_GUI_Unknown 420
92 #define TYP_GUI_Win 421
93 #define TYP_GUI_BoxH 422
94 #define TYP_GUI_BoxV 423
95 #define TYP_GUI_Label 424
96 #define TYP_GUI_Button 425
97 #define TYP_GUI_CheckBox 426
98 #define TYP_GUI_Entry 427
99 #define TYP_GUI_Slider 428
100 #define TYP_GUI_MenuShell 429
101 #define TYP_GUI_MenuItem 430
102 #define TYP_GUI_OptMen 431
103 #define TYP_GUI_MsgWin 432
104 #define TYP_GUI_List 433
105 #define TYP_GUI_Frame 434
106 #define TYP_GUI_Toolbar 435
107 #define TYP_GUI_Notebook 436
108 #define TYP_GUI_Tree 437
109 #define TYP_GUI_BoxGL 438
110 #define TYP_GUI_Editor 439
111 
112 
113 //================================================================
115 #define GUI_MouseL 1
116 #define GUI_MouseM 2
117 #define GUI_MouseR 3
118 #define GUI_Mouse2L 4
119 #define GUI_MouseScUp 5
120 #define GUI_MouseScDown 6
121 
122 #define GUI_KeyEsc 0xff1b // 65307
126 #define GUI_KeyTab 0xff09
127 #define GUI_KeyReturn 0xff0d // 65293
128 #define GUI_KeyBackSpace 0xff08 // "remove-previous-char"
129 #define GUI_KeyDel 0xffff // Delete, "remove-next-char" 65535
130 #define GUI_KeyNumDel 0xff9f // Delete in numeric-key-block
131 
132 #define GUI_KeyPageUp 0xff55 // 65365 ff9a 65434
133 #define GUI_KeyPageDown 0xff56 // 65366 ff9b 65435
134 
135 #define GUI_KeyCurUp 0xff52 //
136 #define GUI_KeyCurDown 0xff54 // 65364
137 #define GUI_KeyCurLeft 0xff51
138 #define GUI_KeyCurRight 0xff53
139 
140 #define GUI_KeyShift_L 0xffe1 // 65505
141 #define GUI_KeyShift_R 0xffe2
142 #define GUI_KeyControl_L 0xffe3 // 65507
143 #define GUI_KeyControl_R 0xffe4 // 65508
144 #define GUI_KeyAlt_L 0xffe9 // 65513
145 #define GUI_KeyAlt_R 0xffea // 65514
146 #define GUI_KeyMeta_L 0xffe7 // GTK: Shift + Alt !
147 #define GUI_KeyMeta_R 0xffe8
148  // ffeb=65515=windows-key
149 #define GUI_KeyF1 0xff91 // XK_F1 XK_KP_F1
150 #define GUI_KeyF2 0xff92
151 #define GUI_KeyF3 65472 // 0xff93
152 #define GUI_KeyF4 65473
153 #define GUI_KeyF5 0xffc2
154 
155 // MouseButtons: mouseButtonNr(1|2|3);
156 // DoubleClick(GDK_2BUTTON_PRESS)=4;
157 // ScrollUp(GDK_SCROLL_UP)=5; ScrollDown(GDK_SCROLL_DOWN)=6;
158 // ReturnKey=13;
159 
160 #define GUI_Modif_shift 1 // 2=SHIFT LOCK
161 #define GUI_Modif_ctrl 4
162 #define GUI_Modif_alt 8
163 
165 
166 #define GUI_STYL_normal 0
167 #define GUI_STYL_activ 1
168 #define GUI_STYL_passiv 2
169 
170 
171 
172 // EOF