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