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