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