]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/_defs.i
updates of some SWIG generated stuff
[wxWidgets.git] / utils / 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;
26class wxCheckBox;
27class wxCheckListBox;
28class wxChoice;
29class wxClientDC;
7bf85405 30class wxCloseEvent;
af309447
RD
31class wxColourData;
32class wxColourDialog;
33class wxColour;
34class wxComboBox;
7bf85405 35class wxCommandEvent;
af309447
RD
36class wxConfig;
37class wxControl;
38class wxCursor;
39class wxDC;
40class wxDialog;
41class wxDirDialog;
42class wxDropFilesEvent;
7bf85405 43class wxEraseEvent;
af309447
RD
44class wxEvent;
45class wxEvtHandler;
46class wxFileDialog;
7bf85405 47class wxFocusEvent;
af309447
RD
48class wxFontData;
49class wxFontDialog;
50class wxFont;
51class wxFrame;
52class wxGauge;
53class wxGridCell;
54class wxGridEvent;
55class wxGrid;
7bf85405 56class wxIconizeEvent;
af309447 57class wxIcon;
7bf85405 58class wxIdleEvent;
af309447
RD
59class wxImageList;
60class wxIndividualLayoutConstraint;
61class wxInitDialogEvent;
62class wxJoystickEvent;
63class wxKeyEvent;
64class wxLayoutAlgorithm;
65class wxLayoutConstraints;
66class wxListBox;
67class wxListCtrl;
68class wxListEvent;
69class wxListItem;
70class wxMDIChildFrame;
71class wxMDIClientWindow;
72class wxMDIParentFrame;
7bf85405 73class wxMask;
af309447 74class wxMaximizeEvent;
7bf85405 75class wxMemoryDC;
af309447
RD
76class wxMenuBar;
77class wxMenuEvent;
78class wxMenuItem;
79class wxMenu;
80class wxMessageDialog;
81class wxMetaFileDC;
82class wxMiniFrame;
83class wxMouseEvent;
84class wxMoveEvent;
85class wxNotebookEvent;
86class wxNotebook;
87class wxPageSetupData;
88class wxPageSetupDialog;
7bf85405 89class wxPaintDC;
af309447
RD
90class wxPaintEvent;
91class wxPalette;
92class wxPanel;
93class wxPen;
94class wxPoint;
7bf85405 95class wxPostScriptDC;
af309447
RD
96class wxPrintData;
97class wxPrintDialog;
7bf85405 98class wxPrinterDC;
af309447 99class wxQueryLayoutInfoEvent;
7bf85405
RD
100class wxRadioBox;
101class wxRadioButton;
af309447
RD
102class wxRealPoint;
103class wxRect;
104class wxRegionIterator;
105class wxRegion;
106class wxSashEvent;
107class wxSashLayoutWindow;
108class wxSashWindow;
109class wxScreenDC;
110class wxScrollBar;
111class wxScrollEvent;
d426c97e 112class wxScrollWinEvent;
af309447
RD
113class wxScrolledWindow;
114class wxShowEvent;
115class wxSingleChoiceDialog;
116class wxSizeEvent;
117class wxSize;
7bf85405 118class wxSlider;
af309447
RD
119class wxSpinButton;
120class wxSpinEvent;
121class wxSplitterWindow;
122class wxStaticBitmap;
123class wxStaticBox;
124class wxStaticText;
125class wxStatusBar;
126class wxSysColourChangedEvent;
127class wxTaskBarIcon;
128class wxTextCtrl;
129class wxTextEntryDialog;
130class wxTimer;
131class wxToolBarTool;
132class wxToolBar;
133class wxToolTip;
134class wxTreeCtrl;
135class wxTreeEvent;
136class wxTreeItemData;
137class wxTreeItemId;
138class wxUpdateUIEvent;
139class wxWindowDC;
140class wxWindow;
7bf85405 141
af309447
RD
142class wxPyApp;
143class wxPyMenu;
7bf85405 144class wxPyTimer;
af309447 145
7bf85405
RD
146
147//---------------------------------------------------------------------------
148
149// some definitions for SWIG only
150typedef unsigned char byte;
151typedef short int WXTYPE;
152typedef int wxWindowID;
153typedef unsigned int uint;
154typedef signed int EBool;
c127177f 155typedef unsigned int size_t
bb0054cd 156typedef int wxPrintQuality;
7bf85405
RD
157
158//---------------------------------------------------------------------------
159
160// General numeric #define's and etc. Making them all enums makes SWIG use the
161// real macro when making the Python Int
162
163enum {
164 wxMAJOR_VERSION,
165 wxMINOR_VERSION,
166 wxRELEASE_NUMBER,
167
08127323 168 wxNOT_FOUND,
7bf85405
RD
169
170 wxVSCROLL,
171 wxHSCROLL,
172 wxCAPTION,
173 wxDOUBLE_BORDER,
174 wxSUNKEN_BORDER,
175 wxRAISED_BORDER,
176 wxBORDER,
177 wxSIMPLE_BORDER,
178 wxSTATIC_BORDER,
179 wxTRANSPARENT_WINDOW,
180 wxNO_BORDER,
181 wxUSER_COLOURS,
182 wxNO_3D,
183//wxOVERRIDE_KEY_TRANSLATIONS,
184 wxTAB_TRAVERSAL,
1afc06c2 185 wxWANTS_CHARS,
7bf85405
RD
186 wxHORIZONTAL,
187 wxVERTICAL,
188 wxBOTH,
189 wxCENTER_FRAME,
1afc06c2
RD
190 wxCENTRE_ON_SCREEN,
191 wxCENTER_ON_SCREEN,
192
7bf85405
RD
193 wxSTAY_ON_TOP,
194 wxICONIZE,
195 wxMINIMIZE,
196 wxMAXIMIZE,
197 wxTHICK_FRAME,
198 wxSYSTEM_MENU,
199 wxMINIMIZE_BOX,
200 wxMAXIMIZE_BOX,
201 wxTINY_CAPTION_HORIZ,
202 wxTINY_CAPTION_VERT,
203 wxRESIZE_BOX,
204 wxRESIZE_BORDER,
205 wxDIALOG_MODAL,
206 wxDIALOG_MODELESS,
207 wxDEFAULT_FRAME_STYLE,
208 wxDEFAULT_DIALOG_STYLE,
b8b8dda7
RD
209
210 wxFRAME_TOOL_WINDOW,
bb0054cd 211 wxFRAME_FLOAT_ON_PARENT,
1afc06c2
RD
212 wxED_CLIENT_MARGIN,
213 wxED_BUTTONS_BOTTOM,
214 wxED_BUTTONS_RIGHT,
215 wxED_STATIC_LINE,
216 wxEXT_DIALOG_STYLE,
bb0054cd 217
08127323 218 wxCLIP_CHILDREN,
b8b8dda7 219
7bf85405
RD
220 wxRETAINED,
221 wxBACKINGSTORE,
222 wxTB_3DBUTTONS,
223 wxTB_HORIZONTAL,
224 wxTB_VERTICAL,
9c039d08 225 wxTB_FLAT,
7bf85405
RD
226 wxCOLOURED,
227 wxFIXED_LENGTH,
228 wxALIGN_LEFT,
229 wxALIGN_CENTER,
230 wxALIGN_CENTRE,
231 wxALIGN_RIGHT,
7bf85405
RD
232 wxLB_NEEDED_SB,
233 wxLB_ALWAYS_SB,
234 wxLB_SORT,
235 wxLB_SINGLE,
236 wxLB_MULTIPLE,
237 wxLB_EXTENDED,
238 wxLB_OWNERDRAW,
239 wxLB_HSCROLL,
240 wxPROCESS_ENTER,
241 wxPASSWORD,
242 wxTE_PROCESS_ENTER,
243 wxTE_PASSWORD,
244 wxTE_READONLY,
8bf5d46e 245 wxTE_RICH,
7bf85405 246 wxTE_MULTILINE,
7bf85405
RD
247 wxCB_SIMPLE,
248 wxCB_DROPDOWN,
249 wxCB_SORT,
250 wxCB_READONLY,
251 wxRA_HORIZONTAL,
252 wxRA_VERTICAL,
ed175610
RD
253 wxRA_SPECIFY_ROWS,
254 wxRA_SPECIFY_COLS,
7bf85405
RD
255 wxRB_GROUP,
256 wxGA_PROGRESSBAR,
257 wxGA_HORIZONTAL,
258 wxGA_VERTICAL,
bb0054cd 259 wxGA_SMOOTH,
7bf85405
RD
260 wxSL_HORIZONTAL,
261 wxSL_VERTICAL,
262 wxSL_AUTOTICKS,
263 wxSL_LABELS,
264 wxSL_LEFT,
265 wxSL_TOP,
266 wxSL_RIGHT,
267 wxSL_BOTTOM,
268 wxSL_BOTH,
269 wxSL_SELRANGE,
270 wxSB_HORIZONTAL,
271 wxSB_VERTICAL,
cf694132 272 wxST_SIZEGRIP,
7bf85405
RD
273 wxBU_AUTODRAW,
274 wxBU_NOAUTODRAW,
275 wxTR_HAS_BUTTONS,
276 wxTR_EDIT_LABELS,
d5c9047a 277 wxTR_LINES_AT_ROOT,
8bf5d46e 278 wxTR_MULTIPLE,
1afc06c2 279 wxTR_SINGLE,
8bf5d46e 280 wxTR_HAS_VARIABLE_ROW_HEIGHT,
7bf85405
RD
281 wxLC_ICON,
282 wxLC_SMALL_ICON,
283 wxLC_LIST,
284 wxLC_REPORT,
285 wxLC_ALIGN_TOP,
286 wxLC_ALIGN_LEFT,
287 wxLC_AUTOARRANGE,
288 wxLC_USER_TEXT,
289 wxLC_EDIT_LABELS,
290 wxLC_NO_HEADER,
291 wxLC_NO_SORT_HEADER,
292 wxLC_SINGLE_SEL,
293 wxLC_SORT_ASCENDING,
294 wxLC_SORT_DESCENDING,
295 wxLC_MASK_TYPE,
296 wxLC_MASK_ALIGN,
297 wxLC_MASK_SORT,
298 wxSP_VERTICAL,
299 wxSP_HORIZONTAL,
300 wxSP_ARROW_KEYS,
301 wxSP_WRAP,
302 wxSP_NOBORDER,
303 wxSP_3D,
304 wxSP_BORDER,
7bf85405
RD
305 wxFLOOD_SURFACE,
306 wxFLOOD_BORDER,
307 wxODDEVEN_RULE,
308 wxWINDING_RULE,
309 wxTOOL_TOP,
310 wxTOOL_BOTTOM,
311 wxTOOL_LEFT,
312 wxTOOL_RIGHT,
313 wxOK,
314 wxYES_NO,
315 wxCANCEL,
316 wxYES,
317 wxNO,
1afc06c2
RD
318 wxNO_DEFAULT,
319 wxYES_DEFAULT,
7bf85405
RD
320 wxICON_EXCLAMATION,
321 wxICON_HAND,
322 wxICON_QUESTION,
323 wxICON_INFORMATION,
324 wxICON_STOP,
325 wxICON_ASTERISK,
326 wxICON_MASK,
1afc06c2
RD
327 wxICON_WARNING,
328 wxICON_ERROR,
329
330 wxFORWARD,
331 wxBACKWARD,
332 wxRESET,
333 wxHELP,
334 wxMORE,
335 wxSETUP,
336
7bf85405
RD
337 wxCENTRE,
338 wxCENTER,
339 wxSIZE_AUTO_WIDTH,
340 wxSIZE_AUTO_HEIGHT,
341 wxSIZE_AUTO,
342 wxSIZE_USE_EXISTING,
343 wxSIZE_ALLOW_MINUS_ONE,
08127323 344#ifndef __WXGTK__
7bf85405
RD
345 wxDF_TEXT,
346 wxDF_BITMAP,
347 wxDF_METAFILE,
348 wxDF_DIB,
349 wxDF_OEMTEXT,
350 wxDF_FILENAME,
08127323 351#endif
7bf85405
RD
352 wxPORTRAIT,
353 wxLANDSCAPE,
bb0054cd
RD
354 wxPRINT_QUALITY_HIGH,
355 wxPRINT_QUALITY_MEDIUM,
356 wxPRINT_QUALITY_LOW,
357 wxPRINT_QUALITY_DRAFT,
7bf85405
RD
358 wxID_OPEN,
359 wxID_CLOSE,
360 wxID_NEW,
361 wxID_SAVE,
362 wxID_SAVEAS,
363 wxID_REVERT,
364 wxID_EXIT,
365 wxID_UNDO,
366 wxID_REDO,
367 wxID_HELP,
368 wxID_PRINT,
369 wxID_PRINT_SETUP,
370 wxID_PREVIEW,
371 wxID_ABOUT,
372 wxID_HELP_CONTENTS,
373 wxID_HELP_COMMANDS,
374 wxID_HELP_PROCEDURES,
375 wxID_HELP_CONTEXT,
376 wxID_CUT,
377 wxID_COPY,
378 wxID_PASTE,
379 wxID_CLEAR,
380 wxID_FIND,
381 wxID_FILE1,
382 wxID_FILE2,
383 wxID_FILE3,
384 wxID_FILE4,
385 wxID_FILE5,
386 wxID_FILE6,
387 wxID_FILE7,
388 wxID_FILE8,
389 wxID_FILE9,
390 wxID_OK,
391 wxID_CANCEL,
392 wxID_APPLY,
393 wxID_YES,
394 wxID_NO,
cf694132 395 wxID_STATIC,
1afc06c2 396
7bf85405
RD
397 wxBITMAP_TYPE_BMP,
398 wxBITMAP_TYPE_BMP_RESOURCE,
399 wxBITMAP_TYPE_ICO,
400 wxBITMAP_TYPE_ICO_RESOURCE,
401 wxBITMAP_TYPE_CUR,
402 wxBITMAP_TYPE_CUR_RESOURCE,
403 wxBITMAP_TYPE_XBM,
404 wxBITMAP_TYPE_XBM_DATA,
405 wxBITMAP_TYPE_XPM,
406 wxBITMAP_TYPE_XPM_DATA,
407 wxBITMAP_TYPE_TIF,
408 wxBITMAP_TYPE_TIF_RESOURCE,
409 wxBITMAP_TYPE_GIF,
410 wxBITMAP_TYPE_GIF_RESOURCE,
411 wxBITMAP_TYPE_PNG,
412 wxBITMAP_TYPE_PNG_RESOURCE,
413 wxBITMAP_TYPE_ANY,
414 wxBITMAP_TYPE_RESOURCE,
cf694132 415 wxBITMAP_TYPE_JPEG,
7bf85405
RD
416
417 wxOPEN,
418 wxSAVE,
419 wxHIDE_READONLY,
420 wxOVERWRITE_PROMPT,
421
422 wxACCEL_ALT,
423 wxACCEL_CTRL,
424 wxACCEL_SHIFT,
bb0054cd
RD
425
426 wxPD_AUTO_HIDE,
427 wxPD_APP_MODAL,
428 wxPD_CAN_ABORT,
a08cbc01
RD
429 wxPD_ELAPSED_TIME,
430 wxPD_ESTIMATED_TIME,
431 wxPD_REMAINING_TIME,
bb0054cd 432
8bf5d46e 433 wxMENU_TEAROFF,
1afc06c2 434 wxMB_DOCKABLE,
8bf5d46e
RD
435 wxNO_FULL_REPAINT_ON_RESIZE,
436
1afc06c2
RD
437 wxLEFT,
438 wxRIGHT,
439 wxUP,
440 wxDOWN,
441 wxALL,
442 wxTOP,
443 wxBOTTOM,
444
445 wxNORTH,
446 wxSOUTH,
447 wxEAST,
448 wxWEST,
449
450 wxSTRETCH_NOT,
451 wxSHRINK,
452 wxGROW,
453 wxEXPAND,
454
455 wxNB_FIXEDWIDTH,
456
457 wxLI_HORIZONTAL,
458 wxLI_VERTICAL,
459
460
461 wxHW_SCROLLBAR_NEVER,
462 wxHW_SCROLLBAR_AUTO,
463
7bf85405
RD
464};
465
466
cf694132
RD
467// // Standard error codes
468// enum ErrCode
469// {
470// ERR_PARAM = (-4000),
471// ERR_NODATA,
472// ERR_CANCEL,
473// ERR_SUCCESS = 0
474// };
7bf85405
RD
475
476
477enum {
478 wxDEFAULT ,
479 wxDECORATIVE,
480 wxROMAN,
481 wxSCRIPT,
482 wxSWISS,
483 wxMODERN,
484 wxTELETYPE,
485 wxVARIABLE,
486 wxFIXED,
487 wxNORMAL,
488 wxLIGHT,
489 wxBOLD,
490 wxITALIC,
491 wxSLANT,
492 wxSOLID,
493 wxDOT,
494 wxLONG_DASH,
495 wxSHORT_DASH,
496 wxDOT_DASH,
497 wxUSER_DASH,
498 wxTRANSPARENT,
499 wxSTIPPLE,
500 wxBDIAGONAL_HATCH,
501 wxCROSSDIAG_HATCH,
502 wxFDIAGONAL_HATCH,
503 wxCROSS_HATCH,
504 wxHORIZONTAL_HATCH,
505 wxVERTICAL_HATCH,
506 wxJOIN_BEVEL,
507 wxJOIN_MITER,
508 wxJOIN_ROUND,
509 wxCAP_ROUND,
510 wxCAP_PROJECTING,
511 wxCAP_BUTT
512};
513
514typedef enum {
515 wxCLEAR, // 0
516 wxXOR, // src XOR dst
517 wxINVERT, // NOT dst
518 wxOR_REVERSE, // src OR (NOT dst)
519 wxAND_REVERSE,// src AND (NOT dst)
520 wxCOPY, // src
521 wxAND, // src AND dst
522 wxAND_INVERT, // (NOT src) AND dst
523 wxNO_OP, // dst
524 wxNOR, // (NOT src) AND (NOT dst)
525 wxEQUIV, // (NOT src) XOR dst
526 wxSRC_INVERT, // (NOT src)
527 wxOR_INVERT, // (NOT src) OR dst
528 wxNAND, // (NOT src) OR (NOT dst)
529 wxOR, // src OR dst
530 wxSET, // 1
531 wxSRC_OR, // source _bitmap_ OR destination
532 wxSRC_AND // source _bitmap_ AND destination
533} form_ops_t;
534
535enum _Virtual_keycodes {
536 WXK_BACK = 8,
537 WXK_TAB = 9,
538 WXK_RETURN = 13,
539 WXK_ESCAPE = 27,
540 WXK_SPACE = 32,
541 WXK_DELETE = 127,
542
543 WXK_START = 300,
544 WXK_LBUTTON,
545 WXK_RBUTTON,
546 WXK_CANCEL,
547 WXK_MBUTTON,
548 WXK_CLEAR,
549 WXK_SHIFT,
550 WXK_CONTROL,
551 WXK_MENU,
552 WXK_PAUSE,
553 WXK_CAPITAL,
554 WXK_PRIOR, // Page up
555 WXK_NEXT, // Page down
556 WXK_END,
557 WXK_HOME,
558 WXK_LEFT,
559 WXK_UP,
560 WXK_RIGHT,
561 WXK_DOWN,
562 WXK_SELECT,
563 WXK_PRINT,
564 WXK_EXECUTE,
565 WXK_SNAPSHOT,
566 WXK_INSERT,
567 WXK_HELP,
568 WXK_NUMPAD0,
569 WXK_NUMPAD1,
570 WXK_NUMPAD2,
571 WXK_NUMPAD3,
572 WXK_NUMPAD4,
573 WXK_NUMPAD5,
574 WXK_NUMPAD6,
575 WXK_NUMPAD7,
576 WXK_NUMPAD8,
577 WXK_NUMPAD9,
578 WXK_MULTIPLY,
579 WXK_ADD,
580 WXK_SEPARATOR,
581 WXK_SUBTRACT,
582 WXK_DECIMAL,
583 WXK_DIVIDE,
584 WXK_F1,
585 WXK_F2,
586 WXK_F3,
587 WXK_F4,
588 WXK_F5,
589 WXK_F6,
590 WXK_F7,
591 WXK_F8,
592 WXK_F9,
593 WXK_F10,
594 WXK_F11,
595 WXK_F12,
596 WXK_F13,
597 WXK_F14,
598 WXK_F15,
599 WXK_F16,
600 WXK_F17,
601 WXK_F18,
602 WXK_F19,
603 WXK_F20,
604 WXK_F21,
605 WXK_F22,
606 WXK_F23,
607 WXK_F24,
608 WXK_NUMLOCK,
609 WXK_SCROLL,
610 WXK_PAGEUP,
611 WXK_PAGEDOWN
612};
613
614typedef enum {
9c039d08 615 wxCURSOR_NONE = 0,
7bf85405
RD
616 wxCURSOR_ARROW = 1,
617 wxCURSOR_BULLSEYE,
618 wxCURSOR_CHAR,
619 wxCURSOR_CROSS,
620 wxCURSOR_HAND,
621 wxCURSOR_IBEAM,
622 wxCURSOR_LEFT_BUTTON,
623 wxCURSOR_MAGNIFIER,
624 wxCURSOR_MIDDLE_BUTTON,
625 wxCURSOR_NO_ENTRY,
626 wxCURSOR_PAINT_BRUSH,
627 wxCURSOR_PENCIL,
628 wxCURSOR_POINT_LEFT,
629 wxCURSOR_POINT_RIGHT,
630 wxCURSOR_QUESTION_ARROW,
631 wxCURSOR_RIGHT_BUTTON,
632 wxCURSOR_SIZENESW,
633 wxCURSOR_SIZENS,
634 wxCURSOR_SIZENWSE,
635 wxCURSOR_SIZEWE,
636 wxCURSOR_SIZING,
637 wxCURSOR_SPRAYCAN,
638 wxCURSOR_WAIT,
639 wxCURSOR_WATCH,
640 wxCURSOR_BLANK
9c039d08
RD
641// #ifndef __WXMSW__
642// /* Not yet implemented for Windows */
643// , wxCURSOR_CROSS_REVERSE,
644// wxCURSOR_DOUBLE_ARROW,
645// wxCURSOR_BASED_ARROW_UP,
646// wxCURSOR_BASED_ARROW_DOWN
647// #endif
7bf85405
RD
648} _standard_cursors_t;
649
650
cf694132
RD
651
652typedef enum {
653 wxPAPER_NONE, // Use specific dimensions
654 wxPAPER_LETTER, // Letter, 8 1/2 by 11 inches
655 wxPAPER_LEGAL, // Legal, 8 1/2 by 14 inches
656 wxPAPER_A4, // A4 Sheet, 210 by 297 millimeters
657 wxPAPER_CSHEET, // C Sheet, 17 by 22 inches
658 wxPAPER_DSHEET, // D Sheet, 22 by 34 inches
659 wxPAPER_ESHEET, // E Sheet, 34 by 44 inches
660 wxPAPER_LETTERSMALL, // Letter Small, 8 1/2 by 11 inches
661 wxPAPER_TABLOID, // Tabloid, 11 by 17 inches
662 wxPAPER_LEDGER, // Ledger, 17 by 11 inches
663 wxPAPER_STATEMENT, // Statement, 5 1/2 by 8 1/2 inches
664 wxPAPER_EXECUTIVE, // Executive, 7 1/4 by 10 1/2 inches
665 wxPAPER_A3, // A3 sheet, 297 by 420 millimeters
666 wxPAPER_A4SMALL, // A4 small sheet, 210 by 297 millimeters
667 wxPAPER_A5, // A5 sheet, 148 by 210 millimeters
668 wxPAPER_B4, // B4 sheet, 250 by 354 millimeters
669 wxPAPER_B5, // B5 sheet, 182-by-257-millimeter paper
670 wxPAPER_FOLIO, // Folio, 8-1/2-by-13-inch paper
671 wxPAPER_QUARTO, // Quarto, 215-by-275-millimeter paper
672 wxPAPER_10X14, // 10-by-14-inch sheet
673 wxPAPER_11X17, // 11-by-17-inch sheet
674 wxPAPER_NOTE, // Note, 8 1/2 by 11 inches
675 wxPAPER_ENV_9, // #9 Envelope, 3 7/8 by 8 7/8 inches
676 wxPAPER_ENV_10, // #10 Envelope, 4 1/8 by 9 1/2 inches
677 wxPAPER_ENV_11, // #11 Envelope, 4 1/2 by 10 3/8 inches
678 wxPAPER_ENV_12, // #12 Envelope, 4 3/4 by 11 inches
679 wxPAPER_ENV_14, // #14 Envelope, 5 by 11 1/2 inches
680 wxPAPER_ENV_DL, // DL Envelope, 110 by 220 millimeters
681 wxPAPER_ENV_C5, // C5 Envelope, 162 by 229 millimeters
682 wxPAPER_ENV_C3, // C3 Envelope, 324 by 458 millimeters
683 wxPAPER_ENV_C4, // C4 Envelope, 229 by 324 millimeters
684 wxPAPER_ENV_C6, // C6 Envelope, 114 by 162 millimeters
685 wxPAPER_ENV_C65, // C65 Envelope, 114 by 229 millimeters
686 wxPAPER_ENV_B4, // B4 Envelope, 250 by 353 millimeters
687 wxPAPER_ENV_B5, // B5 Envelope, 176 by 250 millimeters
688 wxPAPER_ENV_B6, // B6 Envelope, 176 by 125 millimeters
689 wxPAPER_ENV_ITALY, // Italy Envelope, 110 by 230 millimeters
690 wxPAPER_ENV_MONARCH, // Monarch Envelope, 3 7/8 by 7 1/2 inches
691 wxPAPER_ENV_PERSONAL, // 6 3/4 Envelope, 3 5/8 by 6 1/2 inches
692 wxPAPER_FANFOLD_US, // US Std Fanfold, 14 7/8 by 11 inches
693 wxPAPER_FANFOLD_STD_GERMAN, // German Std Fanfold, 8 1/2 by 12 inches
694 wxPAPER_FANFOLD_LGL_GERMAN, // German Legal Fanfold, 8 1/2 by 13 inches
695
696 wxPAPER_ISO_B4, // B4 (ISO) 250 x 353 mm
697 wxPAPER_JAPANESE_POSTCARD, // Japanese Postcard 100 x 148 mm
698 wxPAPER_9X11, // 9 x 11 in
699 wxPAPER_10X11, // 10 x 11 in
700 wxPAPER_15X11, // 15 x 11 in
701 wxPAPER_ENV_INVITE, // Envelope Invite 220 x 220 mm
702 wxPAPER_LETTER_EXTRA, // Letter Extra 9 \275 x 12 in
703 wxPAPER_LEGAL_EXTRA, // Legal Extra 9 \275 x 15 in
704 wxPAPER_TABLOID_EXTRA, // Tabloid Extra 11.69 x 18 in
705 wxPAPER_A4_EXTRA, // A4 Extra 9.27 x 12.69 in
706 wxPAPER_LETTER_TRANSVERSE, // Letter Transverse 8 \275 x 11 in
707 wxPAPER_A4_TRANSVERSE, // A4 Transverse 210 x 297 mm
708 wxPAPER_LETTER_EXTRA_TRANSVERSE, // Letter Extra Transverse 9\275 x 12 in
709 wxPAPER_A_PLUS, // SuperA/SuperA/A4 227 x 356 mm
710 wxPAPER_B_PLUS, // SuperB/SuperB/A3 305 x 487 mm
711 wxPAPER_LETTER_PLUS, // Letter Plus 8.5 x 12.69 in
712 wxPAPER_A4_PLUS, // A4 Plus 210 x 330 mm
713 wxPAPER_A5_TRANSVERSE, // A5 Transverse 148 x 210 mm
714 wxPAPER_B5_TRANSVERSE, // B5 (JIS) Transverse 182 x 257 mm
715 wxPAPER_A3_EXTRA, // A3 Extra 322 x 445 mm
716 wxPAPER_A5_EXTRA, // A5 Extra 174 x 235 mm
717 wxPAPER_B5_EXTRA, // B5 (ISO) Extra 201 x 276 mm
718 wxPAPER_A2, // A2 420 x 594 mm
719 wxPAPER_A3_TRANSVERSE, // A3 Transverse 297 x 420 mm
720 wxPAPER_A3_EXTRA_TRANSVERSE // A3 Extra Transverse 322 x 445 mm
721
722} wxPaperSize ;
723
bb0054cd
RD
724typedef enum {
725 wxDUPLEX_SIMPLEX, // Non-duplex
726 wxDUPLEX_HORIZONTAL,
727 wxDUPLEX_VERTICAL
728} wxDuplexMode;
729
cf694132
RD
730
731
7bf85405
RD
732#define FALSE 0
733#define false 0
734#define TRUE 1
735#define true 1
736
af309447 737const char* wxVERSION_STRING;
7bf85405
RD
738
739//---------------------------------------------------------------------------
740//---------------------------------------------------------------------------
741
742/*
743 * Event types
744 *
745 */
746enum wxEventType {
747 wxEVT_NULL = 0,
748 wxEVT_FIRST = 10000,
749
750 // New names
751 wxEVT_COMMAND_BUTTON_CLICKED,
752 wxEVT_COMMAND_CHECKBOX_CLICKED,
753 wxEVT_COMMAND_CHOICE_SELECTED,
754 wxEVT_COMMAND_LISTBOX_SELECTED,
755 wxEVT_COMMAND_LISTBOX_DOUBLECLICKED,
756 wxEVT_COMMAND_CHECKLISTBOX_TOGGLED,
757 wxEVT_COMMAND_TEXT_UPDATED,
758 wxEVT_COMMAND_TEXT_ENTER,
759 wxEVT_COMMAND_MENU_SELECTED,
760 wxEVT_COMMAND_SLIDER_UPDATED,
761 wxEVT_COMMAND_RADIOBOX_SELECTED,
762 wxEVT_COMMAND_RADIOBUTTON_SELECTED,
763// wxEVT_COMMAND_SCROLLBAR_UPDATED is now obsolete since we use wxEVT_SCROLL... events
764 wxEVT_COMMAND_SCROLLBAR_UPDATED,
765 wxEVT_COMMAND_VLBOX_SELECTED,
766 wxEVT_COMMAND_COMBOBOX_SELECTED,
767 wxEVT_COMMAND_TOOL_CLICKED,
768 wxEVT_COMMAND_TOOL_RCLICKED,
769 wxEVT_COMMAND_TOOL_ENTER,
770 wxEVT_SET_FOCUS,
771 wxEVT_KILL_FOCUS,
772
773/* Mouse event types */
774 wxEVT_LEFT_DOWN,
775 wxEVT_LEFT_UP,
776 wxEVT_MIDDLE_DOWN,
777 wxEVT_MIDDLE_UP,
778 wxEVT_RIGHT_DOWN,
779 wxEVT_RIGHT_UP,
780 wxEVT_MOTION,
781 wxEVT_ENTER_WINDOW,
782 wxEVT_LEAVE_WINDOW,
783 wxEVT_LEFT_DCLICK,
784 wxEVT_MIDDLE_DCLICK,
785 wxEVT_RIGHT_DCLICK,
786
787 // Non-client mouse events
788 wxEVT_NC_LEFT_DOWN = wxEVT_FIRST + 100,
789 wxEVT_NC_LEFT_UP,
790 wxEVT_NC_MIDDLE_DOWN,
791 wxEVT_NC_MIDDLE_UP,
792 wxEVT_NC_RIGHT_DOWN,
793 wxEVT_NC_RIGHT_UP,
794 wxEVT_NC_MOTION,
795 wxEVT_NC_ENTER_WINDOW,
796 wxEVT_NC_LEAVE_WINDOW,
797 wxEVT_NC_LEFT_DCLICK,
798 wxEVT_NC_MIDDLE_DCLICK,
799 wxEVT_NC_RIGHT_DCLICK,
800
801/* Character input event type */
802 wxEVT_CHAR,
8bf5d46e
RD
803 wxEVT_KEY_DOWN,
804 wxEVT_KEY_UP,
805 wxEVT_CHAR_HOOK,
7bf85405
RD
806
807 /*
808 * Scrollbar event identifiers
809 */
810 wxEVT_SCROLL_TOP,
811 wxEVT_SCROLL_BOTTOM,
812 wxEVT_SCROLL_LINEUP,
813 wxEVT_SCROLL_LINEDOWN,
814 wxEVT_SCROLL_PAGEUP,
815 wxEVT_SCROLL_PAGEDOWN,
816 wxEVT_SCROLL_THUMBTRACK,
817
bb0054cd
RD
818 /*
819 * Scrolled Window
820 */
821 wxEVT_SCROLLWIN_TOP,
822 wxEVT_SCROLLWIN_BOTTOM,
823 wxEVT_SCROLLWIN_LINEUP,
824 wxEVT_SCROLLWIN_LINEDOWN,
825 wxEVT_SCROLLWIN_PAGEUP,
826 wxEVT_SCROLLWIN_PAGEDOWN,
827 wxEVT_SCROLLWIN_THUMBTRACK,
828
7bf85405
RD
829 wxEVT_SIZE = wxEVT_FIRST + 200,
830 wxEVT_MOVE,
831 wxEVT_CLOSE_WINDOW,
832 wxEVT_END_SESSION,
833 wxEVT_QUERY_END_SESSION,
834 wxEVT_ACTIVATE_APP,
835 wxEVT_POWER,
7bf85405
RD
836 wxEVT_ACTIVATE,
837 wxEVT_CREATE,
838 wxEVT_DESTROY,
839 wxEVT_SHOW,
840 wxEVT_ICONIZE,
841 wxEVT_MAXIMIZE,
842 wxEVT_MOUSE_CAPTURE_CHANGED,
843 wxEVT_PAINT,
844 wxEVT_ERASE_BACKGROUND,
845 wxEVT_NC_PAINT,
846 wxEVT_PAINT_ICON,
847 wxEVT_MENU_CHAR,
848 wxEVT_MENU_INIT,
849 wxEVT_MENU_HIGHLIGHT,
850 wxEVT_POPUP_MENU_INIT,
851 wxEVT_CONTEXT_MENU,
852 wxEVT_SYS_COLOUR_CHANGED,
853 wxEVT_SETTING_CHANGED,
854 wxEVT_QUERY_NEW_PALETTE,
855 wxEVT_PALETTE_CHANGED,
856 wxEVT_JOY_BUTTON_DOWN,
857 wxEVT_JOY_BUTTON_UP,
858 wxEVT_JOY_MOVE,
859 wxEVT_JOY_ZMOVE,
860 wxEVT_DROP_FILES,
861 wxEVT_DRAW_ITEM,
862 wxEVT_MEASURE_ITEM,
863 wxEVT_COMPARE_ITEM,
864 wxEVT_INIT_DIALOG,
865 wxEVT_IDLE,
866 wxEVT_UPDATE_UI,
867
bb0054cd 868
7bf85405
RD
869 /* Generic command events */
870 // Note: a click is a higher-level event
871 // than button down/up
872 wxEVT_COMMAND_LEFT_CLICK,
873 wxEVT_COMMAND_LEFT_DCLICK,
874 wxEVT_COMMAND_RIGHT_CLICK,
875 wxEVT_COMMAND_RIGHT_DCLICK,
876 wxEVT_COMMAND_SET_FOCUS,
877 wxEVT_COMMAND_KILL_FOCUS,
878 wxEVT_COMMAND_ENTER,
879
880 /* Tree control event types */
881 wxEVT_COMMAND_TREE_BEGIN_DRAG,
882 wxEVT_COMMAND_TREE_BEGIN_RDRAG,
883 wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT,
884 wxEVT_COMMAND_TREE_END_LABEL_EDIT,
885 wxEVT_COMMAND_TREE_DELETE_ITEM,
886 wxEVT_COMMAND_TREE_GET_INFO,
887 wxEVT_COMMAND_TREE_SET_INFO,
888 wxEVT_COMMAND_TREE_ITEM_EXPANDED,
889 wxEVT_COMMAND_TREE_ITEM_EXPANDING,
630d84f2
RD
890 wxEVT_COMMAND_TREE_ITEM_COLLAPSED,
891 wxEVT_COMMAND_TREE_ITEM_COLLAPSING,
7bf85405
RD
892 wxEVT_COMMAND_TREE_SEL_CHANGED,
893 wxEVT_COMMAND_TREE_SEL_CHANGING,
894 wxEVT_COMMAND_TREE_KEY_DOWN,
895
896 /* List control event types */
897 wxEVT_COMMAND_LIST_BEGIN_DRAG,
898 wxEVT_COMMAND_LIST_BEGIN_RDRAG,
899 wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT,
900 wxEVT_COMMAND_LIST_END_LABEL_EDIT,
901 wxEVT_COMMAND_LIST_DELETE_ITEM,
902 wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS,
903 wxEVT_COMMAND_LIST_GET_INFO,
904 wxEVT_COMMAND_LIST_SET_INFO,
905 wxEVT_COMMAND_LIST_ITEM_SELECTED,
906 wxEVT_COMMAND_LIST_ITEM_DESELECTED,
907 wxEVT_COMMAND_LIST_KEY_DOWN,
908 wxEVT_COMMAND_LIST_INSERT_ITEM,
909 wxEVT_COMMAND_LIST_COL_CLICK,
bb0054cd 910 wxEVT_COMMAND_LIST_ITEM_ACTIVATED,
7bf85405
RD
911
912 /* Tab and notebook control event types */
913 wxEVT_COMMAND_TAB_SEL_CHANGED,
914 wxEVT_COMMAND_TAB_SEL_CHANGING,
915 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED,
bb0054cd
RD
916 wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING,
917
918 /* splitter window */
919 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING,
920 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED,
921 wxEVT_COMMAND_SPLITTER_UNSPLIT,
922 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED,
08127323 923
7bf85405
RD
924};
925
926
927
928
bb0054cd 929//----------------------------------------------------------------------