]>
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, | |
215 | wxDEFAULT_FRAME_STYLE, | |
216 | wxDEFAULT_DIALOG_STYLE, | |
b8b8dda7 RD |
217 | |
218 | wxFRAME_TOOL_WINDOW, | |
bb0054cd | 219 | wxFRAME_FLOAT_ON_PARENT, |
4c9993c3 | 220 | wxFRAME_NO_WINDOW_MENU, |
1b62f00d RD |
221 | wxFRAME_NO_TASKBAR, |
222 | wxFRAME_EX_CONTEXTHELP, | |
1afc06c2 RD |
223 | wxED_CLIENT_MARGIN, |
224 | wxED_BUTTONS_BOTTOM, | |
225 | wxED_BUTTONS_RIGHT, | |
226 | wxED_STATIC_LINE, | |
227 | wxEXT_DIALOG_STYLE, | |
bb0054cd | 228 | |
08127323 | 229 | wxCLIP_CHILDREN, |
b8b8dda7 | 230 | |
7bf85405 RD |
231 | wxRETAINED, |
232 | wxBACKINGSTORE, | |
233 | wxTB_3DBUTTONS, | |
234 | wxTB_HORIZONTAL, | |
235 | wxTB_VERTICAL, | |
9c039d08 | 236 | wxTB_FLAT, |
f0261a72 | 237 | wxTB_DOCKABLE, |
7bf85405 RD |
238 | wxCOLOURED, |
239 | wxFIXED_LENGTH, | |
240 | wxALIGN_LEFT, | |
be2577e4 RD |
241 | wxALIGN_CENTER_HORIZONTAL, |
242 | wxALIGN_CENTRE_HORIZONTAL, | |
7bf85405 | 243 | wxALIGN_RIGHT, |
2f90df85 | 244 | wxALIGN_BOTTOM, |
be2577e4 RD |
245 | wxALIGN_CENTER_VERTICAL, |
246 | wxALIGN_CENTRE_VERTICAL, | |
2f90df85 | 247 | wxALIGN_TOP, |
be2577e4 RD |
248 | wxALIGN_CENTER, |
249 | wxALIGN_CENTRE, | |
250 | wxSHAPED, | |
1b62f00d RD |
251 | wxADJUST_MINSIZE, |
252 | ||
7bf85405 RD |
253 | wxLB_NEEDED_SB, |
254 | wxLB_ALWAYS_SB, | |
255 | wxLB_SORT, | |
256 | wxLB_SINGLE, | |
257 | wxLB_MULTIPLE, | |
258 | wxLB_EXTENDED, | |
259 | wxLB_OWNERDRAW, | |
260 | wxLB_HSCROLL, | |
261 | wxPROCESS_ENTER, | |
262 | wxPASSWORD, | |
263 | wxTE_PROCESS_ENTER, | |
f6bcfd97 | 264 | wxTE_PROCESS_TAB, |
7bf85405 RD |
265 | wxTE_PASSWORD, |
266 | wxTE_READONLY, | |
8bf5d46e | 267 | wxTE_RICH, |
7bf85405 | 268 | wxTE_MULTILINE, |
06c0fba4 RD |
269 | wxTE_AUTO_SCROLL, |
270 | wxTE_NO_VSCROLL, | |
7bf85405 RD |
271 | wxCB_SIMPLE, |
272 | wxCB_DROPDOWN, | |
273 | wxCB_SORT, | |
274 | wxCB_READONLY, | |
275 | wxRA_HORIZONTAL, | |
276 | wxRA_VERTICAL, | |
ed175610 RD |
277 | wxRA_SPECIFY_ROWS, |
278 | wxRA_SPECIFY_COLS, | |
7bf85405 RD |
279 | wxRB_GROUP, |
280 | wxGA_PROGRESSBAR, | |
281 | wxGA_HORIZONTAL, | |
282 | wxGA_VERTICAL, | |
bb0054cd | 283 | wxGA_SMOOTH, |
7bf85405 RD |
284 | wxSL_HORIZONTAL, |
285 | wxSL_VERTICAL, | |
286 | wxSL_AUTOTICKS, | |
287 | wxSL_LABELS, | |
288 | wxSL_LEFT, | |
289 | wxSL_TOP, | |
290 | wxSL_RIGHT, | |
291 | wxSL_BOTTOM, | |
292 | wxSL_BOTH, | |
293 | wxSL_SELRANGE, | |
294 | wxSB_HORIZONTAL, | |
295 | wxSB_VERTICAL, | |
cf694132 | 296 | wxST_SIZEGRIP, |
2abc0a0f | 297 | wxST_NO_AUTORESIZE, |
7bf85405 RD |
298 | wxBU_AUTODRAW, |
299 | wxBU_NOAUTODRAW, | |
300 | wxTR_HAS_BUTTONS, | |
301 | wxTR_EDIT_LABELS, | |
d5c9047a | 302 | wxTR_LINES_AT_ROOT, |
8bf5d46e | 303 | wxTR_MULTIPLE, |
1afc06c2 | 304 | wxTR_SINGLE, |
8bf5d46e | 305 | wxTR_HAS_VARIABLE_ROW_HEIGHT, |
7bf85405 RD |
306 | wxLC_ICON, |
307 | wxLC_SMALL_ICON, | |
308 | wxLC_LIST, | |
309 | wxLC_REPORT, | |
310 | wxLC_ALIGN_TOP, | |
311 | wxLC_ALIGN_LEFT, | |
312 | wxLC_AUTOARRANGE, | |
313 | wxLC_USER_TEXT, | |
314 | wxLC_EDIT_LABELS, | |
315 | wxLC_NO_HEADER, | |
316 | wxLC_NO_SORT_HEADER, | |
317 | wxLC_SINGLE_SEL, | |
318 | wxLC_SORT_ASCENDING, | |
319 | wxLC_SORT_DESCENDING, | |
320 | wxLC_MASK_TYPE, | |
321 | wxLC_MASK_ALIGN, | |
322 | wxLC_MASK_SORT, | |
1b62f00d RD |
323 | wxLC_HRULES, |
324 | wxLC_VRULES, | |
7bf85405 RD |
325 | wxSP_VERTICAL, |
326 | wxSP_HORIZONTAL, | |
327 | wxSP_ARROW_KEYS, | |
328 | wxSP_WRAP, | |
329 | wxSP_NOBORDER, | |
330 | wxSP_3D, | |
1b62f00d RD |
331 | wxSP_3DSASH, |
332 | wxSP_3DBORDER, | |
333 | wxSP_FULLSASH, | |
7bf85405 | 334 | wxSP_BORDER, |
1dec68aa RD |
335 | wxSP_LIVE_UPDATE, |
336 | wxSP_PERMIT_UNSPLIT, | |
7bf85405 RD |
337 | wxFLOOD_SURFACE, |
338 | wxFLOOD_BORDER, | |
339 | wxODDEVEN_RULE, | |
340 | wxWINDING_RULE, | |
341 | wxTOOL_TOP, | |
342 | wxTOOL_BOTTOM, | |
343 | wxTOOL_LEFT, | |
344 | wxTOOL_RIGHT, | |
345 | wxOK, | |
346 | wxYES_NO, | |
347 | wxCANCEL, | |
348 | wxYES, | |
349 | wxNO, | |
1afc06c2 RD |
350 | wxNO_DEFAULT, |
351 | wxYES_DEFAULT, | |
7bf85405 RD |
352 | wxICON_EXCLAMATION, |
353 | wxICON_HAND, | |
354 | wxICON_QUESTION, | |
355 | wxICON_INFORMATION, | |
356 | wxICON_STOP, | |
357 | wxICON_ASTERISK, | |
358 | wxICON_MASK, | |
1afc06c2 RD |
359 | wxICON_WARNING, |
360 | wxICON_ERROR, | |
361 | ||
362 | wxFORWARD, | |
363 | wxBACKWARD, | |
364 | wxRESET, | |
365 | wxHELP, | |
366 | wxMORE, | |
367 | wxSETUP, | |
368 | ||
7bf85405 RD |
369 | wxCENTRE, |
370 | wxCENTER, | |
371 | wxSIZE_AUTO_WIDTH, | |
372 | wxSIZE_AUTO_HEIGHT, | |
373 | wxSIZE_AUTO, | |
374 | wxSIZE_USE_EXISTING, | |
375 | wxSIZE_ALLOW_MINUS_ONE, | |
7bf85405 RD |
376 | wxPORTRAIT, |
377 | wxLANDSCAPE, | |
bb0054cd RD |
378 | wxPRINT_QUALITY_HIGH, |
379 | wxPRINT_QUALITY_MEDIUM, | |
380 | wxPRINT_QUALITY_LOW, | |
381 | wxPRINT_QUALITY_DRAFT, | |
7bf85405 RD |
382 | wxID_OPEN, |
383 | wxID_CLOSE, | |
384 | wxID_NEW, | |
385 | wxID_SAVE, | |
386 | wxID_SAVEAS, | |
387 | wxID_REVERT, | |
388 | wxID_EXIT, | |
389 | wxID_UNDO, | |
390 | wxID_REDO, | |
391 | wxID_HELP, | |
392 | wxID_PRINT, | |
393 | wxID_PRINT_SETUP, | |
394 | wxID_PREVIEW, | |
395 | wxID_ABOUT, | |
396 | wxID_HELP_CONTENTS, | |
397 | wxID_HELP_COMMANDS, | |
398 | wxID_HELP_PROCEDURES, | |
399 | wxID_HELP_CONTEXT, | |
400 | wxID_CUT, | |
401 | wxID_COPY, | |
402 | wxID_PASTE, | |
403 | wxID_CLEAR, | |
404 | wxID_FIND, | |
405 | wxID_FILE1, | |
406 | wxID_FILE2, | |
407 | wxID_FILE3, | |
408 | wxID_FILE4, | |
409 | wxID_FILE5, | |
410 | wxID_FILE6, | |
411 | wxID_FILE7, | |
412 | wxID_FILE8, | |
413 | wxID_FILE9, | |
414 | wxID_OK, | |
415 | wxID_CANCEL, | |
416 | wxID_APPLY, | |
417 | wxID_YES, | |
418 | wxID_NO, | |
cf694132 | 419 | wxID_STATIC, |
4c9993c3 | 420 | wxID_SEPARATOR, |
1afc06c2 | 421 | |
7bf85405 RD |
422 | wxBITMAP_TYPE_BMP, |
423 | wxBITMAP_TYPE_BMP_RESOURCE, | |
424 | wxBITMAP_TYPE_ICO, | |
425 | wxBITMAP_TYPE_ICO_RESOURCE, | |
426 | wxBITMAP_TYPE_CUR, | |
427 | wxBITMAP_TYPE_CUR_RESOURCE, | |
428 | wxBITMAP_TYPE_XBM, | |
429 | wxBITMAP_TYPE_XBM_DATA, | |
430 | wxBITMAP_TYPE_XPM, | |
431 | wxBITMAP_TYPE_XPM_DATA, | |
432 | wxBITMAP_TYPE_TIF, | |
433 | wxBITMAP_TYPE_TIF_RESOURCE, | |
434 | wxBITMAP_TYPE_GIF, | |
435 | wxBITMAP_TYPE_GIF_RESOURCE, | |
436 | wxBITMAP_TYPE_PNG, | |
437 | wxBITMAP_TYPE_PNG_RESOURCE, | |
438 | wxBITMAP_TYPE_ANY, | |
439 | wxBITMAP_TYPE_RESOURCE, | |
cf694132 | 440 | wxBITMAP_TYPE_JPEG, |
9b3d3bc4 | 441 | wxBITMAP_TYPE_PCX, |
7bf85405 RD |
442 | |
443 | wxOPEN, | |
444 | wxSAVE, | |
445 | wxHIDE_READONLY, | |
446 | wxOVERWRITE_PROMPT, | |
2abc0a0f | 447 | wxFILE_MUST_EXIST, |
f6bcfd97 | 448 | wxMULTIPLE, |
1b62f00d | 449 | wxCHANGE_DIR, |
7bf85405 RD |
450 | |
451 | wxACCEL_ALT, | |
452 | wxACCEL_CTRL, | |
453 | wxACCEL_SHIFT, | |
f6bcfd97 | 454 | wxACCEL_NORMAL, |
bb0054cd RD |
455 | |
456 | wxPD_AUTO_HIDE, | |
457 | wxPD_APP_MODAL, | |
458 | wxPD_CAN_ABORT, | |
a08cbc01 RD |
459 | wxPD_ELAPSED_TIME, |
460 | wxPD_ESTIMATED_TIME, | |
461 | wxPD_REMAINING_TIME, | |
bb0054cd | 462 | |
8bf5d46e | 463 | wxMENU_TEAROFF, |
1afc06c2 | 464 | wxMB_DOCKABLE, |
8bf5d46e RD |
465 | wxNO_FULL_REPAINT_ON_RESIZE, |
466 | ||
1afc06c2 RD |
467 | wxLEFT, |
468 | wxRIGHT, | |
469 | wxUP, | |
470 | wxDOWN, | |
471 | wxALL, | |
472 | wxTOP, | |
473 | wxBOTTOM, | |
474 | ||
475 | wxNORTH, | |
476 | wxSOUTH, | |
477 | wxEAST, | |
478 | wxWEST, | |
479 | ||
480 | wxSTRETCH_NOT, | |
481 | wxSHRINK, | |
482 | wxGROW, | |
483 | wxEXPAND, | |
484 | ||
485 | wxNB_FIXEDWIDTH, | |
f0261a72 RD |
486 | wxNB_LEFT, |
487 | wxNB_RIGHT, | |
488 | wxNB_BOTTOM, | |
1afc06c2 RD |
489 | |
490 | wxLI_HORIZONTAL, | |
491 | wxLI_VERTICAL, | |
492 | ||
1afc06c2 RD |
493 | wxHW_SCROLLBAR_NEVER, |
494 | wxHW_SCROLLBAR_AUTO, | |
495 | ||
185d7c3e RD |
496 | wxJOYSTICK1, |
497 | wxJOYSTICK2, | |
498 | wxJOY_BUTTON1, | |
499 | wxJOY_BUTTON2, | |
500 | wxJOY_BUTTON3, | |
501 | wxJOY_BUTTON4, | |
502 | wxJOY_BUTTON_ANY, | |
503 | ||
7bf85405 RD |
504 | }; |
505 | ||
506 | ||
cf694132 RD |
507 | // // Standard error codes |
508 | // enum ErrCode | |
509 | // { | |
510 | // ERR_PARAM = (-4000), | |
511 | // ERR_NODATA, | |
512 | // ERR_CANCEL, | |
513 | // ERR_SUCCESS = 0 | |
514 | // }; | |
7bf85405 RD |
515 | |
516 | ||
517 | enum { | |
518 | wxDEFAULT , | |
519 | wxDECORATIVE, | |
520 | wxROMAN, | |
521 | wxSCRIPT, | |
522 | wxSWISS, | |
523 | wxMODERN, | |
524 | wxTELETYPE, | |
525 | wxVARIABLE, | |
526 | wxFIXED, | |
527 | wxNORMAL, | |
528 | wxLIGHT, | |
529 | wxBOLD, | |
530 | wxITALIC, | |
531 | wxSLANT, | |
532 | wxSOLID, | |
533 | wxDOT, | |
534 | wxLONG_DASH, | |
535 | wxSHORT_DASH, | |
536 | wxDOT_DASH, | |
537 | wxUSER_DASH, | |
538 | wxTRANSPARENT, | |
539 | wxSTIPPLE, | |
540 | wxBDIAGONAL_HATCH, | |
541 | wxCROSSDIAG_HATCH, | |
542 | wxFDIAGONAL_HATCH, | |
543 | wxCROSS_HATCH, | |
544 | wxHORIZONTAL_HATCH, | |
545 | wxVERTICAL_HATCH, | |
546 | wxJOIN_BEVEL, | |
547 | wxJOIN_MITER, | |
548 | wxJOIN_ROUND, | |
549 | wxCAP_ROUND, | |
550 | wxCAP_PROJECTING, | |
551 | wxCAP_BUTT | |
552 | }; | |
553 | ||
554 | typedef enum { | |
555 | wxCLEAR, // 0 | |
556 | wxXOR, // src XOR dst | |
557 | wxINVERT, // NOT dst | |
558 | wxOR_REVERSE, // src OR (NOT dst) | |
559 | wxAND_REVERSE,// src AND (NOT dst) | |
560 | wxCOPY, // src | |
561 | wxAND, // src AND dst | |
562 | wxAND_INVERT, // (NOT src) AND dst | |
563 | wxNO_OP, // dst | |
564 | wxNOR, // (NOT src) AND (NOT dst) | |
565 | wxEQUIV, // (NOT src) XOR dst | |
566 | wxSRC_INVERT, // (NOT src) | |
567 | wxOR_INVERT, // (NOT src) OR dst | |
568 | wxNAND, // (NOT src) OR (NOT dst) | |
569 | wxOR, // src OR dst | |
570 | wxSET, // 1 | |
26b9cf27 RD |
571 | // wxSRC_OR, // source _bitmap_ OR destination |
572 | // wxSRC_AND // source _bitmap_ AND destination | |
7bf85405 RD |
573 | } form_ops_t; |
574 | ||
575 | enum _Virtual_keycodes { | |
576 | WXK_BACK = 8, | |
577 | WXK_TAB = 9, | |
578 | WXK_RETURN = 13, | |
579 | WXK_ESCAPE = 27, | |
580 | WXK_SPACE = 32, | |
581 | WXK_DELETE = 127, | |
582 | ||
583 | WXK_START = 300, | |
584 | WXK_LBUTTON, | |
585 | WXK_RBUTTON, | |
586 | WXK_CANCEL, | |
587 | WXK_MBUTTON, | |
588 | WXK_CLEAR, | |
589 | WXK_SHIFT, | |
590 | WXK_CONTROL, | |
591 | WXK_MENU, | |
592 | WXK_PAUSE, | |
593 | WXK_CAPITAL, | |
594 | WXK_PRIOR, // Page up | |
595 | WXK_NEXT, // Page down | |
596 | WXK_END, | |
597 | WXK_HOME, | |
598 | WXK_LEFT, | |
599 | WXK_UP, | |
600 | WXK_RIGHT, | |
601 | WXK_DOWN, | |
602 | WXK_SELECT, | |
603 | WXK_PRINT, | |
604 | WXK_EXECUTE, | |
605 | WXK_SNAPSHOT, | |
606 | WXK_INSERT, | |
607 | WXK_HELP, | |
608 | WXK_NUMPAD0, | |
609 | WXK_NUMPAD1, | |
610 | WXK_NUMPAD2, | |
611 | WXK_NUMPAD3, | |
612 | WXK_NUMPAD4, | |
613 | WXK_NUMPAD5, | |
614 | WXK_NUMPAD6, | |
615 | WXK_NUMPAD7, | |
616 | WXK_NUMPAD8, | |
617 | WXK_NUMPAD9, | |
618 | WXK_MULTIPLY, | |
619 | WXK_ADD, | |
620 | WXK_SEPARATOR, | |
621 | WXK_SUBTRACT, | |
622 | WXK_DECIMAL, | |
623 | WXK_DIVIDE, | |
624 | WXK_F1, | |
625 | WXK_F2, | |
626 | WXK_F3, | |
627 | WXK_F4, | |
628 | WXK_F5, | |
629 | WXK_F6, | |
630 | WXK_F7, | |
631 | WXK_F8, | |
632 | WXK_F9, | |
633 | WXK_F10, | |
634 | WXK_F11, | |
635 | WXK_F12, | |
636 | WXK_F13, | |
637 | WXK_F14, | |
638 | WXK_F15, | |
639 | WXK_F16, | |
640 | WXK_F17, | |
641 | WXK_F18, | |
642 | WXK_F19, | |
643 | WXK_F20, | |
644 | WXK_F21, | |
645 | WXK_F22, | |
646 | WXK_F23, | |
647 | WXK_F24, | |
648 | WXK_NUMLOCK, | |
649 | WXK_SCROLL, | |
650 | WXK_PAGEUP, | |
651 | WXK_PAGEDOWN | |
652 | }; | |
653 | ||
654 | typedef enum { | |
9c039d08 | 655 | wxCURSOR_NONE = 0, |
7bf85405 RD |
656 | wxCURSOR_ARROW = 1, |
657 | wxCURSOR_BULLSEYE, | |
658 | wxCURSOR_CHAR, | |
659 | wxCURSOR_CROSS, | |
660 | wxCURSOR_HAND, | |
661 | wxCURSOR_IBEAM, | |
662 | wxCURSOR_LEFT_BUTTON, | |
663 | wxCURSOR_MAGNIFIER, | |
664 | wxCURSOR_MIDDLE_BUTTON, | |
665 | wxCURSOR_NO_ENTRY, | |
666 | wxCURSOR_PAINT_BRUSH, | |
667 | wxCURSOR_PENCIL, | |
668 | wxCURSOR_POINT_LEFT, | |
669 | wxCURSOR_POINT_RIGHT, | |
670 | wxCURSOR_QUESTION_ARROW, | |
671 | wxCURSOR_RIGHT_BUTTON, | |
672 | wxCURSOR_SIZENESW, | |
673 | wxCURSOR_SIZENS, | |
674 | wxCURSOR_SIZENWSE, | |
675 | wxCURSOR_SIZEWE, | |
676 | wxCURSOR_SIZING, | |
677 | wxCURSOR_SPRAYCAN, | |
678 | wxCURSOR_WAIT, | |
679 | wxCURSOR_WATCH, | |
680 | wxCURSOR_BLANK | |
9c039d08 RD |
681 | // #ifndef __WXMSW__ |
682 | // /* Not yet implemented for Windows */ | |
683 | // , wxCURSOR_CROSS_REVERSE, | |
684 | // wxCURSOR_DOUBLE_ARROW, | |
685 | // wxCURSOR_BASED_ARROW_UP, | |
686 | // wxCURSOR_BASED_ARROW_DOWN | |
687 | // #endif | |
7bf85405 RD |
688 | } _standard_cursors_t; |
689 | ||
690 | ||
cf694132 RD |
691 | |
692 | typedef enum { | |
693 | wxPAPER_NONE, // Use specific dimensions | |
694 | wxPAPER_LETTER, // Letter, 8 1/2 by 11 inches | |
695 | wxPAPER_LEGAL, // Legal, 8 1/2 by 14 inches | |
696 | wxPAPER_A4, // A4 Sheet, 210 by 297 millimeters | |
697 | wxPAPER_CSHEET, // C Sheet, 17 by 22 inches | |
698 | wxPAPER_DSHEET, // D Sheet, 22 by 34 inches | |
699 | wxPAPER_ESHEET, // E Sheet, 34 by 44 inches | |
700 | wxPAPER_LETTERSMALL, // Letter Small, 8 1/2 by 11 inches | |
701 | wxPAPER_TABLOID, // Tabloid, 11 by 17 inches | |
702 | wxPAPER_LEDGER, // Ledger, 17 by 11 inches | |
703 | wxPAPER_STATEMENT, // Statement, 5 1/2 by 8 1/2 inches | |
704 | wxPAPER_EXECUTIVE, // Executive, 7 1/4 by 10 1/2 inches | |
705 | wxPAPER_A3, // A3 sheet, 297 by 420 millimeters | |
706 | wxPAPER_A4SMALL, // A4 small sheet, 210 by 297 millimeters | |
707 | wxPAPER_A5, // A5 sheet, 148 by 210 millimeters | |
708 | wxPAPER_B4, // B4 sheet, 250 by 354 millimeters | |
709 | wxPAPER_B5, // B5 sheet, 182-by-257-millimeter paper | |
710 | wxPAPER_FOLIO, // Folio, 8-1/2-by-13-inch paper | |
711 | wxPAPER_QUARTO, // Quarto, 215-by-275-millimeter paper | |
712 | wxPAPER_10X14, // 10-by-14-inch sheet | |
713 | wxPAPER_11X17, // 11-by-17-inch sheet | |
714 | wxPAPER_NOTE, // Note, 8 1/2 by 11 inches | |
715 | wxPAPER_ENV_9, // #9 Envelope, 3 7/8 by 8 7/8 inches | |
716 | wxPAPER_ENV_10, // #10 Envelope, 4 1/8 by 9 1/2 inches | |
717 | wxPAPER_ENV_11, // #11 Envelope, 4 1/2 by 10 3/8 inches | |
718 | wxPAPER_ENV_12, // #12 Envelope, 4 3/4 by 11 inches | |
719 | wxPAPER_ENV_14, // #14 Envelope, 5 by 11 1/2 inches | |
720 | wxPAPER_ENV_DL, // DL Envelope, 110 by 220 millimeters | |
721 | wxPAPER_ENV_C5, // C5 Envelope, 162 by 229 millimeters | |
722 | wxPAPER_ENV_C3, // C3 Envelope, 324 by 458 millimeters | |
723 | wxPAPER_ENV_C4, // C4 Envelope, 229 by 324 millimeters | |
724 | wxPAPER_ENV_C6, // C6 Envelope, 114 by 162 millimeters | |
725 | wxPAPER_ENV_C65, // C65 Envelope, 114 by 229 millimeters | |
726 | wxPAPER_ENV_B4, // B4 Envelope, 250 by 353 millimeters | |
727 | wxPAPER_ENV_B5, // B5 Envelope, 176 by 250 millimeters | |
728 | wxPAPER_ENV_B6, // B6 Envelope, 176 by 125 millimeters | |
729 | wxPAPER_ENV_ITALY, // Italy Envelope, 110 by 230 millimeters | |
730 | wxPAPER_ENV_MONARCH, // Monarch Envelope, 3 7/8 by 7 1/2 inches | |
731 | wxPAPER_ENV_PERSONAL, // 6 3/4 Envelope, 3 5/8 by 6 1/2 inches | |
732 | wxPAPER_FANFOLD_US, // US Std Fanfold, 14 7/8 by 11 inches | |
733 | wxPAPER_FANFOLD_STD_GERMAN, // German Std Fanfold, 8 1/2 by 12 inches | |
734 | wxPAPER_FANFOLD_LGL_GERMAN, // German Legal Fanfold, 8 1/2 by 13 inches | |
735 | ||
736 | wxPAPER_ISO_B4, // B4 (ISO) 250 x 353 mm | |
737 | wxPAPER_JAPANESE_POSTCARD, // Japanese Postcard 100 x 148 mm | |
738 | wxPAPER_9X11, // 9 x 11 in | |
739 | wxPAPER_10X11, // 10 x 11 in | |
740 | wxPAPER_15X11, // 15 x 11 in | |
741 | wxPAPER_ENV_INVITE, // Envelope Invite 220 x 220 mm | |
742 | wxPAPER_LETTER_EXTRA, // Letter Extra 9 \275 x 12 in | |
743 | wxPAPER_LEGAL_EXTRA, // Legal Extra 9 \275 x 15 in | |
744 | wxPAPER_TABLOID_EXTRA, // Tabloid Extra 11.69 x 18 in | |
745 | wxPAPER_A4_EXTRA, // A4 Extra 9.27 x 12.69 in | |
746 | wxPAPER_LETTER_TRANSVERSE, // Letter Transverse 8 \275 x 11 in | |
747 | wxPAPER_A4_TRANSVERSE, // A4 Transverse 210 x 297 mm | |
748 | wxPAPER_LETTER_EXTRA_TRANSVERSE, // Letter Extra Transverse 9\275 x 12 in | |
749 | wxPAPER_A_PLUS, // SuperA/SuperA/A4 227 x 356 mm | |
750 | wxPAPER_B_PLUS, // SuperB/SuperB/A3 305 x 487 mm | |
751 | wxPAPER_LETTER_PLUS, // Letter Plus 8.5 x 12.69 in | |
752 | wxPAPER_A4_PLUS, // A4 Plus 210 x 330 mm | |
753 | wxPAPER_A5_TRANSVERSE, // A5 Transverse 148 x 210 mm | |
754 | wxPAPER_B5_TRANSVERSE, // B5 (JIS) Transverse 182 x 257 mm | |
755 | wxPAPER_A3_EXTRA, // A3 Extra 322 x 445 mm | |
756 | wxPAPER_A5_EXTRA, // A5 Extra 174 x 235 mm | |
757 | wxPAPER_B5_EXTRA, // B5 (ISO) Extra 201 x 276 mm | |
758 | wxPAPER_A2, // A2 420 x 594 mm | |
759 | wxPAPER_A3_TRANSVERSE, // A3 Transverse 297 x 420 mm | |
760 | wxPAPER_A3_EXTRA_TRANSVERSE // A3 Extra Transverse 322 x 445 mm | |
761 | ||
762 | } wxPaperSize ; | |
763 | ||
bb0054cd RD |
764 | typedef enum { |
765 | wxDUPLEX_SIMPLEX, // Non-duplex | |
766 | wxDUPLEX_HORIZONTAL, | |
767 | wxDUPLEX_VERTICAL | |
768 | } wxDuplexMode; | |
769 | ||
cf694132 RD |
770 | |
771 | ||
7bf85405 RD |
772 | #define FALSE 0 |
773 | #define false 0 | |
774 | #define TRUE 1 | |
775 | #define true 1 | |
776 | ||
af309447 | 777 | const char* wxVERSION_STRING; |
7bf85405 RD |
778 | |
779 | //--------------------------------------------------------------------------- | |
780 | //--------------------------------------------------------------------------- | |
781 | ||
782 | /* | |
783 | * Event types | |
784 | * | |
785 | */ | |
786 | enum wxEventType { | |
787 | wxEVT_NULL = 0, | |
788 | wxEVT_FIRST = 10000, | |
789 | ||
790 | // New names | |
791 | wxEVT_COMMAND_BUTTON_CLICKED, | |
792 | wxEVT_COMMAND_CHECKBOX_CLICKED, | |
793 | wxEVT_COMMAND_CHOICE_SELECTED, | |
794 | wxEVT_COMMAND_LISTBOX_SELECTED, | |
795 | wxEVT_COMMAND_LISTBOX_DOUBLECLICKED, | |
796 | wxEVT_COMMAND_CHECKLISTBOX_TOGGLED, | |
3af4e610 | 797 | wxEVT_COMMAND_SPINCTRL_UPDATED, |
7bf85405 RD |
798 | wxEVT_COMMAND_TEXT_UPDATED, |
799 | wxEVT_COMMAND_TEXT_ENTER, | |
800 | wxEVT_COMMAND_MENU_SELECTED, | |
801 | wxEVT_COMMAND_SLIDER_UPDATED, | |
802 | wxEVT_COMMAND_RADIOBOX_SELECTED, | |
803 | wxEVT_COMMAND_RADIOBUTTON_SELECTED, | |
804 | // wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events | |
805 | wxEVT_COMMAND_SCROLLBAR_UPDATED, | |
806 | wxEVT_COMMAND_VLBOX_SELECTED, | |
807 | wxEVT_COMMAND_COMBOBOX_SELECTED, | |
808 | wxEVT_COMMAND_TOOL_CLICKED, | |
809 | wxEVT_COMMAND_TOOL_RCLICKED, | |
810 | wxEVT_COMMAND_TOOL_ENTER, | |
811 | wxEVT_SET_FOCUS, | |
812 | wxEVT_KILL_FOCUS, | |
813 | ||
814 | /* Mouse event types */ | |
815 | wxEVT_LEFT_DOWN, | |
816 | wxEVT_LEFT_UP, | |
817 | wxEVT_MIDDLE_DOWN, | |
818 | wxEVT_MIDDLE_UP, | |
819 | wxEVT_RIGHT_DOWN, | |
820 | wxEVT_RIGHT_UP, | |
821 | wxEVT_MOTION, | |
822 | wxEVT_ENTER_WINDOW, | |
823 | wxEVT_LEAVE_WINDOW, | |
824 | wxEVT_LEFT_DCLICK, | |
825 | wxEVT_MIDDLE_DCLICK, | |
826 | wxEVT_RIGHT_DCLICK, | |
827 | ||
828 | // Non-client mouse events | |
829 | wxEVT_NC_LEFT_DOWN = wxEVT_FIRST + 100, | |
830 | wxEVT_NC_LEFT_UP, | |
831 | wxEVT_NC_MIDDLE_DOWN, | |
832 | wxEVT_NC_MIDDLE_UP, | |
833 | wxEVT_NC_RIGHT_DOWN, | |
834 | wxEVT_NC_RIGHT_UP, | |
835 | wxEVT_NC_MOTION, | |
836 | wxEVT_NC_ENTER_WINDOW, | |
837 | wxEVT_NC_LEAVE_WINDOW, | |
838 | wxEVT_NC_LEFT_DCLICK, | |
839 | wxEVT_NC_MIDDLE_DCLICK, | |
840 | wxEVT_NC_RIGHT_DCLICK, | |
841 | ||
842 | /* Character input event type */ | |
843 | wxEVT_CHAR, | |
8bf5d46e RD |
844 | wxEVT_KEY_DOWN, |
845 | wxEVT_KEY_UP, | |
846 | wxEVT_CHAR_HOOK, | |
7bf85405 RD |
847 | |
848 | /* | |
849 | * Scrollbar event identifiers | |
850 | */ | |
851 | wxEVT_SCROLL_TOP, | |
852 | wxEVT_SCROLL_BOTTOM, | |
853 | wxEVT_SCROLL_LINEUP, | |
854 | wxEVT_SCROLL_LINEDOWN, | |
855 | wxEVT_SCROLL_PAGEUP, | |
856 | wxEVT_SCROLL_PAGEDOWN, | |
857 | wxEVT_SCROLL_THUMBTRACK, | |
26b9cf27 | 858 | wxEVT_SCROLL_THUMBRELEASE, |
7bf85405 | 859 | |
bb0054cd RD |
860 | /* |
861 | * Scrolled Window | |
862 | */ | |
863 | wxEVT_SCROLLWIN_TOP, | |
864 | wxEVT_SCROLLWIN_BOTTOM, | |
865 | wxEVT_SCROLLWIN_LINEUP, | |
866 | wxEVT_SCROLLWIN_LINEDOWN, | |
867 | wxEVT_SCROLLWIN_PAGEUP, | |
868 | wxEVT_SCROLLWIN_PAGEDOWN, | |
869 | wxEVT_SCROLLWIN_THUMBTRACK, | |
26b9cf27 | 870 | wxEVT_SCROLLWIN_THUMBRELEASE, |
bb0054cd | 871 | |
7bf85405 RD |
872 | wxEVT_SIZE = wxEVT_FIRST + 200, |
873 | wxEVT_MOVE, | |
874 | wxEVT_CLOSE_WINDOW, | |
875 | wxEVT_END_SESSION, | |
876 | wxEVT_QUERY_END_SESSION, | |
877 | wxEVT_ACTIVATE_APP, | |
878 | wxEVT_POWER, | |
7bf85405 RD |
879 | wxEVT_ACTIVATE, |
880 | wxEVT_CREATE, | |
881 | wxEVT_DESTROY, | |
882 | wxEVT_SHOW, | |
883 | wxEVT_ICONIZE, | |
884 | wxEVT_MAXIMIZE, | |
885 | wxEVT_MOUSE_CAPTURE_CHANGED, | |
886 | wxEVT_PAINT, | |
887 | wxEVT_ERASE_BACKGROUND, | |
888 | wxEVT_NC_PAINT, | |
889 | wxEVT_PAINT_ICON, | |
890 | wxEVT_MENU_CHAR, | |
891 | wxEVT_MENU_INIT, | |
892 | wxEVT_MENU_HIGHLIGHT, | |
893 | wxEVT_POPUP_MENU_INIT, | |
894 | wxEVT_CONTEXT_MENU, | |
895 | wxEVT_SYS_COLOUR_CHANGED, | |
896 | wxEVT_SETTING_CHANGED, | |
897 | wxEVT_QUERY_NEW_PALETTE, | |
898 | wxEVT_PALETTE_CHANGED, | |
899 | wxEVT_JOY_BUTTON_DOWN, | |
900 | wxEVT_JOY_BUTTON_UP, | |
901 | wxEVT_JOY_MOVE, | |
902 | wxEVT_JOY_ZMOVE, | |
903 | wxEVT_DROP_FILES, | |
904 | wxEVT_DRAW_ITEM, | |
905 | wxEVT_MEASURE_ITEM, | |
906 | wxEVT_COMPARE_ITEM, | |
907 | wxEVT_INIT_DIALOG, | |
908 | wxEVT_IDLE, | |
909 | wxEVT_UPDATE_UI, | |
910 | ||
bb0054cd | 911 | |
7bf85405 RD |
912 | /* Generic command events */ |
913 | // Note: a click is a higher-level event | |
914 | // than button down/up | |
915 | wxEVT_COMMAND_LEFT_CLICK, | |
916 | wxEVT_COMMAND_LEFT_DCLICK, | |
917 | wxEVT_COMMAND_RIGHT_CLICK, | |
918 | wxEVT_COMMAND_RIGHT_DCLICK, | |
919 | wxEVT_COMMAND_SET_FOCUS, | |
920 | wxEVT_COMMAND_KILL_FOCUS, | |
921 | wxEVT_COMMAND_ENTER, | |
922 | ||
2f90df85 RD |
923 | wxEVT_NAVIGATION_KEY, |
924 | ||
f6bcfd97 BP |
925 | wxEVT_TIMER, |
926 | ||
7bf85405 RD |
927 | }; |
928 | ||
929 | ||
930 | ||
931 | ||
bb0054cd | 932 | //---------------------------------------------------------------------- |