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