]>
Commit | Line | Data |
---|---|---|
7bf85405 RD |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: _defs.i | |
3 | // Purpose: Definitions and stuff | |
4 | // | |
5 | // Author: Robin Dunn | |
6 | // | |
7 | // Created: 6/24/97 | |
8 | // RCS-ID: $Id$ | |
9 | // Copyright: (c) 1998 by Total Control Software | |
10 | // Licence: wxWindows license | |
11 | ///////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | ||
14 | ||
15 | //--------------------------------------------------------------------------- | |
16 | // Forward declares... | |
17 | ||
af309447 RD |
18 | class wxAcceleratorEntry; |
19 | class wxAcceleratorTable; | |
20 | class wxActivateEvent; | |
21 | class wxBitmapButton; | |
22 | class wxBitmap; | |
23 | class wxBrush; | |
24 | class wxButton; | |
25 | class wxCalculateLayoutEvent; | |
a1df7a95 | 26 | class wxCaret; |
af309447 RD |
27 | class wxCheckBox; |
28 | class wxCheckListBox; | |
29 | class wxChoice; | |
30 | class wxClientDC; | |
7bf85405 | 31 | class wxCloseEvent; |
af309447 RD |
32 | class wxColourData; |
33 | class wxColourDialog; | |
34 | class wxColour; | |
35 | class wxComboBox; | |
7bf85405 | 36 | class wxCommandEvent; |
af309447 RD |
37 | class wxConfig; |
38 | class wxControl; | |
39 | class wxCursor; | |
40 | class wxDC; | |
41 | class wxDialog; | |
42 | class wxDirDialog; | |
43 | class wxDropFilesEvent; | |
7bf85405 | 44 | class wxEraseEvent; |
af309447 RD |
45 | class wxEvent; |
46 | class wxEvtHandler; | |
47 | class wxFileDialog; | |
7bf85405 | 48 | class wxFocusEvent; |
af309447 RD |
49 | class wxFontData; |
50 | class wxFontDialog; | |
51 | class wxFont; | |
52 | class wxFrame; | |
53 | class wxGauge; | |
54 | class wxGridCell; | |
55 | class wxGridEvent; | |
56 | class wxGrid; | |
7bf85405 | 57 | class wxIconizeEvent; |
af309447 | 58 | class wxIcon; |
7bf85405 | 59 | class wxIdleEvent; |
af309447 RD |
60 | class wxImageList; |
61 | class wxIndividualLayoutConstraint; | |
62 | class wxInitDialogEvent; | |
63 | class wxJoystickEvent; | |
64 | class wxKeyEvent; | |
65 | class wxLayoutAlgorithm; | |
66 | class wxLayoutConstraints; | |
67 | class wxListBox; | |
68 | class wxListCtrl; | |
69 | class wxListEvent; | |
70 | class wxListItem; | |
71 | class wxMDIChildFrame; | |
72 | class wxMDIClientWindow; | |
73 | class wxMDIParentFrame; | |
7bf85405 | 74 | class wxMask; |
af309447 | 75 | class wxMaximizeEvent; |
7bf85405 | 76 | class wxMemoryDC; |
af309447 RD |
77 | class wxMenuBar; |
78 | class wxMenuEvent; | |
79 | class wxMenuItem; | |
80 | class wxMenu; | |
81 | class wxMessageDialog; | |
82 | class wxMetaFileDC; | |
83 | class wxMiniFrame; | |
84 | class wxMouseEvent; | |
85 | class wxMoveEvent; | |
86 | class wxNotebookEvent; | |
87 | class wxNotebook; | |
88 | class wxPageSetupData; | |
89 | class wxPageSetupDialog; | |
7bf85405 | 90 | class wxPaintDC; |
af309447 RD |
91 | class wxPaintEvent; |
92 | class wxPalette; | |
93 | class wxPanel; | |
94 | class wxPen; | |
95 | class wxPoint; | |
7bf85405 | 96 | class wxPostScriptDC; |
af309447 RD |
97 | class wxPrintData; |
98 | class wxPrintDialog; | |
7bf85405 | 99 | class wxPrinterDC; |
af309447 | 100 | class wxQueryLayoutInfoEvent; |
7bf85405 RD |
101 | class wxRadioBox; |
102 | class wxRadioButton; | |
af309447 RD |
103 | class wxRealPoint; |
104 | class wxRect; | |
105 | class wxRegionIterator; | |
106 | class wxRegion; | |
107 | class wxSashEvent; | |
108 | class wxSashLayoutWindow; | |
109 | class wxSashWindow; | |
110 | class wxScreenDC; | |
111 | class wxScrollBar; | |
112 | class wxScrollEvent; | |
d426c97e | 113 | class wxScrollWinEvent; |
af309447 RD |
114 | class wxScrolledWindow; |
115 | class wxShowEvent; | |
116 | class wxSingleChoiceDialog; | |
117 | class wxSizeEvent; | |
118 | class wxSize; | |
7bf85405 | 119 | class wxSlider; |
af309447 RD |
120 | class wxSpinButton; |
121 | class wxSpinEvent; | |
122 | class wxSplitterWindow; | |
123 | class wxStaticBitmap; | |
124 | class wxStaticBox; | |
125 | class wxStaticText; | |
126 | class wxStatusBar; | |
127 | class wxSysColourChangedEvent; | |
128 | class wxTaskBarIcon; | |
129 | class wxTextCtrl; | |
130 | class wxTextEntryDialog; | |
131 | class wxTimer; | |
132 | class wxToolBarTool; | |
133 | class wxToolBar; | |
134 | class wxToolTip; | |
135 | class wxTreeCtrl; | |
136 | class wxTreeEvent; | |
137 | class wxTreeItemData; | |
138 | class wxTreeItemId; | |
139 | class wxUpdateUIEvent; | |
140 | class wxWindowDC; | |
141 | class wxWindow; | |
2f90df85 RD |
142 | class wxSizer; |
143 | class wxBoxSizer; | |
144 | class wxStaticBoxSizer; | |
7bf85405 | 145 | |
af309447 RD |
146 | class wxPyApp; |
147 | class wxPyMenu; | |
7bf85405 | 148 | class wxPyTimer; |
af309447 | 149 | |
7bf85405 RD |
150 | |
151 | //--------------------------------------------------------------------------- | |
152 | ||
153 | // some definitions for SWIG only | |
154 | typedef unsigned char byte; | |
155 | typedef short int WXTYPE; | |
156 | typedef int wxWindowID; | |
157 | typedef unsigned int uint; | |
158 | typedef signed int EBool; | |
c127177f | 159 | typedef unsigned int size_t |
c368d904 | 160 | typedef unsigned int time_t |
bb0054cd | 161 | typedef int wxPrintQuality; |
b1462dfa | 162 | typedef int wxCoord; |
f6bcfd97 | 163 | typedef char wxChar; |
b1462dfa | 164 | |
7bf85405 RD |
165 | |
166 | //--------------------------------------------------------------------------- | |
167 | ||
168 | // General numeric #define's and etc. Making them all enums makes SWIG use the | |
169 | // real macro when making the Python Int | |
170 | ||
171 | enum { | |
172 | wxMAJOR_VERSION, | |
173 | wxMINOR_VERSION, | |
174 | wxRELEASE_NUMBER, | |
175 | ||
08127323 | 176 | wxNOT_FOUND, |
7bf85405 RD |
177 | |
178 | wxVSCROLL, | |
179 | wxHSCROLL, | |
180 | wxCAPTION, | |
181 | wxDOUBLE_BORDER, | |
182 | wxSUNKEN_BORDER, | |
183 | wxRAISED_BORDER, | |
184 | wxBORDER, | |
185 | wxSIMPLE_BORDER, | |
186 | wxSTATIC_BORDER, | |
187 | wxTRANSPARENT_WINDOW, | |
188 | wxNO_BORDER, | |
189 | wxUSER_COLOURS, | |
190 | wxNO_3D, | |
191 | //wxOVERRIDE_KEY_TRANSLATIONS, | |
192 | wxTAB_TRAVERSAL, | |
1afc06c2 | 193 | wxWANTS_CHARS, |
7bf85405 RD |
194 | wxHORIZONTAL, |
195 | wxVERTICAL, | |
196 | wxBOTH, | |
197 | wxCENTER_FRAME, | |
1afc06c2 RD |
198 | wxCENTRE_ON_SCREEN, |
199 | wxCENTER_ON_SCREEN, | |
200 | ||
7bf85405 RD |
201 | wxSTAY_ON_TOP, |
202 | wxICONIZE, | |
203 | wxMINIMIZE, | |
204 | wxMAXIMIZE, | |
205 | wxTHICK_FRAME, | |
206 | wxSYSTEM_MENU, | |
207 | wxMINIMIZE_BOX, | |
208 | wxMAXIMIZE_BOX, | |
209 | wxTINY_CAPTION_HORIZ, | |
210 | wxTINY_CAPTION_VERT, | |
211 | wxRESIZE_BOX, | |
212 | wxRESIZE_BORDER, | |
213 | wxDIALOG_MODAL, | |
214 | wxDIALOG_MODELESS, | |
25832b3f | 215 | wxDIALOG_NO_PARENT, |
7bf85405 RD |
216 | wxDEFAULT_FRAME_STYLE, |
217 | wxDEFAULT_DIALOG_STYLE, | |
b8b8dda7 RD |
218 | |
219 | wxFRAME_TOOL_WINDOW, | |
bb0054cd | 220 | wxFRAME_FLOAT_ON_PARENT, |
4c9993c3 | 221 | wxFRAME_NO_WINDOW_MENU, |
1b62f00d RD |
222 | wxFRAME_NO_TASKBAR, |
223 | wxFRAME_EX_CONTEXTHELP, | |
1afc06c2 RD |
224 | wxED_CLIENT_MARGIN, |
225 | wxED_BUTTONS_BOTTOM, | |
226 | wxED_BUTTONS_RIGHT, | |
227 | wxED_STATIC_LINE, | |
228 | wxEXT_DIALOG_STYLE, | |
bb0054cd | 229 | |
08127323 | 230 | wxCLIP_CHILDREN, |
b8b8dda7 | 231 | |
7bf85405 RD |
232 | wxRETAINED, |
233 | wxBACKINGSTORE, | |
234 | wxTB_3DBUTTONS, | |
235 | wxTB_HORIZONTAL, | |
236 | wxTB_VERTICAL, | |
9c039d08 | 237 | wxTB_FLAT, |
f0261a72 | 238 | wxTB_DOCKABLE, |
7bf85405 RD |
239 | wxCOLOURED, |
240 | wxFIXED_LENGTH, | |
241 | wxALIGN_LEFT, | |
be2577e4 RD |
242 | wxALIGN_CENTER_HORIZONTAL, |
243 | wxALIGN_CENTRE_HORIZONTAL, | |
7bf85405 | 244 | wxALIGN_RIGHT, |
2f90df85 | 245 | wxALIGN_BOTTOM, |
be2577e4 RD |
246 | wxALIGN_CENTER_VERTICAL, |
247 | wxALIGN_CENTRE_VERTICAL, | |
2f90df85 | 248 | wxALIGN_TOP, |
be2577e4 RD |
249 | wxALIGN_CENTER, |
250 | wxALIGN_CENTRE, | |
251 | wxSHAPED, | |
1b62f00d RD |
252 | wxADJUST_MINSIZE, |
253 | ||
7bf85405 RD |
254 | wxLB_NEEDED_SB, |
255 | wxLB_ALWAYS_SB, | |
256 | wxLB_SORT, | |
257 | wxLB_SINGLE, | |
258 | wxLB_MULTIPLE, | |
259 | wxLB_EXTENDED, | |
260 | wxLB_OWNERDRAW, | |
261 | wxLB_HSCROLL, | |
262 | wxPROCESS_ENTER, | |
263 | wxPASSWORD, | |
264 | wxTE_PROCESS_ENTER, | |
f6bcfd97 | 265 | wxTE_PROCESS_TAB, |
7bf85405 RD |
266 | wxTE_PASSWORD, |
267 | wxTE_READONLY, | |
8bf5d46e | 268 | wxTE_RICH, |
7bf85405 | 269 | wxTE_MULTILINE, |
06c0fba4 RD |
270 | wxTE_AUTO_SCROLL, |
271 | wxTE_NO_VSCROLL, | |
7bf85405 RD |
272 | wxCB_SIMPLE, |
273 | wxCB_DROPDOWN, | |
274 | wxCB_SORT, | |
275 | wxCB_READONLY, | |
276 | wxRA_HORIZONTAL, | |
277 | wxRA_VERTICAL, | |
ed175610 RD |
278 | wxRA_SPECIFY_ROWS, |
279 | wxRA_SPECIFY_COLS, | |
7bf85405 RD |
280 | wxRB_GROUP, |
281 | wxGA_PROGRESSBAR, | |
282 | wxGA_HORIZONTAL, | |
283 | wxGA_VERTICAL, | |
bb0054cd | 284 | wxGA_SMOOTH, |
7bf85405 RD |
285 | wxSL_HORIZONTAL, |
286 | wxSL_VERTICAL, | |
287 | wxSL_AUTOTICKS, | |
288 | wxSL_LABELS, | |
289 | wxSL_LEFT, | |
290 | wxSL_TOP, | |
291 | wxSL_RIGHT, | |
292 | wxSL_BOTTOM, | |
293 | wxSL_BOTH, | |
294 | wxSL_SELRANGE, | |
295 | wxSB_HORIZONTAL, | |
296 | wxSB_VERTICAL, | |
cf694132 | 297 | wxST_SIZEGRIP, |
2abc0a0f | 298 | wxST_NO_AUTORESIZE, |
7bf85405 RD |
299 | wxBU_AUTODRAW, |
300 | wxBU_NOAUTODRAW, | |
301 | wxTR_HAS_BUTTONS, | |
302 | wxTR_EDIT_LABELS, | |
d5c9047a | 303 | wxTR_LINES_AT_ROOT, |
8bf5d46e | 304 | wxTR_MULTIPLE, |
1afc06c2 | 305 | wxTR_SINGLE, |
8bf5d46e | 306 | wxTR_HAS_VARIABLE_ROW_HEIGHT, |
7bf85405 RD |
307 | wxLC_ICON, |
308 | wxLC_SMALL_ICON, | |
309 | wxLC_LIST, | |
310 | wxLC_REPORT, | |
311 | wxLC_ALIGN_TOP, | |
312 | wxLC_ALIGN_LEFT, | |
313 | wxLC_AUTOARRANGE, | |
314 | wxLC_USER_TEXT, | |
315 | wxLC_EDIT_LABELS, | |
316 | wxLC_NO_HEADER, | |
317 | wxLC_NO_SORT_HEADER, | |
318 | wxLC_SINGLE_SEL, | |
319 | wxLC_SORT_ASCENDING, | |
320 | wxLC_SORT_DESCENDING, | |
321 | wxLC_MASK_TYPE, | |
322 | wxLC_MASK_ALIGN, | |
323 | wxLC_MASK_SORT, | |
1b62f00d RD |
324 | wxLC_HRULES, |
325 | wxLC_VRULES, | |
7bf85405 RD |
326 | wxSP_VERTICAL, |
327 | wxSP_HORIZONTAL, | |
328 | wxSP_ARROW_KEYS, | |
329 | wxSP_WRAP, | |
330 | wxSP_NOBORDER, | |
331 | wxSP_3D, | |
1b62f00d RD |
332 | wxSP_3DSASH, |
333 | wxSP_3DBORDER, | |
334 | wxSP_FULLSASH, | |
7bf85405 | 335 | wxSP_BORDER, |
1dec68aa RD |
336 | wxSP_LIVE_UPDATE, |
337 | wxSP_PERMIT_UNSPLIT, | |
7bf85405 RD |
338 | wxFLOOD_SURFACE, |
339 | wxFLOOD_BORDER, | |
340 | wxODDEVEN_RULE, | |
341 | wxWINDING_RULE, | |
342 | wxTOOL_TOP, | |
343 | wxTOOL_BOTTOM, | |
344 | wxTOOL_LEFT, | |
345 | wxTOOL_RIGHT, | |
346 | wxOK, | |
347 | wxYES_NO, | |
348 | wxCANCEL, | |
349 | wxYES, | |
350 | wxNO, | |
1afc06c2 RD |
351 | wxNO_DEFAULT, |
352 | wxYES_DEFAULT, | |
7bf85405 RD |
353 | wxICON_EXCLAMATION, |
354 | wxICON_HAND, | |
355 | wxICON_QUESTION, | |
356 | wxICON_INFORMATION, | |
357 | wxICON_STOP, | |
358 | wxICON_ASTERISK, | |
359 | wxICON_MASK, | |
1afc06c2 RD |
360 | wxICON_WARNING, |
361 | wxICON_ERROR, | |
362 | ||
363 | wxFORWARD, | |
364 | wxBACKWARD, | |
365 | wxRESET, | |
366 | wxHELP, | |
367 | wxMORE, | |
368 | wxSETUP, | |
369 | ||
f3d9dc1d | 370 | |
7bf85405 RD |
371 | wxCENTRE, |
372 | wxCENTER, | |
373 | wxSIZE_AUTO_WIDTH, | |
374 | wxSIZE_AUTO_HEIGHT, | |
375 | wxSIZE_AUTO, | |
376 | wxSIZE_USE_EXISTING, | |
377 | wxSIZE_ALLOW_MINUS_ONE, | |
7bf85405 RD |
378 | wxPORTRAIT, |
379 | wxLANDSCAPE, | |
bb0054cd RD |
380 | wxPRINT_QUALITY_HIGH, |
381 | wxPRINT_QUALITY_MEDIUM, | |
382 | wxPRINT_QUALITY_LOW, | |
383 | wxPRINT_QUALITY_DRAFT, | |
7bf85405 RD |
384 | wxID_OPEN, |
385 | wxID_CLOSE, | |
386 | wxID_NEW, | |
387 | wxID_SAVE, | |
388 | wxID_SAVEAS, | |
389 | wxID_REVERT, | |
390 | wxID_EXIT, | |
391 | wxID_UNDO, | |
392 | wxID_REDO, | |
393 | wxID_HELP, | |
394 | wxID_PRINT, | |
395 | wxID_PRINT_SETUP, | |
396 | wxID_PREVIEW, | |
397 | wxID_ABOUT, | |
398 | wxID_HELP_CONTENTS, | |
399 | wxID_HELP_COMMANDS, | |
400 | wxID_HELP_PROCEDURES, | |
401 | wxID_HELP_CONTEXT, | |
402 | wxID_CUT, | |
403 | wxID_COPY, | |
404 | wxID_PASTE, | |
405 | wxID_CLEAR, | |
406 | wxID_FIND, | |
d56cebe7 RD |
407 | wxID_DUPLICATE, |
408 | wxID_SELECTALL, | |
7bf85405 RD |
409 | wxID_FILE1, |
410 | wxID_FILE2, | |
411 | wxID_FILE3, | |
412 | wxID_FILE4, | |
413 | wxID_FILE5, | |
414 | wxID_FILE6, | |
415 | wxID_FILE7, | |
416 | wxID_FILE8, | |
417 | wxID_FILE9, | |
418 | wxID_OK, | |
419 | wxID_CANCEL, | |
420 | wxID_APPLY, | |
421 | wxID_YES, | |
422 | wxID_NO, | |
cf694132 | 423 | wxID_STATIC, |
4c9993c3 | 424 | wxID_SEPARATOR, |
f3d9dc1d RD |
425 | wxID_FORWARD, |
426 | wxID_BACKWARD, | |
427 | wxID_SETUP, | |
428 | wxID_MORE, | |
429 | ||
1afc06c2 | 430 | |
7bf85405 RD |
431 | wxOPEN, |
432 | wxSAVE, | |
433 | wxHIDE_READONLY, | |
434 | wxOVERWRITE_PROMPT, | |
2abc0a0f | 435 | wxFILE_MUST_EXIST, |
f6bcfd97 | 436 | wxMULTIPLE, |
1b62f00d | 437 | wxCHANGE_DIR, |
7bf85405 RD |
438 | |
439 | wxACCEL_ALT, | |
440 | wxACCEL_CTRL, | |
441 | wxACCEL_SHIFT, | |
f6bcfd97 | 442 | wxACCEL_NORMAL, |
bb0054cd RD |
443 | |
444 | wxPD_AUTO_HIDE, | |
445 | wxPD_APP_MODAL, | |
446 | wxPD_CAN_ABORT, | |
a08cbc01 RD |
447 | wxPD_ELAPSED_TIME, |
448 | wxPD_ESTIMATED_TIME, | |
449 | wxPD_REMAINING_TIME, | |
bb0054cd | 450 | |
8bf5d46e | 451 | wxMENU_TEAROFF, |
1afc06c2 | 452 | wxMB_DOCKABLE, |
8bf5d46e RD |
453 | wxNO_FULL_REPAINT_ON_RESIZE, |
454 | ||
1afc06c2 RD |
455 | wxLEFT, |
456 | wxRIGHT, | |
457 | wxUP, | |
458 | wxDOWN, | |
459 | wxALL, | |
460 | wxTOP, | |
461 | wxBOTTOM, | |
462 | ||
463 | wxNORTH, | |
464 | wxSOUTH, | |
465 | wxEAST, | |
466 | wxWEST, | |
467 | ||
468 | wxSTRETCH_NOT, | |
469 | wxSHRINK, | |
470 | wxGROW, | |
471 | wxEXPAND, | |
472 | ||
473 | wxNB_FIXEDWIDTH, | |
f0261a72 RD |
474 | wxNB_LEFT, |
475 | wxNB_RIGHT, | |
476 | wxNB_BOTTOM, | |
1afc06c2 RD |
477 | |
478 | wxLI_HORIZONTAL, | |
479 | wxLI_VERTICAL, | |
480 | ||
1afc06c2 RD |
481 | wxHW_SCROLLBAR_NEVER, |
482 | wxHW_SCROLLBAR_AUTO, | |
483 | ||
185d7c3e RD |
484 | wxJOYSTICK1, |
485 | wxJOYSTICK2, | |
486 | wxJOY_BUTTON1, | |
487 | wxJOY_BUTTON2, | |
488 | wxJOY_BUTTON3, | |
489 | wxJOY_BUTTON4, | |
490 | wxJOY_BUTTON_ANY, | |
491 | ||
d1679124 RD |
492 | wxWS_EX_VALIDATE_RECURSIVELY, |
493 | ||
7bf85405 RD |
494 | }; |
495 | ||
496 | ||
cf694132 RD |
497 | // // Standard error codes |
498 | // enum ErrCode | |
499 | // { | |
500 | // ERR_PARAM = (-4000), | |
501 | // ERR_NODATA, | |
502 | // ERR_CANCEL, | |
503 | // ERR_SUCCESS = 0 | |
504 | // }; | |
7bf85405 RD |
505 | |
506 | ||
507 | enum { | |
508 | wxDEFAULT , | |
509 | wxDECORATIVE, | |
510 | wxROMAN, | |
511 | wxSCRIPT, | |
512 | wxSWISS, | |
513 | wxMODERN, | |
514 | wxTELETYPE, | |
515 | wxVARIABLE, | |
516 | wxFIXED, | |
517 | wxNORMAL, | |
518 | wxLIGHT, | |
519 | wxBOLD, | |
520 | wxITALIC, | |
521 | wxSLANT, | |
522 | wxSOLID, | |
523 | wxDOT, | |
524 | wxLONG_DASH, | |
525 | wxSHORT_DASH, | |
526 | wxDOT_DASH, | |
527 | wxUSER_DASH, | |
528 | wxTRANSPARENT, | |
529 | wxSTIPPLE, | |
530 | wxBDIAGONAL_HATCH, | |
531 | wxCROSSDIAG_HATCH, | |
532 | wxFDIAGONAL_HATCH, | |
533 | wxCROSS_HATCH, | |
534 | wxHORIZONTAL_HATCH, | |
535 | wxVERTICAL_HATCH, | |
536 | wxJOIN_BEVEL, | |
537 | wxJOIN_MITER, | |
538 | wxJOIN_ROUND, | |
539 | wxCAP_ROUND, | |
540 | wxCAP_PROJECTING, | |
541 | wxCAP_BUTT | |
542 | }; | |
543 | ||
544 | typedef enum { | |
545 | wxCLEAR, // 0 | |
546 | wxXOR, // src XOR dst | |
547 | wxINVERT, // NOT dst | |
548 | wxOR_REVERSE, // src OR (NOT dst) | |
549 | wxAND_REVERSE,// src AND (NOT dst) | |
550 | wxCOPY, // src | |
551 | wxAND, // src AND dst | |
552 | wxAND_INVERT, // (NOT src) AND dst | |
553 | wxNO_OP, // dst | |
554 | wxNOR, // (NOT src) AND (NOT dst) | |
555 | wxEQUIV, // (NOT src) XOR dst | |
556 | wxSRC_INVERT, // (NOT src) | |
557 | wxOR_INVERT, // (NOT src) OR dst | |
558 | wxNAND, // (NOT src) OR (NOT dst) | |
559 | wxOR, // src OR dst | |
560 | wxSET, // 1 | |
26b9cf27 RD |
561 | // wxSRC_OR, // source _bitmap_ OR destination |
562 | // wxSRC_AND // source _bitmap_ AND destination | |
7bf85405 RD |
563 | } form_ops_t; |
564 | ||
565 | enum _Virtual_keycodes { | |
566 | WXK_BACK = 8, | |
567 | WXK_TAB = 9, | |
568 | WXK_RETURN = 13, | |
569 | WXK_ESCAPE = 27, | |
570 | WXK_SPACE = 32, | |
571 | WXK_DELETE = 127, | |
572 | ||
573 | WXK_START = 300, | |
574 | WXK_LBUTTON, | |
575 | WXK_RBUTTON, | |
576 | WXK_CANCEL, | |
577 | WXK_MBUTTON, | |
578 | WXK_CLEAR, | |
579 | WXK_SHIFT, | |
580 | WXK_CONTROL, | |
581 | WXK_MENU, | |
582 | WXK_PAUSE, | |
583 | WXK_CAPITAL, | |
584 | WXK_PRIOR, // Page up | |
585 | WXK_NEXT, // Page down | |
586 | WXK_END, | |
587 | WXK_HOME, | |
588 | WXK_LEFT, | |
589 | WXK_UP, | |
590 | WXK_RIGHT, | |
591 | WXK_DOWN, | |
592 | WXK_SELECT, | |
593 | WXK_PRINT, | |
594 | WXK_EXECUTE, | |
595 | WXK_SNAPSHOT, | |
596 | WXK_INSERT, | |
597 | WXK_HELP, | |
598 | WXK_NUMPAD0, | |
599 | WXK_NUMPAD1, | |
600 | WXK_NUMPAD2, | |
601 | WXK_NUMPAD3, | |
602 | WXK_NUMPAD4, | |
603 | WXK_NUMPAD5, | |
604 | WXK_NUMPAD6, | |
605 | WXK_NUMPAD7, | |
606 | WXK_NUMPAD8, | |
607 | WXK_NUMPAD9, | |
608 | WXK_MULTIPLY, | |
609 | WXK_ADD, | |
610 | WXK_SEPARATOR, | |
611 | WXK_SUBTRACT, | |
612 | WXK_DECIMAL, | |
613 | WXK_DIVIDE, | |
614 | WXK_F1, | |
615 | WXK_F2, | |
616 | WXK_F3, | |
617 | WXK_F4, | |
618 | WXK_F5, | |
619 | WXK_F6, | |
620 | WXK_F7, | |
621 | WXK_F8, | |
622 | WXK_F9, | |
623 | WXK_F10, | |
624 | WXK_F11, | |
625 | WXK_F12, | |
626 | WXK_F13, | |
627 | WXK_F14, | |
628 | WXK_F15, | |
629 | WXK_F16, | |
630 | WXK_F17, | |
631 | WXK_F18, | |
632 | WXK_F19, | |
633 | WXK_F20, | |
634 | WXK_F21, | |
635 | WXK_F22, | |
636 | WXK_F23, | |
637 | WXK_F24, | |
638 | WXK_NUMLOCK, | |
639 | WXK_SCROLL, | |
640 | WXK_PAGEUP, | |
641 | WXK_PAGEDOWN | |
642 | }; | |
643 | ||
0a651eb8 RD |
644 | |
645 | // Bitmap flags | |
646 | enum wxBitmapType | |
647 | { | |
648 | wxBITMAP_TYPE_INVALID, // should be == 0 for compatibility! | |
649 | wxBITMAP_TYPE_BMP, | |
650 | wxBITMAP_TYPE_BMP_RESOURCE, | |
651 | wxBITMAP_TYPE_RESOURCE = wxBITMAP_TYPE_BMP_RESOURCE, | |
652 | wxBITMAP_TYPE_ICO, | |
653 | wxBITMAP_TYPE_ICO_RESOURCE, | |
654 | wxBITMAP_TYPE_CUR, | |
655 | wxBITMAP_TYPE_CUR_RESOURCE, | |
656 | wxBITMAP_TYPE_XBM, | |
657 | wxBITMAP_TYPE_XBM_DATA, | |
658 | wxBITMAP_TYPE_XPM, | |
659 | wxBITMAP_TYPE_XPM_DATA, | |
660 | wxBITMAP_TYPE_TIF, | |
661 | wxBITMAP_TYPE_TIF_RESOURCE, | |
662 | wxBITMAP_TYPE_GIF, | |
663 | wxBITMAP_TYPE_GIF_RESOURCE, | |
664 | wxBITMAP_TYPE_PNG, | |
665 | wxBITMAP_TYPE_PNG_RESOURCE, | |
666 | wxBITMAP_TYPE_JPEG, | |
667 | wxBITMAP_TYPE_JPEG_RESOURCE, | |
668 | wxBITMAP_TYPE_PNM, | |
669 | wxBITMAP_TYPE_PNM_RESOURCE, | |
670 | wxBITMAP_TYPE_PCX, | |
671 | wxBITMAP_TYPE_PCX_RESOURCE, | |
672 | wxBITMAP_TYPE_PICT, | |
673 | wxBITMAP_TYPE_PICT_RESOURCE, | |
674 | wxBITMAP_TYPE_ICON, | |
675 | wxBITMAP_TYPE_ICON_RESOURCE, | |
676 | wxBITMAP_TYPE_MACCURSOR, | |
677 | wxBITMAP_TYPE_MACCURSOR_RESOURCE, | |
678 | wxBITMAP_TYPE_ANY = 50 | |
679 | }; | |
680 | ||
681 | ||
682 | ||
683 | ||
684 | // Standard cursors | |
685 | enum wxStockCursor | |
686 | { | |
687 | wxCURSOR_NONE, // should be 0 | |
688 | wxCURSOR_ARROW, | |
689 | wxCURSOR_BULLSEYE, | |
690 | wxCURSOR_CHAR, | |
691 | wxCURSOR_CROSS, | |
692 | wxCURSOR_HAND, | |
693 | wxCURSOR_IBEAM, | |
694 | wxCURSOR_LEFT_BUTTON, | |
695 | wxCURSOR_MAGNIFIER, | |
696 | wxCURSOR_MIDDLE_BUTTON, | |
697 | wxCURSOR_NO_ENTRY, | |
698 | wxCURSOR_PAINT_BRUSH, | |
699 | wxCURSOR_PENCIL, | |
700 | wxCURSOR_POINT_LEFT, | |
701 | wxCURSOR_POINT_RIGHT, | |
702 | wxCURSOR_QUESTION_ARROW, | |
703 | wxCURSOR_RIGHT_BUTTON, | |
704 | wxCURSOR_SIZENESW, | |
705 | wxCURSOR_SIZENS, | |
706 | wxCURSOR_SIZENWSE, | |
707 | wxCURSOR_SIZEWE, | |
708 | wxCURSOR_SIZING, | |
709 | wxCURSOR_SPRAYCAN, | |
710 | wxCURSOR_WAIT, | |
711 | wxCURSOR_WATCH, | |
712 | wxCURSOR_BLANK, | |
713 | wxCURSOR_DEFAULT, | |
714 | // // Not yet implemented for Windows | |
715 | // wxCURSOR_CROSS_REVERSE, | |
716 | // wxCURSOR_DOUBLE_ARROW, | |
717 | // wxCURSOR_BASED_ARROW_UP, | |
718 | // wxCURSOR_BASED_ARROW_DOWN, | |
719 | ||
720 | wxCURSOR_ARROWWAIT, | |
721 | wxCURSOR_MAX | |
722 | }; | |
7bf85405 RD |
723 | |
724 | ||
cf694132 RD |
725 | |
726 | typedef enum { | |
727 | wxPAPER_NONE, // Use specific dimensions | |
728 | wxPAPER_LETTER, // Letter, 8 1/2 by 11 inches | |
729 | wxPAPER_LEGAL, // Legal, 8 1/2 by 14 inches | |
730 | wxPAPER_A4, // A4 Sheet, 210 by 297 millimeters | |
731 | wxPAPER_CSHEET, // C Sheet, 17 by 22 inches | |
732 | wxPAPER_DSHEET, // D Sheet, 22 by 34 inches | |
733 | wxPAPER_ESHEET, // E Sheet, 34 by 44 inches | |
734 | wxPAPER_LETTERSMALL, // Letter Small, 8 1/2 by 11 inches | |
735 | wxPAPER_TABLOID, // Tabloid, 11 by 17 inches | |
736 | wxPAPER_LEDGER, // Ledger, 17 by 11 inches | |
737 | wxPAPER_STATEMENT, // Statement, 5 1/2 by 8 1/2 inches | |
738 | wxPAPER_EXECUTIVE, // Executive, 7 1/4 by 10 1/2 inches | |
739 | wxPAPER_A3, // A3 sheet, 297 by 420 millimeters | |
740 | wxPAPER_A4SMALL, // A4 small sheet, 210 by 297 millimeters | |
741 | wxPAPER_A5, // A5 sheet, 148 by 210 millimeters | |
742 | wxPAPER_B4, // B4 sheet, 250 by 354 millimeters | |
743 | wxPAPER_B5, // B5 sheet, 182-by-257-millimeter paper | |
744 | wxPAPER_FOLIO, // Folio, 8-1/2-by-13-inch paper | |
745 | wxPAPER_QUARTO, // Quarto, 215-by-275-millimeter paper | |
746 | wxPAPER_10X14, // 10-by-14-inch sheet | |
747 | wxPAPER_11X17, // 11-by-17-inch sheet | |
748 | wxPAPER_NOTE, // Note, 8 1/2 by 11 inches | |
749 | wxPAPER_ENV_9, // #9 Envelope, 3 7/8 by 8 7/8 inches | |
750 | wxPAPER_ENV_10, // #10 Envelope, 4 1/8 by 9 1/2 inches | |
751 | wxPAPER_ENV_11, // #11 Envelope, 4 1/2 by 10 3/8 inches | |
752 | wxPAPER_ENV_12, // #12 Envelope, 4 3/4 by 11 inches | |
753 | wxPAPER_ENV_14, // #14 Envelope, 5 by 11 1/2 inches | |
754 | wxPAPER_ENV_DL, // DL Envelope, 110 by 220 millimeters | |
755 | wxPAPER_ENV_C5, // C5 Envelope, 162 by 229 millimeters | |
756 | wxPAPER_ENV_C3, // C3 Envelope, 324 by 458 millimeters | |
757 | wxPAPER_ENV_C4, // C4 Envelope, 229 by 324 millimeters | |
758 | wxPAPER_ENV_C6, // C6 Envelope, 114 by 162 millimeters | |
759 | wxPAPER_ENV_C65, // C65 Envelope, 114 by 229 millimeters | |
760 | wxPAPER_ENV_B4, // B4 Envelope, 250 by 353 millimeters | |
761 | wxPAPER_ENV_B5, // B5 Envelope, 176 by 250 millimeters | |
762 | wxPAPER_ENV_B6, // B6 Envelope, 176 by 125 millimeters | |
763 | wxPAPER_ENV_ITALY, // Italy Envelope, 110 by 230 millimeters | |
764 | wxPAPER_ENV_MONARCH, // Monarch Envelope, 3 7/8 by 7 1/2 inches | |
765 | wxPAPER_ENV_PERSONAL, // 6 3/4 Envelope, 3 5/8 by 6 1/2 inches | |
766 | wxPAPER_FANFOLD_US, // US Std Fanfold, 14 7/8 by 11 inches | |
767 | wxPAPER_FANFOLD_STD_GERMAN, // German Std Fanfold, 8 1/2 by 12 inches | |
768 | wxPAPER_FANFOLD_LGL_GERMAN, // German Legal Fanfold, 8 1/2 by 13 inches | |
769 | ||
770 | wxPAPER_ISO_B4, // B4 (ISO) 250 x 353 mm | |
771 | wxPAPER_JAPANESE_POSTCARD, // Japanese Postcard 100 x 148 mm | |
772 | wxPAPER_9X11, // 9 x 11 in | |
773 | wxPAPER_10X11, // 10 x 11 in | |
774 | wxPAPER_15X11, // 15 x 11 in | |
775 | wxPAPER_ENV_INVITE, // Envelope Invite 220 x 220 mm | |
776 | wxPAPER_LETTER_EXTRA, // Letter Extra 9 \275 x 12 in | |
777 | wxPAPER_LEGAL_EXTRA, // Legal Extra 9 \275 x 15 in | |
778 | wxPAPER_TABLOID_EXTRA, // Tabloid Extra 11.69 x 18 in | |
779 | wxPAPER_A4_EXTRA, // A4 Extra 9.27 x 12.69 in | |
780 | wxPAPER_LETTER_TRANSVERSE, // Letter Transverse 8 \275 x 11 in | |
781 | wxPAPER_A4_TRANSVERSE, // A4 Transverse 210 x 297 mm | |
782 | wxPAPER_LETTER_EXTRA_TRANSVERSE, // Letter Extra Transverse 9\275 x 12 in | |
783 | wxPAPER_A_PLUS, // SuperA/SuperA/A4 227 x 356 mm | |
784 | wxPAPER_B_PLUS, // SuperB/SuperB/A3 305 x 487 mm | |
785 | wxPAPER_LETTER_PLUS, // Letter Plus 8.5 x 12.69 in | |
786 | wxPAPER_A4_PLUS, // A4 Plus 210 x 330 mm | |
787 | wxPAPER_A5_TRANSVERSE, // A5 Transverse 148 x 210 mm | |
788 | wxPAPER_B5_TRANSVERSE, // B5 (JIS) Transverse 182 x 257 mm | |
789 | wxPAPER_A3_EXTRA, // A3 Extra 322 x 445 mm | |
790 | wxPAPER_A5_EXTRA, // A5 Extra 174 x 235 mm | |
791 | wxPAPER_B5_EXTRA, // B5 (ISO) Extra 201 x 276 mm | |
792 | wxPAPER_A2, // A2 420 x 594 mm | |
793 | wxPAPER_A3_TRANSVERSE, // A3 Transverse 297 x 420 mm | |
794 | wxPAPER_A3_EXTRA_TRANSVERSE // A3 Extra Transverse 322 x 445 mm | |
795 | ||
796 | } wxPaperSize ; | |
797 | ||
bb0054cd RD |
798 | typedef enum { |
799 | wxDUPLEX_SIMPLEX, // Non-duplex | |
800 | wxDUPLEX_HORIZONTAL, | |
801 | wxDUPLEX_VERTICAL | |
802 | } wxDuplexMode; | |
803 | ||
cf694132 RD |
804 | |
805 | ||
7bf85405 RD |
806 | #define FALSE 0 |
807 | #define false 0 | |
808 | #define TRUE 1 | |
809 | #define true 1 | |
810 | ||
af309447 | 811 | const char* wxVERSION_STRING; |
7bf85405 RD |
812 | |
813 | //--------------------------------------------------------------------------- | |
814 | //--------------------------------------------------------------------------- | |
815 | ||
816 | /* | |
817 | * Event types | |
818 | * | |
819 | */ | |
820 | enum wxEventType { | |
821 | wxEVT_NULL = 0, | |
822 | wxEVT_FIRST = 10000, | |
823 | ||
824 | // New names | |
825 | wxEVT_COMMAND_BUTTON_CLICKED, | |
826 | wxEVT_COMMAND_CHECKBOX_CLICKED, | |
827 | wxEVT_COMMAND_CHOICE_SELECTED, | |
828 | wxEVT_COMMAND_LISTBOX_SELECTED, | |
829 | wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, | |
830 | wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, | |
3af4e610 | 831 | wxEVT_COMMAND_SPINCTRL_UPDATED, |
7bf85405 RD |
832 | wxEVT_COMMAND_TEXT_UPDATED, |
833 | wxEVT_COMMAND_TEXT_ENTER, | |
834 | wxEVT_COMMAND_MENU_SELECTED, | |
835 | wxEVT_COMMAND_SLIDER_UPDATED, | |
836 | wxEVT_COMMAND_RADIOBOX_SELECTED, | |
837 | wxEVT_COMMAND_RADIOBUTTON_SELECTED, | |
838 | // wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events | |
839 | wxEVT_COMMAND_SCROLLBAR_UPDATED, | |
840 | wxEVT_COMMAND_VLBOX_SELECTED, | |
841 | wxEVT_COMMAND_COMBOBOX_SELECTED, | |
842 | wxEVT_COMMAND_TOOL_CLICKED, | |
843 | wxEVT_COMMAND_TOOL_RCLICKED, | |
844 | wxEVT_COMMAND_TOOL_ENTER, | |
845 | wxEVT_SET_FOCUS, | |
846 | wxEVT_KILL_FOCUS, | |
d1679124 | 847 | wxEVT_MOUSEWHEEL, |
7bf85405 RD |
848 | |
849 | /* Mouse event types */ | |
850 | wxEVT_LEFT_DOWN, | |
851 | wxEVT_LEFT_UP, | |
852 | wxEVT_MIDDLE_DOWN, | |
853 | wxEVT_MIDDLE_UP, | |
854 | wxEVT_RIGHT_DOWN, | |
855 | wxEVT_RIGHT_UP, | |
856 | wxEVT_MOTION, | |
857 | wxEVT_ENTER_WINDOW, | |
858 | wxEVT_LEAVE_WINDOW, | |
859 | wxEVT_LEFT_DCLICK, | |
860 | wxEVT_MIDDLE_DCLICK, | |
861 | wxEVT_RIGHT_DCLICK, | |
862 | ||
863 | // Non-client mouse events | |
d1679124 | 864 | wxEVT_NC_LEFT_DOWN, |
7bf85405 RD |
865 | wxEVT_NC_LEFT_UP, |
866 | wxEVT_NC_MIDDLE_DOWN, | |
867 | wxEVT_NC_MIDDLE_UP, | |
868 | wxEVT_NC_RIGHT_DOWN, | |
869 | wxEVT_NC_RIGHT_UP, | |
870 | wxEVT_NC_MOTION, | |
871 | wxEVT_NC_ENTER_WINDOW, | |
872 | wxEVT_NC_LEAVE_WINDOW, | |
873 | wxEVT_NC_LEFT_DCLICK, | |
874 | wxEVT_NC_MIDDLE_DCLICK, | |
875 | wxEVT_NC_RIGHT_DCLICK, | |
876 | ||
877 | /* Character input event type */ | |
878 | wxEVT_CHAR, | |
8bf5d46e RD |
879 | wxEVT_KEY_DOWN, |
880 | wxEVT_KEY_UP, | |
881 | wxEVT_CHAR_HOOK, | |
7bf85405 RD |
882 | |
883 | /* | |
884 | * Scrollbar event identifiers | |
885 | */ | |
886 | wxEVT_SCROLL_TOP, | |
887 | wxEVT_SCROLL_BOTTOM, | |
888 | wxEVT_SCROLL_LINEUP, | |
889 | wxEVT_SCROLL_LINEDOWN, | |
890 | wxEVT_SCROLL_PAGEUP, | |
891 | wxEVT_SCROLL_PAGEDOWN, | |
892 | wxEVT_SCROLL_THUMBTRACK, | |
26b9cf27 | 893 | wxEVT_SCROLL_THUMBRELEASE, |
7bf85405 | 894 | |
bb0054cd RD |
895 | /* |
896 | * Scrolled Window | |
897 | */ | |
898 | wxEVT_SCROLLWIN_TOP, | |
899 | wxEVT_SCROLLWIN_BOTTOM, | |
900 | wxEVT_SCROLLWIN_LINEUP, | |
901 | wxEVT_SCROLLWIN_LINEDOWN, | |
902 | wxEVT_SCROLLWIN_PAGEUP, | |
903 | wxEVT_SCROLLWIN_PAGEDOWN, | |
904 | wxEVT_SCROLLWIN_THUMBTRACK, | |
26b9cf27 | 905 | wxEVT_SCROLLWIN_THUMBRELEASE, |
bb0054cd | 906 | |
7bf85405 RD |
907 | wxEVT_SIZE = wxEVT_FIRST + 200, |
908 | wxEVT_MOVE, | |
909 | wxEVT_CLOSE_WINDOW, | |
910 | wxEVT_END_SESSION, | |
911 | wxEVT_QUERY_END_SESSION, | |
912 | wxEVT_ACTIVATE_APP, | |
913 | wxEVT_POWER, | |
7bf85405 RD |
914 | wxEVT_ACTIVATE, |
915 | wxEVT_CREATE, | |
916 | wxEVT_DESTROY, | |
917 | wxEVT_SHOW, | |
918 | wxEVT_ICONIZE, | |
919 | wxEVT_MAXIMIZE, | |
920 | wxEVT_MOUSE_CAPTURE_CHANGED, | |
921 | wxEVT_PAINT, | |
922 | wxEVT_ERASE_BACKGROUND, | |
923 | wxEVT_NC_PAINT, | |
924 | wxEVT_PAINT_ICON, | |
925 | wxEVT_MENU_CHAR, | |
926 | wxEVT_MENU_INIT, | |
927 | wxEVT_MENU_HIGHLIGHT, | |
928 | wxEVT_POPUP_MENU_INIT, | |
929 | wxEVT_CONTEXT_MENU, | |
930 | wxEVT_SYS_COLOUR_CHANGED, | |
931 | wxEVT_SETTING_CHANGED, | |
932 | wxEVT_QUERY_NEW_PALETTE, | |
933 | wxEVT_PALETTE_CHANGED, | |
934 | wxEVT_JOY_BUTTON_DOWN, | |
935 | wxEVT_JOY_BUTTON_UP, | |
936 | wxEVT_JOY_MOVE, | |
937 | wxEVT_JOY_ZMOVE, | |
938 | wxEVT_DROP_FILES, | |
939 | wxEVT_DRAW_ITEM, | |
940 | wxEVT_MEASURE_ITEM, | |
941 | wxEVT_COMPARE_ITEM, | |
942 | wxEVT_INIT_DIALOG, | |
9416aa89 RD |
943 | wxEVT_HELP, |
944 | wxEVT_DETAILED_HELP, | |
7bf85405 RD |
945 | wxEVT_IDLE, |
946 | wxEVT_UPDATE_UI, | |
947 | ||
bb0054cd | 948 | |
7bf85405 RD |
949 | /* Generic command events */ |
950 | // Note: a click is a higher-level event | |
951 | // than button down/up | |
952 | wxEVT_COMMAND_LEFT_CLICK, | |
953 | wxEVT_COMMAND_LEFT_DCLICK, | |
954 | wxEVT_COMMAND_RIGHT_CLICK, | |
955 | wxEVT_COMMAND_RIGHT_DCLICK, | |
956 | wxEVT_COMMAND_SET_FOCUS, | |
957 | wxEVT_COMMAND_KILL_FOCUS, | |
958 | wxEVT_COMMAND_ENTER, | |
959 | ||
2f90df85 RD |
960 | wxEVT_NAVIGATION_KEY, |
961 | ||
f6bcfd97 BP |
962 | wxEVT_TIMER, |
963 | ||
7bf85405 RD |
964 | }; |
965 | ||
966 | ||
967 | ||
968 | ||
bb0054cd | 969 | //---------------------------------------------------------------------- |