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