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