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