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