]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/_defs.i
removed Julian's hack that is no longer needed after wxBitmap stubs were added even...
[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
ab1f7d2a 14//---------------------------------------------------------------------------
ab1f7d2a 15
214c4fbe 16// Globally turn on the autodoc feature
dd9f7fea
RD
17%feature("autodoc", "1"); // 0 == no param types, 1 == show param types
18
2f810297
RD
19// Turn on kwargs by default
20%feature("kwargs", "1");
21
9c605285
RD
22// Don't generate separate wrappers for each default args combination
23%feature("compactdefaultargs");
24
214c4fbe 25#if SWIG_VERSION < 0x010328
9c605285
RD
26// Don't generate default ctors or dtors if the C++ doesn't have them
27%feature("nodefault");
214c4fbe 28#else
9c605285 29// This is the SWIG 1.3.28 way to do the above...
214c4fbe
RD
30%feature("nodefaultctor");
31%feature("nodefaultdtor");
32#endif
33
34// For now, just supress the warning about using Python keywords as parameter
35// names. Will need to come back later and correct these rather than just
36// hide them...
37#pragma SWIG nowarn=314
9c605285 38
ab1f7d2a 39//---------------------------------------------------------------------------
ab1f7d2a 40
214c4fbe
RD
41// Tell SWIG to wrap all the wrappers with our thread protection
42%define %threadWrapperOn
ab1f7d2a
RD
43%exception {
44 PyThreadState* __tstate = wxPyBeginAllowThreads();
45 $action
46 wxPyEndAllowThreads(__tstate);
47 if (PyErr_Occurred()) SWIG_fail;
48}
214c4fbe
RD
49%enddef
50
51// This one will turn off the generation of the thread wrapper code
52%define %threadWrapperOff
53%exception
54%enddef
ab1f7d2a 55
214c4fbe
RD
56// Turn it on by default
57%threadWrapperOn
ab1f7d2a
RD
58
59// This one can be used to add a check for an existing wxApp before the real
60// work is done. An exception is raised if there isn't one.
61%define MustHaveApp(name)
db9ba246
RD
62%exception name {
63 if (!wxPyCheckForApp()) SWIG_fail;
64 PyThreadState* __tstate = wxPyBeginAllowThreads();
65 $action
66 wxPyEndAllowThreads(__tstate);
67 if (PyErr_Occurred()) SWIG_fail;
68}
ab1f7d2a
RD
69%enddef
70
71
72
7bf85405 73//---------------------------------------------------------------------------
d14a1e28 74// some type definitions to simplify things for SWIG
af309447 75
d14a1e28
RD
76typedef int wxEventType;
77typedef unsigned int size_t;
78typedef unsigned int time_t;
79typedef unsigned char byte;
82bd6167 80typedef unsigned long wxUIntPtr;
d14a1e28 81
dd9f7fea
RD
82#define wxWindowID int
83#define wxCoord int
84#define wxInt32 int
85#define wxUint32 unsigned int
dd9f7fea 86
d14a1e28
RD
87
88//----------------------------------------------------------------------
89// Various SWIG macros and such
90
2b9048c5
RD
91#define %pythonAppend %feature("pythonappend")
92#define %pythonPrepend %feature("pythonprepend")
2f810297 93#define %noautodoc %feature("noautodoc")
3ea6e0ec 94
214c4fbe 95#if SWIG_VERSION >= 0x010327
080b9cbc 96#undef %kwargs
214c4fbe
RD
97#define %kwargs %feature("kwargs", "1")
98#define %nokwargs %feature("kwargs", "0")
99#else
100#define %kwargs %feature("kwargs")
101#define %nokwargs %feature("nokwargs")
102#endif
103
104#define %disownarg(typespec) %typemap(in) typespec = SWIGTYPE* DISOWN
105#define %cleardisown(typespec) %typemap(in) typespec
106
607a3fa0
RD
107#define %ref %feature("ref")
108#define %unref %feature("unref")
d14a1e28 109
d14a1e28
RD
110
111#ifndef %pythoncode
112#define %pythoncode %insert("python")
dd9f7fea 113#endif
d14a1e28
RD
114
115#define WXUNUSED(x) x
116
117
118// Given the name of a wxChar (or wxString) constant in C++, make
119// a static wxString for wxPython, and also let SWIG wrap it.
120%define MAKE_CONST_WXSTRING(strname)
121 %{ static const wxString wxPy##strname(wx##strname); %}
122 %immutable;
1b8c7ba6
RD
123 %rename(strname) wxPy##strname;
124 const wxString wxPy##strname;
d14a1e28
RD
125 %mutable;
126%enddef
127
b2dc1044 128%define MAKE_CONST_WXSTRING2(strname, val)
089142a5 129 %{ static const wxString wxPy##strname(val); %}
b2dc1044 130 %immutable;
1b8c7ba6
RD
131 %rename(strname) wxPy##strname;
132 const wxString wxPy##strname;
b2dc1044
RD
133 %mutable;
134%enddef
135
136%define MAKE_CONST_WXSTRING_NOSWIG(strname)
137 %{ static const wxString wxPy##strname(wx##strname); %}
138%enddef
b1462dfa 139
d14a1e28
RD
140// Generate code in the module init for the event types, since they may not be
141// initialized yet when they are used in the static swig_const_table.
142%typemap(consttab) wxEventType; // TODO: how to prevent code inserted into the consttab?
143%typemap(constcode) wxEventType "PyDict_SetItemString(d, \"$symname\", PyInt_FromLong($value));";
144
145
dd9f7fea 146
d07d2bc9
RD
147//----------------------------------------------------------------------
148// Macros for the docstring and autodoc features of SWIG. These will
149// help make the code look more readable, and pretty, as well as help
150// reduce typing in some cases.
dd9f7fea
RD
151
152// Set the docsring for the given full or partial declaration
d07d2bc9
RD
153#ifdef _DO_FULL_DOCS
154 %define DocStr(decl, docstr, details)
155 %feature("docstring") decl docstr details;
156 %enddef
157#else
158 %define DocStr(decl, docstr, details)
159 %feature("docstring") decl docstr;
160 %enddef
161#endif
162
dd9f7fea
RD
163
164// Set the autodoc string for a full or partial declaration
b2dc1044
RD
165%define DocA(decl, astr)
166 %feature("autodoc") decl astr;
167%enddef
dd9f7fea 168
dd9f7fea 169
d07d2bc9
RD
170// Set both the autodoc and docstring for a full or partial declaration
171#ifdef _DO_FULL_DOCS
172 %define DocAStr(decl, astr, docstr, details)
173 %feature("autodoc") decl astr;
174 %feature("docstring") decl docstr details
175 %enddef
176#else
177 %define DocAStr(decl, astr, docstr, details)
178 %feature("autodoc") decl astr;
179 %feature("docstring") decl docstr
180 %enddef
181#endif
dd9f7fea 182
d07d2bc9 183
dd9f7fea
RD
184
185
186// Set the docstring for a decl and then define the decl too. Must use the
187// full declaration of the item.
d07d2bc9
RD
188#ifdef _DO_FULL_DOCS
189 %define DocDeclStr(type, decl, docstr, details)
190 %feature("docstring") decl docstr details;
191 type decl
192 %enddef
193#else
194 %define DocDeclStr(type, decl, docstr, details)
195 %feature("docstring") decl docstr;
196 type decl
197 %enddef
198#endif
dd9f7fea 199
d07d2bc9
RD
200
201
dd9f7fea 202// As above, but also give the decl a new %name
d07d2bc9
RD
203#ifdef _DO_FULL_DOCS
204 %define DocDeclStrName(type, decl, docstr, details, newname)
205 %feature("docstring") decl docstr details;
1b8c7ba6
RD
206 %rename(newname) decl;
207 type decl
d07d2bc9
RD
208 %enddef
209#else
210 %define DocDeclStrName(type, decl, docstr, details, newname)
211 %feature("docstring") decl docstr;
1b8c7ba6
RD
212 %rename(newname) decl;
213 type decl
d07d2bc9
RD
214 %enddef
215#endif
216
dd9f7fea
RD
217
218// Set the autodoc string for a decl and then define the decl too. Must use the
219// full declaration of the item.
220%define DocDeclA(type, decl, astr)
221 %feature("autodoc") decl astr;
222 type decl
223%enddef
224
225// As above, but also give the decl a new %name
226%define DocDeclAName(type, decl, astr, newname)
227 %feature("autodoc") decl astr;
1b8c7ba6
RD
228 %rename(newname) decl;
229 type decl
dd9f7fea
RD
230%enddef
231
232
233
234// Set the autodoc and the docstring for a decl and then define the decl too.
235// Must use the full declaration of the item.
d07d2bc9 236#ifdef _DO_FULL_DOCS
a6ef7362 237 %define DocDeclAStr(type, decl, astr, docstr, details)
d07d2bc9
RD
238 %feature("autodoc") decl astr;
239 %feature("docstring") decl docstr details;
240 type decl
241 %enddef
242#else
a6ef7362 243 %define DocDeclAStr(type, decl, astr, docstr, details)
d07d2bc9
RD
244 %feature("autodoc") decl astr;
245 %feature("docstring") decl docstr;
246 type decl
247 %enddef
248#endif
dd9f7fea 249
d07d2bc9 250
dd9f7fea 251// As above, but also give the decl a new %name
d07d2bc9
RD
252#ifdef _DO_FULL_DOCS
253 %define DocDeclAStrName(type, decl, astr, docstr, details, newname)
254 %feature("autodoc") decl astr;
255 %feature("docstring") decl docstr details;
1b8c7ba6
RD
256 %rename(newname) decl;
257 type decl
d07d2bc9
RD
258 %enddef
259#else
260 %define DocDeclAStrName(type, decl, astr, docstr, details, newname)
261 %feature("autodoc") decl astr;
262 %feature("docstring") decl docstr;
1b8c7ba6
RD
263 %rename(newname) decl;
264 type decl
d07d2bc9
RD
265 %enddef
266#endif
dd9f7fea
RD
267
268
269
270// Set the docstring for a constructor decl and then define the decl too.
271// Must use the full declaration of the item.
d07d2bc9
RD
272#ifdef _DO_FULL_DOCS
273 %define DocCtorStr(decl, docstr, details)
274 %feature("docstring") decl docstr details;
275 decl
276 %enddef
277#else
278 %define DocCtorStr(decl, docstr, details)
279 %feature("docstring") decl docstr;
280 decl
281 %enddef
282#endif
dd9f7fea 283
d07d2bc9 284
dd9f7fea 285// As above, but also give the decl a new %name
d07d2bc9
RD
286#ifdef _DO_FULL_DOCS
287 %define DocCtorStrName(decl, docstr, details, newname)
288 %feature("docstring") decl docstr details;
1b8c7ba6
RD
289 %rename(newname) decl;
290 decl
d07d2bc9
RD
291 %enddef
292#else
293 %define DocCtorStrName(decl, docstr, details, newname)
294 %feature("docstring") decl docstr;
1b8c7ba6
RD
295 %rename(newname) decl;
296 decl
d07d2bc9
RD
297 %enddef
298#endif
dd9f7fea 299
d07d2bc9
RD
300
301// Set the autodoc string for a constructor decl and then define the decl too.
302// Must use the full declaration of the item.
dd9f7fea
RD
303%define DocCtorA(decl, astr)
304 %feature("autodoc") decl astr;
305 decl
306%enddef
307
308// As above, but also give the decl a new %name
d07d2bc9 309%define DocCtorAName(decl, astr, newname)
dd9f7fea 310 %feature("autodoc") decl astr;
1b8c7ba6
RD
311 %rename(newname) decl;
312 decl
dd9f7fea
RD
313%enddef
314
315
316
d07d2bc9
RD
317// Set the autodoc and the docstring for a constructor decl and then define
318// the decl too. Must use the full declaration of the item.
319#ifdef _DO_FULL_DOCS
320 %define DocCtorAStr(decl, astr, docstr, details)
321 %feature("autodoc") decl astr;
322 %feature("docstring") decl docstr details;
323 decl
324 %enddef
325#else
326 %define DocCtorAStr(decl, astr, docstr, details)
327 %feature("autodoc") decl astr;
328 %feature("docstring") decl docstr;
329 decl
330 %enddef
331#endif
dd9f7fea 332
dd9f7fea 333
d07d2bc9
RD
334
335// As above, but also give the decl a new %name
336#ifdef _DO_FULL_DOCS
337 %define DocCtorAStrName(decl, astr, docstr, details, newname)
338 %feature("autodoc") decl astr;
339 %feature("docstring") decl docstr details;
1b8c7ba6
RD
340 %rename(newname) decl;
341 decl
d07d2bc9
RD
342 %enddef
343#else
344 %define DocCtorAStrName(decl, astr, docstr, details, newname)
345 %feature("autodoc") decl astr;
346 %feature("docstring") decl docstr;
1b8c7ba6
RD
347 %rename(newname) decl;
348 decl
d07d2bc9
RD
349 %enddef
350#endif
1e0c8722 351
d07d2bc9 352
dd9f7fea 353
d14a1e28
RD
354%define %newgroup
355%pythoncode {
356%#---------------------------------------------------------------------------
dd9f7fea 357}
d14a1e28 358%enddef
7bf85405 359
1b8c7ba6
RD
360
361// A set of macros to make using %rename easier, since %name has been
362// deprecated...
363%define %Rename(newname, type, decl)
364 %rename(newname) decl;
365 type decl
366%enddef
367
368%define %RenameCtor(newname, decl)
369 %rename(newname) decl;
370 decl
371%enddef
372
d8194e5d
RD
373#ifdef _DO_FULL_DOCS
374 %define %RenameDocCtor(newname, docstr, details, decl)
375 %feature("docstring") decl docstr details;
376 %rename(newname) decl;
377 decl
378 %enddef
379#else
380 %define %RenameDocCtor(newname, docstr, details, decl)
381 %feature("docstring") decl docstr;
382 %rename(newname) decl;
383 decl
384 %enddef
385#endif
1b8c7ba6 386
a7a01418
RD
387
388//---------------------------------------------------------------------------
389// Generates a base_On* method that just wraps a call to the On*, and mark it
390// deprecated. We need this because there is no longer any need for a
391// base_On* method to be able to call the C++ base class method, since our
392// virtualization code can now sense when an attempt is being made to call
393// the base class version from the derived class override.
394
395%define %MAKE_BASE_FUNC(Class, Method)
396 %pythoncode {
397 def base_##Method(*args, **kw):
398 return Class.Method(*args, **kw)
399 base_##Method = wx._deprecated(base_##Method,
400 "Please use Class.Method instead.")
401 }
402%enddef
403
64e8a1f0
RD
404//---------------------------------------------------------------------------
405// Forward declarations and %renames for some classes, so the autodoc strings
406// will be able to use the right types even when the real class declaration is
3ea6e0ec 407// not in the module being processed or seen by %import's.
64e8a1f0
RD
408
409#ifdef BUILDING_RENAMERS
410 #define FORWARD_DECLARE(wxName, Name)
411#else
412 %define FORWARD_DECLARE(wxName, Name)
413 %rename(Name) wxName;
414 class wxName;
415 %enddef
416#endif
417
b2dc1044
RD
418FORWARD_DECLARE(wxString, String);
419FORWARD_DECLARE(wxBitmap, Bitmap);
420FORWARD_DECLARE(wxDateTime, DateTime);
421FORWARD_DECLARE(wxInputStream, InputStream);
422FORWARD_DECLARE(wxDC, DC);
423FORWARD_DECLARE(wxCursor, Cursor);
424FORWARD_DECLARE(wxRegion, Region);
425FORWARD_DECLARE(wxColour, Colour);
426FORWARD_DECLARE(wxFont, Font);
427FORWARD_DECLARE(wxCaret, Caret);
428FORWARD_DECLARE(wxToolTip, ToolTip);
d7466b1d 429FORWARD_DECLARE(wxPyDropTarget, DropTarget);
b2dc1044
RD
430FORWARD_DECLARE(wxImageList, ImageList);
431FORWARD_DECLARE(wxMemoryDC, MemoryDC);
432FORWARD_DECLARE(wxHtmlTagHandler, HtmlTagHandler);
433FORWARD_DECLARE(wxConfigBase, ConfigBase);
434FORWARD_DECLARE(wxIcon, Icon);
3ea6e0ec 435FORWARD_DECLARE(wxStaticBox, StaticBox);
b2dc1044 436
64e8a1f0 437
7bf85405
RD
438//---------------------------------------------------------------------------
439
aeee37c3
RD
440%{
441#if !WXWIN_COMPATIBILITY_2_4
442 #define wxHIDE_READONLY 0
443#endif
444%}
445
446
7bf85405
RD
447// General numeric #define's and etc. Making them all enums makes SWIG use the
448// real macro when making the Python Int
449
450enum {
d14a1e28
RD
451// wxMAJOR_VERSION,
452// wxMINOR_VERSION,
453// wxRELEASE_NUMBER,
7bf85405 454
08127323 455 wxNOT_FOUND,
7bf85405
RD
456
457 wxVSCROLL,
458 wxHSCROLL,
459 wxCAPTION,
460 wxDOUBLE_BORDER,
461 wxSUNKEN_BORDER,
462 wxRAISED_BORDER,
463 wxBORDER,
464 wxSIMPLE_BORDER,
465 wxSTATIC_BORDER,
466 wxTRANSPARENT_WINDOW,
467 wxNO_BORDER,
c96bf2a7 468 wxDEFAULT_CONTROL_BORDER,
5f57b149
RD
469 wxDEFAULT_STATUSBAR_STYLE,
470
7bf85405 471 wxTAB_TRAVERSAL,
1afc06c2 472 wxWANTS_CHARS,
0122b7e3 473 wxPOPUP_WINDOW,
7bf85405 474 wxCENTER_FRAME,
1afc06c2
RD
475 wxCENTRE_ON_SCREEN,
476 wxCENTER_ON_SCREEN,
477
08127323 478 wxCLIP_CHILDREN,
edf2f43e 479 wxCLIP_SIBLINGS,
b8b8dda7 480
6cffbf02
RD
481 wxALWAYS_SHOW_SB,
482
7bf85405
RD
483 wxRETAINED,
484 wxBACKINGSTORE,
b96c7a38 485
7bf85405
RD
486 wxCOLOURED,
487 wxFIXED_LENGTH,
1b62f00d 488
7bf85405
RD
489 wxLB_NEEDED_SB,
490 wxLB_ALWAYS_SB,
491 wxLB_SORT,
492 wxLB_SINGLE,
493 wxLB_MULTIPLE,
494 wxLB_EXTENDED,
495 wxLB_OWNERDRAW,
496 wxLB_HSCROLL,
497 wxPROCESS_ENTER,
498 wxPASSWORD,
b1e930a5 499
7bf85405
RD
500 wxCB_SIMPLE,
501 wxCB_DROPDOWN,
502 wxCB_SORT,
503 wxCB_READONLY,
504 wxRA_HORIZONTAL,
505 wxRA_VERTICAL,
ed175610
RD
506 wxRA_SPECIFY_ROWS,
507 wxRA_SPECIFY_COLS,
8815349a 508 wxRA_USE_CHECKBOX,
7bf85405 509 wxRB_GROUP,
1e4a197e 510 wxRB_SINGLE,
7bf85405
RD
511 wxSB_HORIZONTAL,
512 wxSB_VERTICAL,
8815349a 513 wxRB_USE_CHECKBOX,
cf694132 514 wxST_SIZEGRIP,
2abc0a0f 515 wxST_NO_AUTORESIZE,
203c2f9a 516
7bf85405
RD
517 wxFLOOD_SURFACE,
518 wxFLOOD_BORDER,
519 wxODDEVEN_RULE,
520 wxWINDING_RULE,
521 wxTOOL_TOP,
522 wxTOOL_BOTTOM,
523 wxTOOL_LEFT,
524 wxTOOL_RIGHT,
525 wxOK,
526 wxYES_NO,
527 wxCANCEL,
528 wxYES,
529 wxNO,
1afc06c2
RD
530 wxNO_DEFAULT,
531 wxYES_DEFAULT,
7bf85405
RD
532 wxICON_EXCLAMATION,
533 wxICON_HAND,
534 wxICON_QUESTION,
535 wxICON_INFORMATION,
536 wxICON_STOP,
537 wxICON_ASTERISK,
538 wxICON_MASK,
1afc06c2
RD
539 wxICON_WARNING,
540 wxICON_ERROR,
541
542 wxFORWARD,
543 wxBACKWARD,
544 wxRESET,
545 wxHELP,
546 wxMORE,
547 wxSETUP,
548
f3d9dc1d 549
7bf85405
RD
550 wxSIZE_AUTO_WIDTH,
551 wxSIZE_AUTO_HEIGHT,
552 wxSIZE_AUTO,
553 wxSIZE_USE_EXISTING,
554 wxSIZE_ALLOW_MINUS_ONE,
02b800ce 555 wxSIZE_FORCE,
7bf85405
RD
556 wxPORTRAIT,
557 wxLANDSCAPE,
bb0054cd
RD
558 wxPRINT_QUALITY_HIGH,
559 wxPRINT_QUALITY_MEDIUM,
560 wxPRINT_QUALITY_LOW,
561 wxPRINT_QUALITY_DRAFT,
26e335b8 562
3eb221f6
RD
563 wxID_ANY,
564 wxID_SEPARATOR,
02b800ce 565 wxID_NONE,
3eb221f6 566
d14a1e28 567 wxID_LOWEST,
7bf85405
RD
568 wxID_OPEN,
569 wxID_CLOSE,
570 wxID_NEW,
571 wxID_SAVE,
572 wxID_SAVEAS,
573 wxID_REVERT,
574 wxID_EXIT,
575 wxID_UNDO,
576 wxID_REDO,
577 wxID_HELP,
578 wxID_PRINT,
579 wxID_PRINT_SETUP,
580 wxID_PREVIEW,
581 wxID_ABOUT,
582 wxID_HELP_CONTENTS,
583 wxID_HELP_COMMANDS,
584 wxID_HELP_PROCEDURES,
585 wxID_HELP_CONTEXT,
b5a5d647 586 wxID_CLOSE_ALL,
1a10a058 587 wxID_PREFERENCES,
26e335b8 588
7bf85405
RD
589 wxID_CUT,
590 wxID_COPY,
591 wxID_PASTE,
592 wxID_CLEAR,
593 wxID_FIND,
d56cebe7
RD
594 wxID_DUPLICATE,
595 wxID_SELECTALL,
26e335b8 596
3ef86e32
RD
597 wxID_DELETE,
598 wxID_REPLACE,
599 wxID_REPLACE_ALL,
600 wxID_PROPERTIES,
601
602 wxID_VIEW_DETAILS,
603 wxID_VIEW_LARGEICONS,
604 wxID_VIEW_SMALLICONS,
605 wxID_VIEW_LIST,
606 wxID_VIEW_SORTDATE,
607 wxID_VIEW_SORTNAME,
608 wxID_VIEW_SORTSIZE,
609 wxID_VIEW_SORTTYPE,
610
7bf85405
RD
611 wxID_FILE1,
612 wxID_FILE2,
613 wxID_FILE3,
614 wxID_FILE4,
615 wxID_FILE5,
616 wxID_FILE6,
617 wxID_FILE7,
618 wxID_FILE8,
619 wxID_FILE9,
26e335b8 620
7bf85405
RD
621 wxID_OK,
622 wxID_CANCEL,
623 wxID_APPLY,
624 wxID_YES,
625 wxID_NO,
cf694132 626 wxID_STATIC,
f3d9dc1d
RD
627 wxID_FORWARD,
628 wxID_BACKWARD,
26e335b8 629 wxID_DEFAULT,
f3d9dc1d 630 wxID_MORE,
26e335b8
RD
631 wxID_SETUP,
632 wxID_RESET,
633 wxID_CONTEXT_HELP,
634 wxID_YESTOALL,
635 wxID_NOTOALL,
636 wxID_ABORT,
637 wxID_RETRY,
638 wxID_IGNORE,
f3d9dc1d 639
1a1ed526
RD
640 wxID_ADD,
641 wxID_REMOVE,
642
643 wxID_UP,
644 wxID_DOWN,
645 wxID_HOME,
646 wxID_REFRESH,
647 wxID_STOP,
648 wxID_INDEX,
649
650 wxID_BOLD,
651 wxID_ITALIC,
652 wxID_JUSTIFY_CENTER,
653 wxID_JUSTIFY_FILL,
654 wxID_JUSTIFY_RIGHT,
655 wxID_JUSTIFY_LEFT,
656 wxID_UNDERLINE,
657 wxID_INDENT,
658 wxID_UNINDENT,
659 wxID_ZOOM_100,
660 wxID_ZOOM_FIT,
661 wxID_ZOOM_IN,
662 wxID_ZOOM_OUT,
663 wxID_UNDELETE,
664 wxID_REVERT_TO_SAVED,
665
d14a1e28 666 wxID_HIGHEST,
dd9f7fea 667
7bf85405
RD
668 wxOPEN,
669 wxSAVE,
670 wxHIDE_READONLY,
671 wxOVERWRITE_PROMPT,
2abc0a0f 672 wxFILE_MUST_EXIST,
f6bcfd97 673 wxMULTIPLE,
1b62f00d 674 wxCHANGE_DIR,
7bf85405
RD
675
676 wxACCEL_ALT,
677 wxACCEL_CTRL,
678 wxACCEL_SHIFT,
f6bcfd97 679 wxACCEL_NORMAL,
bb0054cd
RD
680
681 wxPD_AUTO_HIDE,
682 wxPD_APP_MODAL,
683 wxPD_CAN_ABORT,
a08cbc01
RD
684 wxPD_ELAPSED_TIME,
685 wxPD_ESTIMATED_TIME,
686 wxPD_REMAINING_TIME,
191dea6d
RD
687 wxPD_SMOOTH,
688 wxPD_CAN_SKIP,
bb0054cd 689
7cdaed0b 690 wxDD_NEW_DIR_BUTTON,
daa3eac9 691 wxDD_DEFAULT_STYLE,
7cdaed0b 692
8bf5d46e 693 wxMENU_TEAROFF,
1afc06c2 694 wxMB_DOCKABLE,
8bf5d46e 695 wxNO_FULL_REPAINT_ON_RESIZE,
6a8b9da4
RD
696 wxFULL_REPAINT_ON_RESIZE,
697
1afc06c2
RD
698 wxLI_HORIZONTAL,
699 wxLI_VERTICAL,
700
d1679124 701 wxWS_EX_VALIDATE_RECURSIVELY,
0122b7e3 702 wxWS_EX_BLOCK_EVENTS,
78e8819c 703 wxWS_EX_TRANSIENT,
ecc08ead 704
3ef86e32
RD
705 wxWS_EX_THEMED_BACKGROUND,
706 wxWS_EX_PROCESS_IDLE,
707 wxWS_EX_PROCESS_UI_UPDATES,
708
709
ecc08ead
RD
710 // Mapping modes (as per Windows)
711 wxMM_TEXT,
712 wxMM_LOMETRIC,
713 wxMM_HIMETRIC,
714 wxMM_LOENGLISH,
715 wxMM_HIENGLISH,
716 wxMM_TWIPS,
717 wxMM_ISOTROPIC,
718 wxMM_ANISOTROPIC,
719 wxMM_POINTS,
720 wxMM_METRIC,
721
3eb221f6 722
1e4a197e
RD
723 // It looks like wxTabCtrl may rise from the dead. Uncomment these if
724 // it gets an implementation for all platforms...
725// wxTC_RIGHTJUSTIFY,
726// wxTC_FIXEDWIDTH,
727// wxTC_TOP,
728// wxTC_LEFT,
729// wxTC_RIGHT,
730// wxTC_BOTTOM,
731// wxTC_MULTILINE,
732// wxTC_OWNERDRAW,
733
7bf85405
RD
734};
735
736
d14a1e28
RD
737
738enum wxGeometryCentre
739{
740 wxCENTRE = 0x0001,
741 wxCENTER = wxCENTRE
742};
743
744
745enum wxOrientation
746{
747 wxHORIZONTAL,
748 wxVERTICAL,
749 wxBOTH
750};
751
752enum wxDirection
753{
754 wxLEFT,
755 wxRIGHT,
756 wxUP,
757 wxDOWN,
758
759 wxTOP,
760 wxBOTTOM,
761
762 wxNORTH,
763 wxSOUTH,
764 wxWEST,
765 wxEAST,
766
767 wxALL
768};
769
770enum wxAlignment
771{
772 wxALIGN_NOT,
773 wxALIGN_CENTER_HORIZONTAL,
774 wxALIGN_CENTRE_HORIZONTAL,
775 wxALIGN_LEFT,
776 wxALIGN_TOP,
777 wxALIGN_RIGHT,
778 wxALIGN_BOTTOM,
779 wxALIGN_CENTER_VERTICAL,
780 wxALIGN_CENTRE_VERTICAL,
781
782 wxALIGN_CENTER,
783 wxALIGN_CENTRE,
784
785 wxALIGN_MASK,
786};
787
788enum wxStretch
789{
790 wxSTRETCH_NOT,
791 wxSHRINK,
792 wxGROW,
793 wxEXPAND,
794 wxSHAPED,
f52e0cf4 795 wxFIXED_MINSIZE,
d14a1e28 796 wxTILE,
33e10b88 797 wxADJUST_MINSIZE,
d14a1e28
RD
798};
799
800
ebf4302c
RD
801enum wxBorder
802{
803 wxBORDER_DEFAULT,
804 wxBORDER_NONE,
805 wxBORDER_STATIC,
806 wxBORDER_SIMPLE,
807 wxBORDER_RAISED,
808 wxBORDER_SUNKEN,
809 wxBORDER_DOUBLE,
810 wxBORDER_MASK,
811};
812
813
1a1ed526
RD
814enum wxBackgroundStyle
815{
816 wxBG_STYLE_SYSTEM,
817 wxBG_STYLE_COLOUR,
818 wxBG_STYLE_CUSTOM
819};
820
821
7bf85405
RD
822enum {
823 wxDEFAULT ,
824 wxDECORATIVE,
825 wxROMAN,
826 wxSCRIPT,
827 wxSWISS,
828 wxMODERN,
829 wxTELETYPE,
830 wxVARIABLE,
831 wxFIXED,
832 wxNORMAL,
833 wxLIGHT,
834 wxBOLD,
835 wxITALIC,
836 wxSLANT,
837 wxSOLID,
838 wxDOT,
839 wxLONG_DASH,
840 wxSHORT_DASH,
841 wxDOT_DASH,
842 wxUSER_DASH,
843 wxTRANSPARENT,
844 wxSTIPPLE,
8224a808
RD
845 wxSTIPPLE_MASK,
846 wxSTIPPLE_MASK_OPAQUE,
7bf85405
RD
847 wxBDIAGONAL_HATCH,
848 wxCROSSDIAG_HATCH,
849 wxFDIAGONAL_HATCH,
850 wxCROSS_HATCH,
851 wxHORIZONTAL_HATCH,
852 wxVERTICAL_HATCH,
853 wxJOIN_BEVEL,
854 wxJOIN_MITER,
855 wxJOIN_ROUND,
856 wxCAP_ROUND,
857 wxCAP_PROJECTING,
858 wxCAP_BUTT
859};
860
861typedef enum {
862 wxCLEAR, // 0
863 wxXOR, // src XOR dst
864 wxINVERT, // NOT dst
865 wxOR_REVERSE, // src OR (NOT dst)
866 wxAND_REVERSE,// src AND (NOT dst)
867 wxCOPY, // src
868 wxAND, // src AND dst
869 wxAND_INVERT, // (NOT src) AND dst
870 wxNO_OP, // dst
871 wxNOR, // (NOT src) AND (NOT dst)
872 wxEQUIV, // (NOT src) XOR dst
873 wxSRC_INVERT, // (NOT src)
874 wxOR_INVERT, // (NOT src) OR dst
875 wxNAND, // (NOT src) OR (NOT dst)
876 wxOR, // src OR dst
877 wxSET, // 1
26b9cf27
RD
878// wxSRC_OR, // source _bitmap_ OR destination
879// wxSRC_AND // source _bitmap_ AND destination
7bf85405
RD
880} form_ops_t;
881
65fe3842 882enum wxKeyCode {
08dcfb92
RD
883 WXK_BACK = 8,
884 WXK_TAB = 9,
885 WXK_RETURN = 13,
886 WXK_ESCAPE = 27,
887 WXK_SPACE = 32,
888 WXK_DELETE = 127,
889
890 WXK_START = 300,
891 WXK_LBUTTON,
892 WXK_RBUTTON,
893 WXK_CANCEL,
894 WXK_MBUTTON,
895 WXK_CLEAR,
896 WXK_SHIFT,
897 WXK_ALT,
898 WXK_CONTROL,
899 WXK_MENU,
900 WXK_PAUSE,
901 WXK_CAPITAL,
902 WXK_PRIOR, /* Page up */
903 WXK_NEXT, /* Page down */
904 WXK_END,
905 WXK_HOME,
906 WXK_LEFT,
907 WXK_UP,
908 WXK_RIGHT,
909 WXK_DOWN,
910 WXK_SELECT,
911 WXK_PRINT,
912 WXK_EXECUTE,
913 WXK_SNAPSHOT,
914 WXK_INSERT,
915 WXK_HELP,
916 WXK_NUMPAD0,
917 WXK_NUMPAD1,
918 WXK_NUMPAD2,
919 WXK_NUMPAD3,
920 WXK_NUMPAD4,
921 WXK_NUMPAD5,
922 WXK_NUMPAD6,
923 WXK_NUMPAD7,
924 WXK_NUMPAD8,
925 WXK_NUMPAD9,
926 WXK_MULTIPLY,
927 WXK_ADD,
928 WXK_SEPARATOR,
929 WXK_SUBTRACT,
930 WXK_DECIMAL,
931 WXK_DIVIDE,
932 WXK_F1,
933 WXK_F2,
934 WXK_F3,
935 WXK_F4,
936 WXK_F5,
937 WXK_F6,
938 WXK_F7,
939 WXK_F8,
940 WXK_F9,
941 WXK_F10,
942 WXK_F11,
943 WXK_F12,
944 WXK_F13,
945 WXK_F14,
946 WXK_F15,
947 WXK_F16,
948 WXK_F17,
949 WXK_F18,
950 WXK_F19,
951 WXK_F20,
952 WXK_F21,
953 WXK_F22,
954 WXK_F23,
955 WXK_F24,
956 WXK_NUMLOCK,
957 WXK_SCROLL,
958 WXK_PAGEUP,
959 WXK_PAGEDOWN,
960
961 WXK_NUMPAD_SPACE,
962 WXK_NUMPAD_TAB,
963 WXK_NUMPAD_ENTER,
964 WXK_NUMPAD_F1,
965 WXK_NUMPAD_F2,
966 WXK_NUMPAD_F3,
967 WXK_NUMPAD_F4,
968 WXK_NUMPAD_HOME,
969 WXK_NUMPAD_LEFT,
970 WXK_NUMPAD_UP,
971 WXK_NUMPAD_RIGHT,
972 WXK_NUMPAD_DOWN,
973 WXK_NUMPAD_PRIOR,
974 WXK_NUMPAD_PAGEUP,
975 WXK_NUMPAD_NEXT,
976 WXK_NUMPAD_PAGEDOWN,
977 WXK_NUMPAD_END,
978 WXK_NUMPAD_BEGIN,
979 WXK_NUMPAD_INSERT,
980 WXK_NUMPAD_DELETE,
981 WXK_NUMPAD_EQUAL,
982 WXK_NUMPAD_MULTIPLY,
983 WXK_NUMPAD_ADD,
984 WXK_NUMPAD_SEPARATOR,
985 WXK_NUMPAD_SUBTRACT,
986 WXK_NUMPAD_DECIMAL,
987 WXK_NUMPAD_DIVIDE,
988
989 WXK_WINDOWS_LEFT,
990 WXK_WINDOWS_RIGHT,
991 WXK_WINDOWS_MENU,
992
993 WXK_COMMAND,
994
995 // Hardware-specific buttons
996 WXK_SPECIAL1 = 193,
997 WXK_SPECIAL2,
998 WXK_SPECIAL3,
999 WXK_SPECIAL4,
1000 WXK_SPECIAL5,
1001 WXK_SPECIAL6,
1002 WXK_SPECIAL7,
1003 WXK_SPECIAL8,
1004 WXK_SPECIAL9,
1005 WXK_SPECIAL10,
1006 WXK_SPECIAL11,
1007 WXK_SPECIAL12,
1008 WXK_SPECIAL13,
1009 WXK_SPECIAL14,
1010 WXK_SPECIAL15,
1011 WXK_SPECIAL16,
1012 WXK_SPECIAL17,
1013 WXK_SPECIAL18,
1014 WXK_SPECIAL19,
1015 WXK_SPECIAL20
7bf85405
RD
1016};
1017
0a651eb8 1018
cf694132
RD
1019
1020typedef enum {
1021 wxPAPER_NONE, // Use specific dimensions
1022 wxPAPER_LETTER, // Letter, 8 1/2 by 11 inches
1023 wxPAPER_LEGAL, // Legal, 8 1/2 by 14 inches
1024 wxPAPER_A4, // A4 Sheet, 210 by 297 millimeters
1025 wxPAPER_CSHEET, // C Sheet, 17 by 22 inches
1026 wxPAPER_DSHEET, // D Sheet, 22 by 34 inches
1027 wxPAPER_ESHEET, // E Sheet, 34 by 44 inches
1028 wxPAPER_LETTERSMALL, // Letter Small, 8 1/2 by 11 inches
1029 wxPAPER_TABLOID, // Tabloid, 11 by 17 inches
1030 wxPAPER_LEDGER, // Ledger, 17 by 11 inches
1031 wxPAPER_STATEMENT, // Statement, 5 1/2 by 8 1/2 inches
1032 wxPAPER_EXECUTIVE, // Executive, 7 1/4 by 10 1/2 inches
1033 wxPAPER_A3, // A3 sheet, 297 by 420 millimeters
1034 wxPAPER_A4SMALL, // A4 small sheet, 210 by 297 millimeters
1035 wxPAPER_A5, // A5 sheet, 148 by 210 millimeters
1036 wxPAPER_B4, // B4 sheet, 250 by 354 millimeters
1037 wxPAPER_B5, // B5 sheet, 182-by-257-millimeter paper
1038 wxPAPER_FOLIO, // Folio, 8-1/2-by-13-inch paper
1039 wxPAPER_QUARTO, // Quarto, 215-by-275-millimeter paper
1040 wxPAPER_10X14, // 10-by-14-inch sheet
1041 wxPAPER_11X17, // 11-by-17-inch sheet
1042 wxPAPER_NOTE, // Note, 8 1/2 by 11 inches
1043 wxPAPER_ENV_9, // #9 Envelope, 3 7/8 by 8 7/8 inches
1044 wxPAPER_ENV_10, // #10 Envelope, 4 1/8 by 9 1/2 inches
1045 wxPAPER_ENV_11, // #11 Envelope, 4 1/2 by 10 3/8 inches
1046 wxPAPER_ENV_12, // #12 Envelope, 4 3/4 by 11 inches
1047 wxPAPER_ENV_14, // #14 Envelope, 5 by 11 1/2 inches
1048 wxPAPER_ENV_DL, // DL Envelope, 110 by 220 millimeters
1049 wxPAPER_ENV_C5, // C5 Envelope, 162 by 229 millimeters
1050 wxPAPER_ENV_C3, // C3 Envelope, 324 by 458 millimeters
1051 wxPAPER_ENV_C4, // C4 Envelope, 229 by 324 millimeters
1052 wxPAPER_ENV_C6, // C6 Envelope, 114 by 162 millimeters
1053 wxPAPER_ENV_C65, // C65 Envelope, 114 by 229 millimeters
1054 wxPAPER_ENV_B4, // B4 Envelope, 250 by 353 millimeters
1055 wxPAPER_ENV_B5, // B5 Envelope, 176 by 250 millimeters
1056 wxPAPER_ENV_B6, // B6 Envelope, 176 by 125 millimeters
1057 wxPAPER_ENV_ITALY, // Italy Envelope, 110 by 230 millimeters
1058 wxPAPER_ENV_MONARCH, // Monarch Envelope, 3 7/8 by 7 1/2 inches
1059 wxPAPER_ENV_PERSONAL, // 6 3/4 Envelope, 3 5/8 by 6 1/2 inches
1060 wxPAPER_FANFOLD_US, // US Std Fanfold, 14 7/8 by 11 inches
1061 wxPAPER_FANFOLD_STD_GERMAN, // German Std Fanfold, 8 1/2 by 12 inches
1062 wxPAPER_FANFOLD_LGL_GERMAN, // German Legal Fanfold, 8 1/2 by 13 inches
1063
1064 wxPAPER_ISO_B4, // B4 (ISO) 250 x 353 mm
1065 wxPAPER_JAPANESE_POSTCARD, // Japanese Postcard 100 x 148 mm
1066 wxPAPER_9X11, // 9 x 11 in
1067 wxPAPER_10X11, // 10 x 11 in
1068 wxPAPER_15X11, // 15 x 11 in
1069 wxPAPER_ENV_INVITE, // Envelope Invite 220 x 220 mm
1070 wxPAPER_LETTER_EXTRA, // Letter Extra 9 \275 x 12 in
1071 wxPAPER_LEGAL_EXTRA, // Legal Extra 9 \275 x 15 in
1072 wxPAPER_TABLOID_EXTRA, // Tabloid Extra 11.69 x 18 in
1073 wxPAPER_A4_EXTRA, // A4 Extra 9.27 x 12.69 in
1074 wxPAPER_LETTER_TRANSVERSE, // Letter Transverse 8 \275 x 11 in
1075 wxPAPER_A4_TRANSVERSE, // A4 Transverse 210 x 297 mm
1076 wxPAPER_LETTER_EXTRA_TRANSVERSE, // Letter Extra Transverse 9\275 x 12 in
1077 wxPAPER_A_PLUS, // SuperA/SuperA/A4 227 x 356 mm
1078 wxPAPER_B_PLUS, // SuperB/SuperB/A3 305 x 487 mm
1079 wxPAPER_LETTER_PLUS, // Letter Plus 8.5 x 12.69 in
1080 wxPAPER_A4_PLUS, // A4 Plus 210 x 330 mm
1081 wxPAPER_A5_TRANSVERSE, // A5 Transverse 148 x 210 mm
1082 wxPAPER_B5_TRANSVERSE, // B5 (JIS) Transverse 182 x 257 mm
1083 wxPAPER_A3_EXTRA, // A3 Extra 322 x 445 mm
1084 wxPAPER_A5_EXTRA, // A5 Extra 174 x 235 mm
1085 wxPAPER_B5_EXTRA, // B5 (ISO) Extra 201 x 276 mm
1086 wxPAPER_A2, // A2 420 x 594 mm
1087 wxPAPER_A3_TRANSVERSE, // A3 Transverse 297 x 420 mm
6c75a4cf
RD
1088 wxPAPER_A3_EXTRA_TRANSVERSE, // A3 Extra Transverse 322 x 445 mm
1089
1090 wxPAPER_DBL_JAPANESE_POSTCARD,/* Japanese Double Postcard 200 x 148 mm */
1091 wxPAPER_A6, /* A6 105 x 148 mm */
1092 wxPAPER_JENV_KAKU2, /* Japanese Envelope Kaku #2 */
1093 wxPAPER_JENV_KAKU3, /* Japanese Envelope Kaku #3 */
1094 wxPAPER_JENV_CHOU3, /* Japanese Envelope Chou #3 */
1095 wxPAPER_JENV_CHOU4, /* Japanese Envelope Chou #4 */
1096 wxPAPER_LETTER_ROTATED, /* Letter Rotated 11 x 8 1/2 in */
1097 wxPAPER_A3_ROTATED, /* A3 Rotated 420 x 297 mm */
1098 wxPAPER_A4_ROTATED, /* A4 Rotated 297 x 210 mm */
1099 wxPAPER_A5_ROTATED, /* A5 Rotated 210 x 148 mm */
1100 wxPAPER_B4_JIS_ROTATED, /* B4 (JIS) Rotated 364 x 257 mm */
1101 wxPAPER_B5_JIS_ROTATED, /* B5 (JIS) Rotated 257 x 182 mm */
1102 wxPAPER_JAPANESE_POSTCARD_ROTATED,/* Japanese Postcard Rotated 148 x 100 mm */
1103 wxPAPER_DBL_JAPANESE_POSTCARD_ROTATED,/* Double Japanese Postcard Rotated 148 x 200 mm */
1104 wxPAPER_A6_ROTATED, /* A6 Rotated 148 x 105 mm */
1105 wxPAPER_JENV_KAKU2_ROTATED, /* Japanese Envelope Kaku #2 Rotated */
1106 wxPAPER_JENV_KAKU3_ROTATED, /* Japanese Envelope Kaku #3 Rotated */
1107 wxPAPER_JENV_CHOU3_ROTATED, /* Japanese Envelope Chou #3 Rotated */
1108 wxPAPER_JENV_CHOU4_ROTATED, /* Japanese Envelope Chou #4 Rotated */
1109 wxPAPER_B6_JIS, /* B6 (JIS) 128 x 182 mm */
1110 wxPAPER_B6_JIS_ROTATED, /* B6 (JIS) Rotated 182 x 128 mm */
1111 wxPAPER_12X11, /* 12 x 11 in */
1112 wxPAPER_JENV_YOU4, /* Japanese Envelope You #4 */
1113 wxPAPER_JENV_YOU4_ROTATED, /* Japanese Envelope You #4 Rotated */
1114 wxPAPER_P16K, /* PRC 16K 146 x 215 mm */
1115 wxPAPER_P32K, /* PRC 32K 97 x 151 mm */
1116 wxPAPER_P32KBIG, /* PRC 32K(Big) 97 x 151 mm */
1117 wxPAPER_PENV_1, /* PRC Envelope #1 102 x 165 mm */
1118 wxPAPER_PENV_2, /* PRC Envelope #2 102 x 176 mm */
1119 wxPAPER_PENV_3, /* PRC Envelope #3 125 x 176 mm */
1120 wxPAPER_PENV_4, /* PRC Envelope #4 110 x 208 mm */
1121 wxPAPER_PENV_5, /* PRC Envelope #5 110 x 220 mm */
1122 wxPAPER_PENV_6, /* PRC Envelope #6 120 x 230 mm */
1123 wxPAPER_PENV_7, /* PRC Envelope #7 160 x 230 mm */
1124 wxPAPER_PENV_8, /* PRC Envelope #8 120 x 309 mm */
1125 wxPAPER_PENV_9, /* PRC Envelope #9 229 x 324 mm */
1126 wxPAPER_PENV_10, /* PRC Envelope #10 324 x 458 mm */
1127 wxPAPER_P16K_ROTATED, /* PRC 16K Rotated */
1128 wxPAPER_P32K_ROTATED, /* PRC 32K Rotated */
1129 wxPAPER_P32KBIG_ROTATED, /* PRC 32K(Big) Rotated */
1130 wxPAPER_PENV_1_ROTATED, /* PRC Envelope #1 Rotated 165 x 102 mm */
1131 wxPAPER_PENV_2_ROTATED, /* PRC Envelope #2 Rotated 176 x 102 mm */
1132 wxPAPER_PENV_3_ROTATED, /* PRC Envelope #3 Rotated 176 x 125 mm */
1133 wxPAPER_PENV_4_ROTATED, /* PRC Envelope #4 Rotated 208 x 110 mm */
1134 wxPAPER_PENV_5_ROTATED, /* PRC Envelope #5 Rotated 220 x 110 mm */
1135 wxPAPER_PENV_6_ROTATED, /* PRC Envelope #6 Rotated 230 x 120 mm */
1136 wxPAPER_PENV_7_ROTATED, /* PRC Envelope #7 Rotated 230 x 160 mm */
1137 wxPAPER_PENV_8_ROTATED, /* PRC Envelope #8 Rotated 309 x 120 mm */
1138 wxPAPER_PENV_9_ROTATED, /* PRC Envelope #9 Rotated 324 x 229 mm */
1139 wxPAPER_PENV_10_ROTATED /* PRC Envelope #10 Rotated 458 x 324 m */
1140
cf694132
RD
1141} wxPaperSize ;
1142
bb0054cd
RD
1143typedef enum {
1144 wxDUPLEX_SIMPLEX, // Non-duplex
1145 wxDUPLEX_HORIZONTAL,
1146 wxDUPLEX_VERTICAL
1147} wxDuplexMode;
1148
cf694132
RD
1149
1150
e9159fe8
RD
1151// menu and toolbar item kinds
1152enum wxItemKind
1153{
addd64ee 1154 wxITEM_SEPARATOR,
546bfbea
VS
1155 wxITEM_NORMAL,
1156 wxITEM_CHECK,
1157 wxITEM_RADIO,
1158 wxITEM_MAX
e9159fe8
RD
1159};
1160
64e8a1f0 1161
23bed520
RD
1162enum wxHitTest
1163{
1164 wxHT_NOWHERE,
1165
1166 // scrollbar
1167 wxHT_SCROLLBAR_FIRST = wxHT_NOWHERE,
1168 wxHT_SCROLLBAR_ARROW_LINE_1, // left or upper arrow to scroll by line
1169 wxHT_SCROLLBAR_ARROW_LINE_2, // right or down
1170 wxHT_SCROLLBAR_ARROW_PAGE_1, // left or upper arrow to scroll by page
1171 wxHT_SCROLLBAR_ARROW_PAGE_2, // right or down
1172 wxHT_SCROLLBAR_THUMB, // on the thumb
1173 wxHT_SCROLLBAR_BAR_1, // bar to the left/above the thumb
1174 wxHT_SCROLLBAR_BAR_2, // bar to the right/below the thumb
1175 wxHT_SCROLLBAR_LAST,
1176
1177 // window
1178 wxHT_WINDOW_OUTSIDE, // not in this window at all
1179 wxHT_WINDOW_INSIDE, // in the client area
1180 wxHT_WINDOW_VERT_SCROLLBAR, // on the vertical scrollbar
1181 wxHT_WINDOW_HORZ_SCROLLBAR, // on the horizontal scrollbar
1182 wxHT_WINDOW_CORNER, // on the corner between 2 scrollbars
1183
1184 wxHT_MAX
1185};
1186
1187
3ef86e32 1188
a780a8dc 1189enum wxKeyModifier
3ef86e32 1190{
a780a8dc
RD
1191 wxMOD_NONE,
1192 wxMOD_ALT,
1193 wxMOD_CONTROL,
1194 wxMOD_ALTGR,
1195 wxMOD_SHIFT,
1196 wxMOD_META,
1197 wxMOD_WIN,
1198 wxMOD_CMD,
1199 wxMOD_ALL
3ef86e32
RD
1200};
1201
1202
1203enum wxUpdateUI
1204{
1205 wxUPDATE_UI_NONE = 0x0000,
1206 wxUPDATE_UI_RECURSE = 0x0001,
1207 wxUPDATE_UI_FROMIDLE = 0x0002 // Invoked from On(Internal)Idle
1208};
1209
1210
23bed520 1211
7bf85405
RD
1212//---------------------------------------------------------------------------
1213