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