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