1 /////////////////////////////////////////////////////////////////////////////
 
   3 // Purpose:     Definitions and stuff
 
   9 // Copyright:   (c) 1998 by Total Control Software
 
  10 // Licence:     wxWindows license
 
  11 /////////////////////////////////////////////////////////////////////////////
 
  14 //---------------------------------------------------------------------------
 
  16 // Globally turn on the autodoc feature
 
  17 %feature("autodoc", "1");  // 0 == no param types, 1 == show param types
 
  19 // Turn on kwargs by default
 
  20 %feature("kwargs", "1");
 
  22 // Don't generate separate wrappers for each default args combination
 
  23 %feature("compactdefaultargs");
 
  25 #if SWIG_VERSION < 0x010328
 
  26 // Don't generate default ctors or dtors if the C++ doesn't have them
 
  27 %feature("nodefault");
 
  29 // This is the SWIG 1.3.28 way to do the above...
 
  30 %feature("nodefaultctor");
 
  31 %feature("nodefaultdtor");
 
  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
 
  37 #pragma SWIG nowarn=314
 
  39 //---------------------------------------------------------------------------
 
  41 // Tell SWIG to wrap all the wrappers with our thread protection
 
  42 %define %threadWrapperOn
 
  44     PyThreadState* __tstate = wxPyBeginAllowThreads();
 
  46     wxPyEndAllowThreads(__tstate);
 
  47     if (PyErr_Occurred()) SWIG_fail;
 
  51 // This one will turn off the generation of the thread wrapper code
 
  52 %define %threadWrapperOff
 
  56 // Turn it on by default
 
  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)
 
  63     if (!wxPyCheckForApp()) SWIG_fail;
 
  64     PyThreadState* __tstate = wxPyBeginAllowThreads();
 
  66     wxPyEndAllowThreads(__tstate);
 
  67     if (PyErr_Occurred()) SWIG_fail;
 
  73 //---------------------------------------------------------------------------
 
  74 // some type definitions to simplify things for SWIG
 
  76 typedef int             wxEventType;
 
  77 typedef unsigned int    size_t;
 
  78 typedef unsigned int    time_t;
 
  79 typedef unsigned char   byte;
 
  80 typedef unsigned long   wxUIntPtr;
 
  82 #define wxWindowID      int
 
  85 #define wxUint32        unsigned int
 
  88 //----------------------------------------------------------------------
 
  89 // Various SWIG macros and such
 
  91 #define %pythonAppend   %feature("pythonappend")
 
  92 #define %pythonPrepend  %feature("pythonprepend")
 
  93 #define %noautodoc      %feature("noautodoc")
 
  95 #if SWIG_VERSION >= 0x010327
 
  96 #define %kwargs         %feature("kwargs", "1")
 
  97 #define %nokwargs       %feature("kwargs", "0")
 
  99 #define %kwargs         %feature("kwargs")
 
 100 #define %nokwargs       %feature("nokwargs")
 
 103 #define %disownarg(typespec)   %typemap(in) typespec = SWIGTYPE* DISOWN
 
 104 #define %cleardisown(typespec) %typemap(in) typespec
 
 109 #define %pythoncode     %insert("python")
 
 112 #define WXUNUSED(x)     x
 
 115 // Given the name of a wxChar (or wxString) constant in C++, make
 
 116 // a static wxString for wxPython, and also let SWIG wrap it.
 
 117 %define MAKE_CONST_WXSTRING(strname)
 
 118     %{ static const wxString wxPy##strname(wx##strname); %}
 
 120     %rename(strname) wxPy##strname;
 
 121     const wxString wxPy##strname;
 
 125 %define MAKE_CONST_WXSTRING2(strname, val)
 
 126     %{ static const wxString wxPy##strname(val); %}
 
 128     %rename(strname) wxPy##strname;
 
 129     const wxString wxPy##strname;
 
 133 %define MAKE_CONST_WXSTRING_NOSWIG(strname)
 
 134     %{ static const wxString wxPy##strname(wx##strname); %}
 
 137 // Generate code in the module init for the event types, since they may not be
 
 138 // initialized yet when they are used in the static swig_const_table.
 
 139 %typemap(consttab) wxEventType; // TODO: how to prevent code inserted into the consttab?
 
 140 %typemap(constcode) wxEventType "PyDict_SetItemString(d, \"$symname\", PyInt_FromLong($value));";
 
 144 //----------------------------------------------------------------------
 
 145 // Macros for the docstring and autodoc features of SWIG.  These will
 
 146 // help make the code look more readable, and pretty, as well as help
 
 147 // reduce typing in some cases.
 
 149 // Set the docsring for the given full or partial declaration
 
 151     %define DocStr(decl, docstr, details)
 
 152         %feature("docstring") decl docstr details;
 
 155     %define DocStr(decl, docstr, details)
 
 156         %feature("docstring") decl docstr;
 
 161 // Set the autodoc string for a full or partial declaration
 
 162 %define DocA(decl, astr)
 
 163     %feature("autodoc") decl astr;
 
 167 // Set both the autodoc and docstring for a full or partial declaration
 
 169     %define DocAStr(decl, astr, docstr, details)
 
 170         %feature("autodoc") decl astr;
 
 171         %feature("docstring") decl docstr details
 
 174     %define DocAStr(decl, astr, docstr, details)
 
 175         %feature("autodoc") decl astr;
 
 176         %feature("docstring") decl docstr
 
 183 // Set the docstring for a decl and then define the decl too.  Must use the
 
 184 // full declaration of the item.
 
 186     %define DocDeclStr(type, decl, docstr, details)
 
 187         %feature("docstring") decl docstr details;
 
 191     %define DocDeclStr(type, decl, docstr, details)
 
 192         %feature("docstring") decl docstr;
 
 199 // As above, but also give the decl a new %name    
 
 201     %define DocDeclStrName(type, decl, docstr, details, newname)
 
 202         %feature("docstring") decl docstr details;
 
 203         %rename(newname) decl;
 
 207     %define DocDeclStrName(type, decl, docstr, details, newname)
 
 208         %feature("docstring") decl docstr;
 
 209         %rename(newname) decl;
 
 215 // Set the autodoc string for a decl and then define the decl too.  Must use the
 
 216 // full declaration of the item.
 
 217 %define DocDeclA(type, decl, astr)
 
 218     %feature("autodoc") decl astr;
 
 222 // As above, but also give the decl a new %name    
 
 223 %define DocDeclAName(type, decl, astr, newname)
 
 224     %feature("autodoc") decl astr;
 
 225     %rename(newname) decl;
 
 231 // Set the autodoc and the docstring for a decl and then define the decl too.
 
 232 // Must use the full declaration of the item.
 
 234     %define DocDeclAStr(type, decl, astr, docstr, details)
 
 235         %feature("autodoc") decl astr;
 
 236         %feature("docstring") decl docstr details;
 
 240     %define DocDeclAStr(type, decl, astr, docstr, details)
 
 241         %feature("autodoc") decl astr;
 
 242         %feature("docstring") decl docstr;
 
 248 // As above, but also give the decl a new %name    
 
 250     %define DocDeclAStrName(type, decl, astr, docstr, details, newname)
 
 251         %feature("autodoc") decl astr;
 
 252         %feature("docstring") decl docstr details;
 
 253         %rename(newname) decl;
 
 257     %define DocDeclAStrName(type, decl, astr, docstr, details, newname)
 
 258         %feature("autodoc") decl astr;
 
 259         %feature("docstring") decl docstr;
 
 260         %rename(newname) decl;
 
 267 // Set the docstring for a constructor decl and then define the decl too.
 
 268 // Must use the full declaration of the item.
 
 270     %define DocCtorStr(decl, docstr, details)
 
 271         %feature("docstring") decl docstr details;
 
 275     %define DocCtorStr(decl, docstr, details)
 
 276         %feature("docstring") decl docstr;
 
 282 // As above, but also give the decl a new %name    
 
 284     %define DocCtorStrName(decl, docstr, details, newname)
 
 285         %feature("docstring") decl docstr details;
 
 286         %rename(newname) decl;
 
 290     %define DocCtorStrName(decl, docstr, details, newname)
 
 291         %feature("docstring") decl docstr;
 
 292         %rename(newname) decl;
 
 298 // Set the autodoc string for a constructor decl and then define the decl too.
 
 299 // Must use the full declaration of the item.
 
 300 %define DocCtorA(decl, astr)
 
 301     %feature("autodoc") decl astr;
 
 305 // As above, but also give the decl a new %name    
 
 306 %define DocCtorAName(decl, astr, newname)
 
 307     %feature("autodoc") decl astr;
 
 308     %rename(newname) decl;
 
 314 // Set the autodoc and the docstring for a constructor decl and then define
 
 315 // the decl too.  Must use the full declaration of the item.
 
 317     %define DocCtorAStr(decl, astr, docstr, details)
 
 318         %feature("autodoc") decl astr;
 
 319         %feature("docstring") decl docstr details;
 
 323     %define DocCtorAStr(decl, astr, docstr, details)
 
 324         %feature("autodoc") decl astr;
 
 325         %feature("docstring") decl docstr;
 
 332 // As above, but also give the decl a new %name    
 
 334     %define DocCtorAStrName(decl, astr, docstr, details, newname)
 
 335         %feature("autodoc") decl astr;
 
 336         %feature("docstring") decl docstr details;
 
 337         %rename(newname) decl;
 
 341     %define DocCtorAStrName(decl, astr, docstr, details, newname)
 
 342         %feature("autodoc") decl astr;
 
 343         %feature("docstring") decl docstr;
 
 344         %rename(newname) decl;
 
 353 %#---------------------------------------------------------------------------
 
 358 // A set of macros to make using %rename easier, since %name has been
 
 360 %define %Rename(newname, type, decl)
 
 361     %rename(newname) decl;
 
 365 %define %RenameCtor(newname, decl)
 
 366     %rename(newname) decl;
 
 371     %define %RenameDocCtor(newname, docstr, details, decl)
 
 372         %feature("docstring") decl docstr details;
 
 373         %rename(newname) decl;
 
 377     %define %RenameDocCtor(newname, docstr, details, decl)
 
 378         %feature("docstring") decl docstr;
 
 379         %rename(newname) decl;
 
 384 //---------------------------------------------------------------------------
 
 385 // Forward declarations and %renames for some classes, so the autodoc strings
 
 386 // will be able to use the right types even when the real class declaration is
 
 387 // not in the module being processed or seen by %import's.
 
 389 #ifdef BUILDING_RENAMERS
 
 390     #define FORWARD_DECLARE(wxName, Name)
 
 392     %define FORWARD_DECLARE(wxName, Name)
 
 393         %rename(Name) wxName;
 
 398 FORWARD_DECLARE(wxString,         String);
 
 399 FORWARD_DECLARE(wxBitmap,         Bitmap);
 
 400 FORWARD_DECLARE(wxDateTime,       DateTime);
 
 401 FORWARD_DECLARE(wxInputStream,    InputStream);
 
 402 FORWARD_DECLARE(wxDC,             DC);
 
 403 FORWARD_DECLARE(wxCursor,         Cursor);
 
 404 FORWARD_DECLARE(wxRegion,         Region);
 
 405 FORWARD_DECLARE(wxColour,         Colour);
 
 406 FORWARD_DECLARE(wxFont,           Font);
 
 407 FORWARD_DECLARE(wxCaret,          Caret);
 
 408 FORWARD_DECLARE(wxToolTip,        ToolTip);
 
 409 FORWARD_DECLARE(wxPyDropTarget,   DropTarget);
 
 410 FORWARD_DECLARE(wxImageList,      ImageList);
 
 411 FORWARD_DECLARE(wxMemoryDC,       MemoryDC);
 
 412 FORWARD_DECLARE(wxHtmlTagHandler, HtmlTagHandler);
 
 413 FORWARD_DECLARE(wxConfigBase,     ConfigBase);
 
 414 FORWARD_DECLARE(wxIcon,           Icon);
 
 415 FORWARD_DECLARE(wxStaticBox,      StaticBox);
 
 418 //---------------------------------------------------------------------------
 
 421 #if !WXWIN_COMPATIBILITY_2_4
 
 422     #define wxHIDE_READONLY  0
 
 427 // General numeric #define's and etc.  Making them all enums makes SWIG use the
 
 428 // real macro when making the Python Int
 
 446     wxTRANSPARENT_WINDOW,
 
 448     wxDEFAULT_CONTROL_BORDER,
 
 449     wxDEFAULT_STATUSBAR_STYLE,
 
 534     wxSIZE_ALLOW_MINUS_ONE,
 
 538     wxPRINT_QUALITY_HIGH,
 
 539     wxPRINT_QUALITY_MEDIUM,
 
 541     wxPRINT_QUALITY_DRAFT,
 
 564     wxID_HELP_PROCEDURES,
 
 583     wxID_VIEW_LARGEICONS,
 
 584     wxID_VIEW_SMALLICONS,
 
 644     wxID_REVERT_TO_SAVED,
 
 675     wxNO_FULL_REPAINT_ON_RESIZE,
 
 676     wxFULL_REPAINT_ON_RESIZE,
 
 681     wxWS_EX_VALIDATE_RECURSIVELY,
 
 682     wxWS_EX_BLOCK_EVENTS,
 
 685     wxWS_EX_THEMED_BACKGROUND,
 
 686     wxWS_EX_PROCESS_IDLE,
 
 687     wxWS_EX_PROCESS_UI_UPDATES,
 
 690     // Mapping modes (as per Windows)
 
 703     // It looks like wxTabCtrl may rise from the dead.  Uncomment these if
 
 704     // it gets an implementation for all platforms...
 
 705 //     wxTC_RIGHTJUSTIFY,
 
 718 enum wxGeometryCentre
 
 753     wxALIGN_CENTER_HORIZONTAL,
 
 754     wxALIGN_CENTRE_HORIZONTAL,
 
 759     wxALIGN_CENTER_VERTICAL,
 
 760     wxALIGN_CENTRE_VERTICAL,
 
 794 enum wxBackgroundStyle
 
 826   wxSTIPPLE_MASK_OPAQUE,
 
 843   wxXOR,        // src XOR dst
 
 845   wxOR_REVERSE, // src OR (NOT dst)
 
 846   wxAND_REVERSE,// src AND (NOT dst)
 
 848   wxAND,        // src AND dst
 
 849   wxAND_INVERT, // (NOT src) AND dst
 
 851   wxNOR,        // (NOT src) AND (NOT dst)
 
 852   wxEQUIV,      // (NOT src) XOR dst
 
 853   wxSRC_INVERT, // (NOT src)
 
 854   wxOR_INVERT,  // (NOT src) OR dst
 
 855   wxNAND,       // (NOT src) OR (NOT dst)
 
 858 //  wxSRC_OR,     // source _bitmap_ OR destination
 
 859 //  wxSRC_AND     // source _bitmap_ AND destination
 
 882     WXK_PRIOR,  /* Page up */
 
 883     WXK_NEXT,   /* Page down */
 
 964     WXK_NUMPAD_SEPARATOR,
 
 975     // Hardware-specific buttons
 
1001     wxPAPER_NONE,               // Use specific dimensions
 
1002     wxPAPER_LETTER,             // Letter, 8 1/2 by 11 inches
 
1003     wxPAPER_LEGAL,              // Legal, 8 1/2 by 14 inches
 
1004     wxPAPER_A4,                 // A4 Sheet, 210 by 297 millimeters
 
1005     wxPAPER_CSHEET,             // C Sheet, 17 by 22 inches
 
1006     wxPAPER_DSHEET,             // D Sheet, 22 by 34 inches
 
1007     wxPAPER_ESHEET,             // E Sheet, 34 by 44 inches
 
1008     wxPAPER_LETTERSMALL,        // Letter Small, 8 1/2 by 11 inches
 
1009     wxPAPER_TABLOID,            // Tabloid, 11 by 17 inches
 
1010     wxPAPER_LEDGER,             // Ledger, 17 by 11 inches
 
1011     wxPAPER_STATEMENT,          // Statement, 5 1/2 by 8 1/2 inches
 
1012     wxPAPER_EXECUTIVE,          // Executive, 7 1/4 by 10 1/2 inches
 
1013     wxPAPER_A3,                 // A3 sheet, 297 by 420 millimeters
 
1014     wxPAPER_A4SMALL,            // A4 small sheet, 210 by 297 millimeters
 
1015     wxPAPER_A5,                 // A5 sheet, 148 by 210 millimeters
 
1016     wxPAPER_B4,                 // B4 sheet, 250 by 354 millimeters
 
1017     wxPAPER_B5,                 // B5 sheet, 182-by-257-millimeter paper
 
1018     wxPAPER_FOLIO,              // Folio, 8-1/2-by-13-inch paper
 
1019     wxPAPER_QUARTO,             // Quarto, 215-by-275-millimeter paper
 
1020     wxPAPER_10X14,              // 10-by-14-inch sheet
 
1021     wxPAPER_11X17,              // 11-by-17-inch sheet
 
1022     wxPAPER_NOTE,               // Note, 8 1/2 by 11 inches
 
1023     wxPAPER_ENV_9,              // #9 Envelope, 3 7/8 by 8 7/8 inches
 
1024     wxPAPER_ENV_10,             // #10 Envelope, 4 1/8 by 9 1/2 inches
 
1025     wxPAPER_ENV_11,             // #11 Envelope, 4 1/2 by 10 3/8 inches
 
1026     wxPAPER_ENV_12,             // #12 Envelope, 4 3/4 by 11 inches
 
1027     wxPAPER_ENV_14,             // #14 Envelope, 5 by 11 1/2 inches
 
1028     wxPAPER_ENV_DL,             // DL Envelope, 110 by 220 millimeters
 
1029     wxPAPER_ENV_C5,             // C5 Envelope, 162 by 229 millimeters
 
1030     wxPAPER_ENV_C3,             // C3 Envelope, 324 by 458 millimeters
 
1031     wxPAPER_ENV_C4,             // C4 Envelope, 229 by 324 millimeters
 
1032     wxPAPER_ENV_C6,             // C6 Envelope, 114 by 162 millimeters
 
1033     wxPAPER_ENV_C65,            // C65 Envelope, 114 by 229 millimeters
 
1034     wxPAPER_ENV_B4,             // B4 Envelope, 250 by 353 millimeters
 
1035     wxPAPER_ENV_B5,             // B5 Envelope, 176 by 250 millimeters
 
1036     wxPAPER_ENV_B6,             // B6 Envelope, 176 by 125 millimeters
 
1037     wxPAPER_ENV_ITALY,          // Italy Envelope, 110 by 230 millimeters
 
1038     wxPAPER_ENV_MONARCH,        // Monarch Envelope, 3 7/8 by 7 1/2 inches
 
1039     wxPAPER_ENV_PERSONAL,       // 6 3/4 Envelope, 3 5/8 by 6 1/2 inches
 
1040     wxPAPER_FANFOLD_US,         // US Std Fanfold, 14 7/8 by 11 inches
 
1041     wxPAPER_FANFOLD_STD_GERMAN, // German Std Fanfold, 8 1/2 by 12 inches
 
1042     wxPAPER_FANFOLD_LGL_GERMAN, // German Legal Fanfold, 8 1/2 by 13 inches
 
1044     wxPAPER_ISO_B4,             // B4 (ISO) 250 x 353 mm
 
1045     wxPAPER_JAPANESE_POSTCARD,  // Japanese Postcard 100 x 148 mm
 
1046     wxPAPER_9X11,               // 9 x 11 in
 
1047     wxPAPER_10X11,              // 10 x 11 in
 
1048     wxPAPER_15X11,              // 15 x 11 in
 
1049     wxPAPER_ENV_INVITE,         // Envelope Invite 220 x 220 mm
 
1050     wxPAPER_LETTER_EXTRA,       // Letter Extra 9 \275 x 12 in
 
1051     wxPAPER_LEGAL_EXTRA,        // Legal Extra 9 \275 x 15 in
 
1052     wxPAPER_TABLOID_EXTRA,      // Tabloid Extra 11.69 x 18 in
 
1053     wxPAPER_A4_EXTRA,           // A4 Extra 9.27 x 12.69 in
 
1054     wxPAPER_LETTER_TRANSVERSE,  // Letter Transverse 8 \275 x 11 in
 
1055     wxPAPER_A4_TRANSVERSE,      // A4 Transverse 210 x 297 mm
 
1056     wxPAPER_LETTER_EXTRA_TRANSVERSE, // Letter Extra Transverse 9\275 x 12 in
 
1057     wxPAPER_A_PLUS,             // SuperA/SuperA/A4 227 x 356 mm
 
1058     wxPAPER_B_PLUS,             // SuperB/SuperB/A3 305 x 487 mm
 
1059     wxPAPER_LETTER_PLUS,        // Letter Plus 8.5 x 12.69 in
 
1060     wxPAPER_A4_PLUS,            // A4 Plus 210 x 330 mm
 
1061     wxPAPER_A5_TRANSVERSE,      // A5 Transverse 148 x 210 mm
 
1062     wxPAPER_B5_TRANSVERSE,      // B5 (JIS) Transverse 182 x 257 mm
 
1063     wxPAPER_A3_EXTRA,           // A3 Extra 322 x 445 mm
 
1064     wxPAPER_A5_EXTRA,           // A5 Extra 174 x 235 mm
 
1065     wxPAPER_B5_EXTRA,           // B5 (ISO) Extra 201 x 276 mm
 
1066     wxPAPER_A2,                 // A2 420 x 594 mm
 
1067     wxPAPER_A3_TRANSVERSE,      // A3 Transverse 297 x 420 mm
 
1068     wxPAPER_A3_EXTRA_TRANSVERSE, // A3 Extra Transverse 322 x 445 mm
 
1070     wxPAPER_DBL_JAPANESE_POSTCARD,/* Japanese Double Postcard 200 x 148 mm */
 
1071     wxPAPER_A6,                 /* A6 105 x 148 mm */
 
1072     wxPAPER_JENV_KAKU2,         /* Japanese Envelope Kaku #2 */
 
1073     wxPAPER_JENV_KAKU3,         /* Japanese Envelope Kaku #3 */
 
1074     wxPAPER_JENV_CHOU3,         /* Japanese Envelope Chou #3 */
 
1075     wxPAPER_JENV_CHOU4,         /* Japanese Envelope Chou #4 */
 
1076     wxPAPER_LETTER_ROTATED,     /* Letter Rotated 11 x 8 1/2 in */
 
1077     wxPAPER_A3_ROTATED,         /* A3 Rotated 420 x 297 mm */
 
1078     wxPAPER_A4_ROTATED,         /* A4 Rotated 297 x 210 mm */
 
1079     wxPAPER_A5_ROTATED,         /* A5 Rotated 210 x 148 mm */
 
1080     wxPAPER_B4_JIS_ROTATED,     /* B4 (JIS) Rotated 364 x 257 mm */
 
1081     wxPAPER_B5_JIS_ROTATED,     /* B5 (JIS) Rotated 257 x 182 mm */
 
1082     wxPAPER_JAPANESE_POSTCARD_ROTATED,/* Japanese Postcard Rotated 148 x 100 mm */
 
1083     wxPAPER_DBL_JAPANESE_POSTCARD_ROTATED,/* Double Japanese Postcard Rotated 148 x 200 mm */
 
1084     wxPAPER_A6_ROTATED,         /* A6 Rotated 148 x 105 mm */
 
1085     wxPAPER_JENV_KAKU2_ROTATED, /* Japanese Envelope Kaku #2 Rotated */
 
1086     wxPAPER_JENV_KAKU3_ROTATED, /* Japanese Envelope Kaku #3 Rotated */
 
1087     wxPAPER_JENV_CHOU3_ROTATED, /* Japanese Envelope Chou #3 Rotated */
 
1088     wxPAPER_JENV_CHOU4_ROTATED, /* Japanese Envelope Chou #4 Rotated */
 
1089     wxPAPER_B6_JIS,             /* B6 (JIS) 128 x 182 mm */
 
1090     wxPAPER_B6_JIS_ROTATED,     /* B6 (JIS) Rotated 182 x 128 mm */
 
1091     wxPAPER_12X11,              /* 12 x 11 in */
 
1092     wxPAPER_JENV_YOU4,          /* Japanese Envelope You #4 */
 
1093     wxPAPER_JENV_YOU4_ROTATED,  /* Japanese Envelope You #4 Rotated */
 
1094     wxPAPER_P16K,               /* PRC 16K 146 x 215 mm */
 
1095     wxPAPER_P32K,               /* PRC 32K 97 x 151 mm */
 
1096     wxPAPER_P32KBIG,            /* PRC 32K(Big) 97 x 151 mm */
 
1097     wxPAPER_PENV_1,             /* PRC Envelope #1 102 x 165 mm */
 
1098     wxPAPER_PENV_2,             /* PRC Envelope #2 102 x 176 mm */
 
1099     wxPAPER_PENV_3,             /* PRC Envelope #3 125 x 176 mm */
 
1100     wxPAPER_PENV_4,             /* PRC Envelope #4 110 x 208 mm */
 
1101     wxPAPER_PENV_5,             /* PRC Envelope #5 110 x 220 mm */
 
1102     wxPAPER_PENV_6,             /* PRC Envelope #6 120 x 230 mm */
 
1103     wxPAPER_PENV_7,             /* PRC Envelope #7 160 x 230 mm */
 
1104     wxPAPER_PENV_8,             /* PRC Envelope #8 120 x 309 mm */
 
1105     wxPAPER_PENV_9,             /* PRC Envelope #9 229 x 324 mm */
 
1106     wxPAPER_PENV_10,            /* PRC Envelope #10 324 x 458 mm */
 
1107     wxPAPER_P16K_ROTATED,       /* PRC 16K Rotated */
 
1108     wxPAPER_P32K_ROTATED,       /* PRC 32K Rotated */
 
1109     wxPAPER_P32KBIG_ROTATED,    /* PRC 32K(Big) Rotated */
 
1110     wxPAPER_PENV_1_ROTATED,     /* PRC Envelope #1 Rotated 165 x 102 mm */
 
1111     wxPAPER_PENV_2_ROTATED,     /* PRC Envelope #2 Rotated 176 x 102 mm */
 
1112     wxPAPER_PENV_3_ROTATED,     /* PRC Envelope #3 Rotated 176 x 125 mm */
 
1113     wxPAPER_PENV_4_ROTATED,     /* PRC Envelope #4 Rotated 208 x 110 mm */
 
1114     wxPAPER_PENV_5_ROTATED,     /* PRC Envelope #5 Rotated 220 x 110 mm */
 
1115     wxPAPER_PENV_6_ROTATED,     /* PRC Envelope #6 Rotated 230 x 120 mm */
 
1116     wxPAPER_PENV_7_ROTATED,     /* PRC Envelope #7 Rotated 230 x 160 mm */
 
1117     wxPAPER_PENV_8_ROTATED,     /* PRC Envelope #8 Rotated 309 x 120 mm */
 
1118     wxPAPER_PENV_9_ROTATED,     /* PRC Envelope #9 Rotated 324 x 229 mm */
 
1119     wxPAPER_PENV_10_ROTATED    /* PRC Envelope #10 Rotated 458 x 324 m */
 
1124     wxDUPLEX_SIMPLEX, // Non-duplex
 
1125     wxDUPLEX_HORIZONTAL,
 
1131 // menu and toolbar item kinds
 
1147     wxHT_SCROLLBAR_FIRST = wxHT_NOWHERE,
 
1148     wxHT_SCROLLBAR_ARROW_LINE_1,    // left or upper arrow to scroll by line
 
1149     wxHT_SCROLLBAR_ARROW_LINE_2,    // right or down
 
1150     wxHT_SCROLLBAR_ARROW_PAGE_1,    // left or upper arrow to scroll by page
 
1151     wxHT_SCROLLBAR_ARROW_PAGE_2,    // right or down
 
1152     wxHT_SCROLLBAR_THUMB,           // on the thumb
 
1153     wxHT_SCROLLBAR_BAR_1,           // bar to the left/above the thumb
 
1154     wxHT_SCROLLBAR_BAR_2,           // bar to the right/below the thumb
 
1155     wxHT_SCROLLBAR_LAST,
 
1158     wxHT_WINDOW_OUTSIDE,            // not in this window at all
 
1159     wxHT_WINDOW_INSIDE,             // in the client area
 
1160     wxHT_WINDOW_VERT_SCROLLBAR,     // on the vertical scrollbar
 
1161     wxHT_WINDOW_HORZ_SCROLLBAR,     // on the horizontal scrollbar
 
1162     wxHT_WINDOW_CORNER,             // on the corner between 2 scrollbars
 
1185     wxUPDATE_UI_NONE          = 0x0000,
 
1186     wxUPDATE_UI_RECURSE       = 0x0001,
 
1187     wxUPDATE_UI_FROMIDLE      = 0x0002 // Invoked from On(Internal)Idle
 
1192 //---------------------------------------------------------------------------