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