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