X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/72ef6efb1f1819e0b1187cedfd8989d4a37bf457..c4d2397c26e15e60cc65417c7c5b85ab7c0a1d85:/wxPython/src/mac/_gdi_wrap.cpp diff --git a/wxPython/src/mac/_gdi_wrap.cpp b/wxPython/src/mac/_gdi_wrap.cpp index a50cdd254e..5fc82ab1fb 100644 --- a/wxPython/src/mac/_gdi_wrap.cpp +++ b/wxPython/src/mac/_gdi_wrap.cpp @@ -2476,29 +2476,29 @@ SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) #define SWIGTYPE_p_wxActivateEvent swig_types[10] #define SWIGTYPE_p_wxAlphaPixelData swig_types[11] #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[12] -#define SWIGTYPE_p_wxArrayDouble swig_types[13] -#define SWIGTYPE_p_wxBMPHandler swig_types[14] -#define SWIGTYPE_p_wxBitmap swig_types[15] -#define SWIGTYPE_p_wxBoxSizer swig_types[16] -#define SWIGTYPE_p_wxBrush swig_types[17] -#define SWIGTYPE_p_wxBrushList swig_types[18] -#define SWIGTYPE_p_wxBufferedDC swig_types[19] -#define SWIGTYPE_p_wxBufferedPaintDC swig_types[20] -#define SWIGTYPE_p_wxCURHandler swig_types[21] -#define SWIGTYPE_p_wxChar swig_types[22] -#define SWIGTYPE_p_wxChildFocusEvent swig_types[23] -#define SWIGTYPE_p_wxClientDC swig_types[24] -#define SWIGTYPE_p_wxClipboardTextEvent swig_types[25] -#define SWIGTYPE_p_wxCloseEvent swig_types[26] -#define SWIGTYPE_p_wxColor swig_types[27] -#define SWIGTYPE_p_wxColour swig_types[28] -#define SWIGTYPE_p_wxColourDatabase swig_types[29] -#define SWIGTYPE_p_wxCommandEvent swig_types[30] -#define SWIGTYPE_p_wxContextMenuEvent swig_types[31] -#define SWIGTYPE_p_wxControl swig_types[32] -#define SWIGTYPE_p_wxControlWithItems swig_types[33] -#define SWIGTYPE_p_wxCursor swig_types[34] -#define SWIGTYPE_p_wxDC swig_types[35] +#define SWIGTYPE_p_wxBMPHandler swig_types[13] +#define SWIGTYPE_p_wxBitmap swig_types[14] +#define SWIGTYPE_p_wxBoxSizer swig_types[15] +#define SWIGTYPE_p_wxBrush swig_types[16] +#define SWIGTYPE_p_wxBrushList swig_types[17] +#define SWIGTYPE_p_wxBufferedDC swig_types[18] +#define SWIGTYPE_p_wxBufferedPaintDC swig_types[19] +#define SWIGTYPE_p_wxCURHandler swig_types[20] +#define SWIGTYPE_p_wxChar swig_types[21] +#define SWIGTYPE_p_wxChildFocusEvent swig_types[22] +#define SWIGTYPE_p_wxClientDC swig_types[23] +#define SWIGTYPE_p_wxClipboardTextEvent swig_types[24] +#define SWIGTYPE_p_wxCloseEvent swig_types[25] +#define SWIGTYPE_p_wxColor swig_types[26] +#define SWIGTYPE_p_wxColour swig_types[27] +#define SWIGTYPE_p_wxColourDatabase swig_types[28] +#define SWIGTYPE_p_wxCommandEvent swig_types[29] +#define SWIGTYPE_p_wxContextMenuEvent swig_types[30] +#define SWIGTYPE_p_wxControl swig_types[31] +#define SWIGTYPE_p_wxControlWithItems swig_types[32] +#define SWIGTYPE_p_wxCursor swig_types[33] +#define SWIGTYPE_p_wxDC swig_types[34] +#define SWIGTYPE_p_wxDCOverlay swig_types[35] #define SWIGTYPE_p_wxDash swig_types[36] #define SWIGTYPE_p_wxDateEvent swig_types[37] #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[38] @@ -2564,62 +2564,63 @@ SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) #define SWIGTYPE_p_wxNcPaintEvent swig_types[98] #define SWIGTYPE_p_wxNotifyEvent swig_types[99] #define SWIGTYPE_p_wxObject swig_types[100] -#define SWIGTYPE_p_wxPCXHandler swig_types[101] -#define SWIGTYPE_p_wxPNGHandler swig_types[102] -#define SWIGTYPE_p_wxPNMHandler swig_types[103] -#define SWIGTYPE_p_wxPaintDC swig_types[104] -#define SWIGTYPE_p_wxPaintEvent swig_types[105] -#define SWIGTYPE_p_wxPalette swig_types[106] -#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[107] -#define SWIGTYPE_p_wxPaperSize swig_types[108] -#define SWIGTYPE_p_wxPen swig_types[109] -#define SWIGTYPE_p_wxPenList swig_types[110] -#define SWIGTYPE_p_wxPixelDataBase swig_types[111] -#define SWIGTYPE_p_wxPoint swig_types[112] -#define SWIGTYPE_p_wxPoint2D swig_types[113] -#define SWIGTYPE_p_wxPostScriptDC swig_types[114] -#define SWIGTYPE_p_wxPrintData swig_types[115] -#define SWIGTYPE_p_wxPrinterDC swig_types[116] -#define SWIGTYPE_p_wxPseudoDC swig_types[117] -#define SWIGTYPE_p_wxPyApp swig_types[118] -#define SWIGTYPE_p_wxPyCommandEvent swig_types[119] -#define SWIGTYPE_p_wxPyEvent swig_types[120] -#define SWIGTYPE_p_wxPyFontEnumerator swig_types[121] -#define SWIGTYPE_p_wxPyImageHandler swig_types[122] -#define SWIGTYPE_p_wxPyLocale swig_types[123] -#define SWIGTYPE_p_wxPySizer swig_types[124] -#define SWIGTYPE_p_wxPyValidator swig_types[125] -#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[126] -#define SWIGTYPE_p_wxRect swig_types[127] -#define SWIGTYPE_p_wxRegion swig_types[128] -#define SWIGTYPE_p_wxRegionIterator swig_types[129] -#define SWIGTYPE_p_wxRendererNative swig_types[130] -#define SWIGTYPE_p_wxRendererVersion swig_types[131] -#define SWIGTYPE_p_wxScreenDC swig_types[132] -#define SWIGTYPE_p_wxScrollEvent swig_types[133] -#define SWIGTYPE_p_wxScrollWinEvent swig_types[134] -#define SWIGTYPE_p_wxSetCursorEvent swig_types[135] -#define SWIGTYPE_p_wxShowEvent swig_types[136] -#define SWIGTYPE_p_wxSize swig_types[137] -#define SWIGTYPE_p_wxSizeEvent swig_types[138] -#define SWIGTYPE_p_wxSizer swig_types[139] -#define SWIGTYPE_p_wxSizerItem swig_types[140] -#define SWIGTYPE_p_wxSplitterRenderParams swig_types[141] -#define SWIGTYPE_p_wxStaticBoxSizer swig_types[142] -#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[143] -#define SWIGTYPE_p_wxStockGDI swig_types[144] -#define SWIGTYPE_p_wxString swig_types[145] -#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[146] -#define SWIGTYPE_p_wxTIFFHandler swig_types[147] -#define SWIGTYPE_p_wxUpdateUIEvent swig_types[148] -#define SWIGTYPE_p_wxValidator swig_types[149] -#define SWIGTYPE_p_wxWindow swig_types[150] -#define SWIGTYPE_p_wxWindowCreateEvent swig_types[151] -#define SWIGTYPE_p_wxWindowDC swig_types[152] -#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[153] -#define SWIGTYPE_p_wxXPMHandler swig_types[154] -static swig_type_info *swig_types[156]; -static swig_module_info swig_module = {swig_types, 155, 0, 0, 0, 0}; +#define SWIGTYPE_p_wxOverlay swig_types[101] +#define SWIGTYPE_p_wxPCXHandler swig_types[102] +#define SWIGTYPE_p_wxPNGHandler swig_types[103] +#define SWIGTYPE_p_wxPNMHandler swig_types[104] +#define SWIGTYPE_p_wxPaintDC swig_types[105] +#define SWIGTYPE_p_wxPaintEvent swig_types[106] +#define SWIGTYPE_p_wxPalette swig_types[107] +#define SWIGTYPE_p_wxPaletteChangedEvent swig_types[108] +#define SWIGTYPE_p_wxPaperSize swig_types[109] +#define SWIGTYPE_p_wxPen swig_types[110] +#define SWIGTYPE_p_wxPenList swig_types[111] +#define SWIGTYPE_p_wxPixelDataBase swig_types[112] +#define SWIGTYPE_p_wxPoint swig_types[113] +#define SWIGTYPE_p_wxPoint2D swig_types[114] +#define SWIGTYPE_p_wxPostScriptDC swig_types[115] +#define SWIGTYPE_p_wxPrintData swig_types[116] +#define SWIGTYPE_p_wxPrinterDC swig_types[117] +#define SWIGTYPE_p_wxPseudoDC swig_types[118] +#define SWIGTYPE_p_wxPyApp swig_types[119] +#define SWIGTYPE_p_wxPyCommandEvent swig_types[120] +#define SWIGTYPE_p_wxPyEvent swig_types[121] +#define SWIGTYPE_p_wxPyFontEnumerator swig_types[122] +#define SWIGTYPE_p_wxPyImageHandler swig_types[123] +#define SWIGTYPE_p_wxPyLocale swig_types[124] +#define SWIGTYPE_p_wxPySizer swig_types[125] +#define SWIGTYPE_p_wxPyValidator swig_types[126] +#define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[127] +#define SWIGTYPE_p_wxRect swig_types[128] +#define SWIGTYPE_p_wxRegion swig_types[129] +#define SWIGTYPE_p_wxRegionIterator swig_types[130] +#define SWIGTYPE_p_wxRendererNative swig_types[131] +#define SWIGTYPE_p_wxRendererVersion swig_types[132] +#define SWIGTYPE_p_wxScreenDC swig_types[133] +#define SWIGTYPE_p_wxScrollEvent swig_types[134] +#define SWIGTYPE_p_wxScrollWinEvent swig_types[135] +#define SWIGTYPE_p_wxSetCursorEvent swig_types[136] +#define SWIGTYPE_p_wxShowEvent swig_types[137] +#define SWIGTYPE_p_wxSize swig_types[138] +#define SWIGTYPE_p_wxSizeEvent swig_types[139] +#define SWIGTYPE_p_wxSizer swig_types[140] +#define SWIGTYPE_p_wxSizerItem swig_types[141] +#define SWIGTYPE_p_wxSplitterRenderParams swig_types[142] +#define SWIGTYPE_p_wxStaticBoxSizer swig_types[143] +#define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[144] +#define SWIGTYPE_p_wxStockGDI swig_types[145] +#define SWIGTYPE_p_wxString swig_types[146] +#define SWIGTYPE_p_wxSysColourChangedEvent swig_types[147] +#define SWIGTYPE_p_wxTIFFHandler swig_types[148] +#define SWIGTYPE_p_wxUpdateUIEvent swig_types[149] +#define SWIGTYPE_p_wxValidator swig_types[150] +#define SWIGTYPE_p_wxWindow swig_types[151] +#define SWIGTYPE_p_wxWindowCreateEvent swig_types[152] +#define SWIGTYPE_p_wxWindowDC swig_types[153] +#define SWIGTYPE_p_wxWindowDestroyEvent swig_types[154] +#define SWIGTYPE_p_wxXPMHandler swig_types[155] +static swig_type_info *swig_types[157]; +static swig_module_info swig_module = {swig_types, 156, 0, 0, 0, 0}; #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) @@ -2841,7 +2842,7 @@ SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){ int green = -1; int blue = -1; int alpha = wxALPHA_OPAQUE; - if (self->Ok()) { + if (self->IsOk()) { red = self->Red(); green = self->Green(); blue = self->Blue(); @@ -3148,7 +3149,7 @@ SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *se return rv; } SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){ - if ( !colour.Ok() ) + if ( !colour.IsOk() ) return new wxMask(bitmap, *wxBLACK); else return new wxMask(bitmap, colour); @@ -3671,6 +3672,24 @@ public: #endif +SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){ + wxArrayDouble widths; + self->GetPartialTextExtents(text, widths); + return widths; + } +SWIGINTERN void wxGraphicsContext_StrokeDisconnectedLines(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){ + size_t c1, c2, count; + wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1); + wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2); + + if ( beginP != NULL && endP != NULL ) + { + count = wxMin(c1, c2); + self->StrokeLines(count, beginP, endP); + } + delete [] beginP; + delete [] endP; + } SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ @@ -4067,7 +4086,7 @@ fail: } -SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; wxColour *arg1 = (wxColour *) 0 ; bool result; @@ -4079,12 +4098,12 @@ SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *a swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'"); } arg1 = reinterpret_cast< wxColour * >(argp1); { PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); + result = (bool)(arg1)->IsOk(); wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } @@ -4706,7 +4725,7 @@ fail: } -SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; wxPalette *arg1 = (wxPalette *) 0 ; bool result; @@ -4718,12 +4737,12 @@ SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject * swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'"); } arg1 = reinterpret_cast< wxPalette * >(argp1); { PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); + result = (bool)(arg1)->IsOk(); wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } @@ -4966,7 +4985,7 @@ fail: } -SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; wxPen *arg1 = (wxPen *) 0 ; bool result; @@ -4978,12 +4997,12 @@ SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'"); } arg1 = reinterpret_cast< wxPen * >(argp1); { PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); + result = (bool)(arg1)->IsOk(); wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } @@ -5714,7 +5733,7 @@ fail: } -SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; wxBrush *arg1 = (wxBrush *) 0 ; bool result; @@ -5726,12 +5745,12 @@ SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *ar swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'"); } arg1 = reinterpret_cast< wxBrush * >(argp1); { PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); + result = (bool)(arg1)->IsOk(); wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } @@ -6105,7 +6124,7 @@ fail: } -SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; wxBitmap *arg1 = (wxBitmap *) 0 ; bool result; @@ -6117,11 +6136,11 @@ SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *a swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'"); } arg1 = reinterpret_cast< wxBitmap * >(argp1); { - result = (bool)(arg1)->Ok(); + result = (bool)(arg1)->IsOk(); if (PyErr_Occurred()) SWIG_fail; } { @@ -8911,7 +8930,7 @@ fail: } -SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; wxIcon *arg1 = (wxIcon *) 0 ; bool result; @@ -8923,12 +8942,12 @@ SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *arg swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'"); } arg1 = reinterpret_cast< wxIcon * >(argp1); { PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); + result = (bool)(arg1)->IsOk(); wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } @@ -9894,7 +9913,7 @@ fail: } -SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; wxCursor *arg1 = (wxCursor *) 0 ; bool result; @@ -9906,12 +9925,12 @@ SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *a swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'"); } arg1 = reinterpret_cast< wxCursor * >(argp1); { PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); + result = (bool)(arg1)->IsOk(); wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } @@ -13834,7 +13853,7 @@ fail: } -SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; wxFont *arg1 = (wxFont *) 0 ; bool result; @@ -13846,12 +13865,12 @@ SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *arg swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'"); } arg1 = reinterpret_cast< wxFont * >(argp1); { PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxFont const *)arg1)->Ok(); + result = (bool)((wxFont const *)arg1)->IsOk(); wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } @@ -20834,13 +20853,7 @@ SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(sel if (PyErr_Occurred()) SWIG_fail; } { - resultobj = PyList_New(0); - size_t idx; - for (idx = 0; idx < (&result)->GetCount(); idx += 1) { - PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); - PyList_Append(resultobj, val); - Py_DECREF(val); - } + resultobj = wxArrayInt2PyList_helper(result); } { if (temp2) @@ -21434,7 +21447,7 @@ fail: } -SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; wxDC *arg1 = (wxDC *) 0 ; bool result; @@ -21446,12 +21459,12 @@ SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'"); } arg1 = reinterpret_cast< wxDC * >(argp1); { PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)((wxDC const *)arg1)->Ok(); + result = (bool)((wxDC const *)arg1)->IsOk(); wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } @@ -22761,6 +22774,72 @@ fail: } +SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wxDC *arg1 = (wxDC *) 0 ; + wxLayoutDirection result; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject *swig_obj[1] ; + + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'"); + } + arg1 = reinterpret_cast< wxDC * >(argp1); + { + PyThreadState* __tstate = wxPyBeginAllowThreads(); + result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection(); + wxPyEndAllowThreads(__tstate); + if (PyErr_Occurred()) SWIG_fail; + } + resultobj = SWIG_From_int(static_cast< int >(result)); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { + PyObject *resultobj = 0; + wxDC *arg1 = (wxDC *) 0 ; + wxLayoutDirection arg2 ; + void *argp1 = 0 ; + int res1 = 0 ; + int val2 ; + int ecode2 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + char * kwnames[] = { + (char *) "self",(char *) "dir", NULL + }; + + if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'"); + } + arg1 = reinterpret_cast< wxDC * >(argp1); + ecode2 = SWIG_AsVal_int(obj1, &val2); + if (!SWIG_IsOK(ecode2)) { + SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'"); + } + arg2 = static_cast< wxLayoutDirection >(val2); + { + PyThreadState* __tstate = wxPyBeginAllowThreads(); + (arg1)->SetLayoutDirection(arg2); + wxPyEndAllowThreads(__tstate); + if (PyErr_Occurred()) SWIG_fail; + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; wxDC *arg1 = (wxDC *) 0 ; @@ -23201,28 +23280,121 @@ fail: } +SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + wxWindow *arg1 = (wxWindow *) 0 ; + wxDC *arg2 = (wxDC *) 0 ; + wxSize *arg3 = 0 ; + int arg4 = (int) wxBUFFER_CLIENT_AREA ; + wxBufferedDC *result = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + wxSize temp3 ; + int val4 ; + int ecode4 = 0 ; + + if ((nobjs < 3) || (nobjs > 4)) SWIG_fail; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxWindow *""'"); + } + arg1 = reinterpret_cast< wxWindow * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxDC *""'"); + } + arg2 = reinterpret_cast< wxDC * >(argp2); + { + arg3 = &temp3; + if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; + } + if (swig_obj[3]) { + ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BufferedDC" "', expected argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + } + { + if (!wxPyCheckForApp()) SWIG_fail; + PyThreadState* __tstate = wxPyBeginAllowThreads(); + result = (wxBufferedDC *)new wxBufferedDC(arg1,arg2,(wxSize const &)*arg3,arg4); + wxPyEndAllowThreads(__tstate); + if (PyErr_Occurred()) SWIG_fail; + } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { int argc; - PyObject *argv[4]; + PyObject *argv[5]; - if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail; + if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,4,argv))) SWIG_fail; --argc; if ((argc >= 1) && (argc <= 3)) { int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_wxDC, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_1; if (argc > 1) { { int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0); _v = SWIG_CheckState(res); } if (!_v) goto check_1; + if (argc > 2) { + { + { + int res = SWIG_AsVal_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_1; + } } return _wrap_new_BufferedDC__SWIG_0(self, argc, argv); } check_1: if ((argc >= 2) && (argc <= 3)) { + int _v = 0; + { + void *vptr = 0; + int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_wxDC, 0); + _v = SWIG_CheckState(res); + } + if (!_v) goto check_2; + { + { + _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2); + } + } + if (!_v) goto check_2; + if (argc > 2) { + { + { + int res = SWIG_AsVal_int(argv[2], NULL); + _v = SWIG_CheckState(res); + } + } + if (!_v) goto check_2; + } return _wrap_new_BufferedDC__SWIG_1(self, argc, argv); } +check_2: + + if ((argc >= 3) && (argc <= 4)) { + return _wrap_new_BufferedDC__SWIG_2(self, argc, argv); + } fail: SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'"); @@ -23921,7 +24093,7 @@ fail: } -SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { +SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; wxMetaFile *arg1 = (wxMetaFile *) 0 ; bool result; @@ -23933,12 +24105,12 @@ SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject swig_obj[0] = args; res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'"); } arg1 = reinterpret_cast< wxMetaFile * >(argp1); { PyThreadState* __tstate = wxPyBeginAllowThreads(); - result = (bool)(arg1)->Ok(); + result = (bool)(arg1)->IsOk(); wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } @@ -24281,10 +24453,8 @@ SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), P } arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); delete arg1; - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -24329,9 +24499,7 @@ SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(sel } arg3 = static_cast< wxDouble >(val3); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->MoveToPoint(arg2,arg3); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -24376,9 +24544,7 @@ SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM( } arg3 = static_cast< wxDouble >(val3); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->AddLineToPoint(arg2,arg3); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -24459,9 +24625,7 @@ SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM } arg7 = static_cast< wxDouble >(val7); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -24486,9 +24650,7 @@ SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(se } arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->CloseSubpath(); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -24514,9 +24676,7 @@ SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM } arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); result = (arg1)->GetCurrentPoint(); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 ); @@ -24597,9 +24757,7 @@ SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), P } arg7 = static_cast< bool >(val7); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -24662,9 +24820,7 @@ SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSED } arg5 = static_cast< wxDouble >(val5); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -24727,9 +24883,7 @@ SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(se } arg5 = static_cast< wxDouble >(val5); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->AddRectangle(arg2,arg3,arg4,arg5); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -24783,9 +24937,7 @@ SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self) } arg4 = static_cast< wxDouble >(val4); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->AddCircle(arg2,arg3,arg4); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -24857,9 +25009,7 @@ SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(s } arg6 = static_cast< wxDouble >(val6); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -24891,10 +25041,8 @@ SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self) } arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); delete arg1; - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -24925,9 +25073,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *SWIGUNUSEDPARM(self) } arg1 = reinterpret_cast< wxWindowDC * >(argp1); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); @@ -24953,9 +25099,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(s } arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); result = (wxGraphicsPath *)(arg1)->CreatePath(); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); @@ -24980,9 +25124,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(se } arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->PushState(); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -25007,9 +25149,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(sel } arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->PopState(); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -25048,9 +25188,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), } arg2 = reinterpret_cast< wxRegion * >(argp2); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->Clip((wxRegion const &)*arg2); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -25095,9 +25233,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(se } arg3 = static_cast< wxDouble >(val3); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->Translate(arg2,arg3); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -25142,9 +25278,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), } arg3 = static_cast< wxDouble >(val3); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->Scale(arg2,arg3); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -25180,9 +25314,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self) } arg2 = static_cast< wxDouble >(val2); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->Rotate(arg2); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -25221,9 +25353,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self) } arg2 = reinterpret_cast< wxPen * >(argp2); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->SetPen((wxPen const &)*arg2); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -25262,9 +25392,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(sel } arg2 = reinterpret_cast< wxBrush * >(argp2); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->SetBrush((wxBrush const &)*arg2); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -25341,9 +25469,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIG if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; } { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -25429,9 +25555,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIG if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; } { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -25470,9 +25594,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self } arg2 = reinterpret_cast< wxFont * >(argp2); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->SetFont((wxFont const &)*arg2); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -25506,9 +25628,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; } { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->SetTextColor((wxColour const &)*arg2); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -25544,9 +25664,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(s } arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->StrokePath((wxGraphicsPath const *)arg2); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -25593,9 +25711,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(sel arg3 = static_cast< int >(val3); } { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -25642,9 +25758,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(sel arg3 = static_cast< int >(val3); } { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -25654,7 +25768,7 @@ fail: } -SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; wxString *arg2 = 0 ; @@ -25667,32 +25781,37 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText__SWIG_0(PyObject *SWIGUNUSED int ecode3 = 0 ; double val4 ; int ecode4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + char * kwnames[] = { + (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL + }; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); + if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); } arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); { - arg2 = wxString_in_helper(swig_obj[1]); + arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; temp2 = true; } - ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); + ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'"); } arg3 = static_cast< wxDouble >(val3); - ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); + ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'"); } arg4 = static_cast< wxDouble >(val4); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -25710,7 +25829,7 @@ fail: } -SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; wxString *arg2 = 0 ; @@ -25726,37 +25845,43 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText__SWIG_1(PyObject *SWIGUNUSED int ecode4 = 0 ; double val5 ; int ecode5 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + PyObject * obj3 = 0 ; + PyObject * obj4 = 0 ; + char * kwnames[] = { + (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL + }; - if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); + if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); } arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); { - arg2 = wxString_in_helper(swig_obj[1]); + arg2 = wxString_in_helper(obj1); if (arg2 == NULL) SWIG_fail; temp2 = true; } - ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); + ecode3 = SWIG_AsVal_double(obj2, &val3); if (!SWIG_IsOK(ecode3)) { - SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'"); + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'"); } arg3 = static_cast< wxDouble >(val3); - ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); + ecode4 = SWIG_AsVal_double(obj3, &val4); if (!SWIG_IsOK(ecode4)) { - SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'"); + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'"); } arg4 = static_cast< wxDouble >(val4); - ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); + ecode5 = SWIG_AsVal_double(obj4, &val5); if (!SWIG_IsOK(ecode5)) { - SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxDouble""'"); + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'"); } arg5 = static_cast< wxDouble >(val5); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -25774,25 +25899,6 @@ fail: } -SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[6]; - - if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_DrawText",0,5,argv))) SWIG_fail; - --argc; - if (argc == 4) { - return _wrap_GraphicsContext_DrawText__SWIG_0(self, argc, argv); - } - if (argc == 5) { - return _wrap_GraphicsContext_DrawText__SWIG_1(self, argc, argv); - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_DrawText'"); - return NULL; -} - - SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; @@ -25834,9 +25940,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPAR temp2 = true; } { - PyThreadState* __tstate = wxPyBeginAllowThreads(); ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -25882,23 +25986,20 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGU PyObject *resultobj = 0; wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; wxString *arg2 = 0 ; - wxArrayDouble *arg3 = 0 ; + wxArrayDouble result; void *argp1 = 0 ; int res1 = 0 ; bool temp2 = false ; - void *argp3 = 0 ; - int res3 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; - PyObject * obj2 = 0 ; char * kwnames[] = { - (char *) "self",(char *) "text",(char *) "widths", NULL + (char *) "self",(char *) "text", NULL }; - if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; + if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); } arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); { @@ -25906,21 +26007,13 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGU if (arg2 == NULL) SWIG_fail; temp2 = true; } - res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxArrayDouble, 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "3"" of type '" "wxArrayDouble &""'"); - } - if (!argp3) { - SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "3"" of type '" "wxArrayDouble &""'"); - } - arg3 = reinterpret_cast< wxArrayDouble * >(argp3); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - ((wxGraphicsContext const *)arg1)->GetPartialTextExtents((wxString const &)*arg2,*arg3); - wxPyEndAllowThreads(__tstate); + result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2); if (PyErr_Occurred()) SWIG_fail; } - resultobj = SWIG_Py_Void(); + { + resultobj = wxArrayDouble2PyList_helper(result); + } { if (temp2) delete arg2; @@ -26000,9 +26093,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(s } arg6 = static_cast< wxDouble >(val6); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -26077,9 +26168,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(sel } arg6 = static_cast< wxDouble >(val6); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -26142,9 +26231,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(s } arg5 = static_cast< wxDouble >(val5); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->StrokeLine(arg2,arg3,arg4,arg5); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -26154,87 +26241,70 @@ fail: } -SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; size_t arg2 ; wxPoint2D *arg3 = (wxPoint2D *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - size_t val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + char * kwnames[] = { + (char *) "self",(char *) "points", NULL + }; - if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); + if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); } arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); - ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPoint2D, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "3"" of type '" "wxPoint2D const *""'"); + { + arg3 = wxPoint2D_LIST_helper(obj1, &arg2); + if (arg3 == NULL) SWIG_fail; } - arg3 = reinterpret_cast< wxPoint2D * >(argp3); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); + { + if (arg3) delete [] arg3; + } return resultobj; fail: + { + if (arg3) delete [] arg3; + } return NULL; } -SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { +SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeDisconnectedLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; - size_t arg2 ; - wxPoint2D *arg3 = (wxPoint2D *) 0 ; - wxPoint2D *arg4 = (wxPoint2D *) 0 ; + PyObject *arg2 = (PyObject *) 0 ; + PyObject *arg3 = (PyObject *) 0 ; void *argp1 = 0 ; int res1 = 0 ; - size_t val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; - void *argp4 = 0 ; - int res4 = 0 ; + PyObject * obj0 = 0 ; + PyObject * obj1 = 0 ; + PyObject * obj2 = 0 ; + char * kwnames[] = { + (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL + }; - if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); + if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeDisconnectedLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; + res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeDisconnectedLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); } arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); - ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_wxPoint2D, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "3"" of type '" "wxPoint2D const *""'"); - } - arg3 = reinterpret_cast< wxPoint2D * >(argp3); - res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_wxPoint2D, 0 | 0 ); - if (!SWIG_IsOK(res4)) { - SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "4"" of type '" "wxPoint2D const *""'"); - } - arg4 = reinterpret_cast< wxPoint2D * >(argp4); + arg2 = obj1; + arg3 = obj2; { - PyThreadState* __tstate = wxPyBeginAllowThreads(); - (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3,(wxPoint2D const *)arg4); - wxPyEndAllowThreads(__tstate); + wxGraphicsContext_StrokeDisconnectedLines(arg1,arg2,arg3); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -26244,25 +26314,6 @@ fail: } -SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *self, PyObject *args) { - int argc; - PyObject *argv[5]; - - if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_StrokeLines",0,4,argv))) SWIG_fail; - --argc; - if (argc == 3) { - return _wrap_GraphicsContext_StrokeLines__SWIG_0(self, argc, argv); - } - if (argc == 4) { - return _wrap_GraphicsContext_StrokeLines__SWIG_1(self, argc, argv); - } - -fail: - SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_StrokeLines'"); - return NULL; -} - - SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; @@ -26271,52 +26322,45 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(se int arg4 = (int) wxWINDING_RULE ; void *argp1 = 0 ; int res1 = 0 ; - size_t val2 ; - int ecode2 = 0 ; - void *argp3 = 0 ; - int res3 = 0 ; int val4 ; int ecode4 = 0 ; PyObject * obj0 = 0 ; PyObject * obj1 = 0 ; PyObject * obj2 = 0 ; - PyObject * obj3 = 0 ; char * kwnames[] = { - (char *) "self",(char *) "n",(char *) "points",(char *) "fillStyle", NULL + (char *) "self",(char *) "points",(char *) "fillStyle", NULL }; - if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; + if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); if (!SWIG_IsOK(res1)) { SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); } arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); - ecode2 = SWIG_AsVal_size_t(obj1, &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawLines" "', expected argument " "2"" of type '" "size_t""'"); - } - arg2 = static_cast< size_t >(val2); - res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxPoint2D, 0 | 0 ); - if (!SWIG_IsOK(res3)) { - SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "GraphicsContext_DrawLines" "', expected argument " "3"" of type '" "wxPoint2D const *""'"); + { + arg3 = wxPoint2D_LIST_helper(obj1, &arg2); + if (arg3 == NULL) SWIG_fail; } - arg3 = reinterpret_cast< wxPoint2D * >(argp3); - if (obj3) { - ecode4 = SWIG_AsVal_int(obj3, &val4); + if (obj2) { + ecode4 = SWIG_AsVal_int(obj2, &val4); if (!SWIG_IsOK(ecode4)) { SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'"); } arg4 = static_cast< int >(val4); } { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); + { + if (arg3) delete [] arg3; + } return resultobj; fail: + { + if (arg3) delete [] arg3; + } return NULL; } @@ -26374,9 +26418,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPAR } arg5 = static_cast< wxDouble >(val5); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -26439,9 +26481,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM( } arg5 = static_cast< wxDouble >(val5); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -26513,9 +26553,7 @@ SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUN } arg6 = static_cast< wxDouble >(val6); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -26581,10 +26619,8 @@ SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject } arg1 = reinterpret_cast< wxGCDC * >(argp1); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); delete arg1; - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_Py_Void(); @@ -26610,9 +26646,7 @@ SWIGINTERN PyObject *_wrap_GCDC_GetGraphicContext(PyObject *SWIGUNUSEDPARM(self) } arg1 = reinterpret_cast< wxGCDC * >(argp1); { - PyThreadState* __tstate = wxPyBeginAllowThreads(); result = (wxGraphicsContext *)(arg1)->GetGraphicContext(); - wxPyEndAllowThreads(__tstate); if (PyErr_Occurred()) SWIG_fail; } resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); @@ -26633,6 +26667,281 @@ SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *arg return SWIG_Python_InitShadowInstance(args); } +SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wxOverlay *result = 0 ; + + if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail; + { + PyThreadState* __tstate = wxPyBeginAllowThreads(); + result = (wxOverlay *)new wxOverlay(); + wxPyEndAllowThreads(__tstate); + if (PyErr_Occurred()) SWIG_fail; + } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wxOverlay *arg1 = (wxOverlay *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject *swig_obj[1] ; + + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'"); + } + arg1 = reinterpret_cast< wxOverlay * >(argp1); + { + PyThreadState* __tstate = wxPyBeginAllowThreads(); + delete arg1; + + wxPyEndAllowThreads(__tstate); + if (PyErr_Occurred()) SWIG_fail; + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wxOverlay *arg1 = (wxOverlay *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject *swig_obj[1] ; + + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'"); + } + arg1 = reinterpret_cast< wxOverlay * >(argp1); + { + PyThreadState* __tstate = wxPyBeginAllowThreads(); + (arg1)->Reset(); + wxPyEndAllowThreads(__tstate); + if (PyErr_Occurred()) SWIG_fail; + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + return SWIG_Python_InitShadowInstance(args); +} + +SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + wxOverlay *arg1 = 0 ; + wxWindowDC *arg2 = (wxWindowDC *) 0 ; + int arg3 ; + int arg4 ; + int arg5 ; + int arg6 ; + wxDCOverlay *result = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + int val3 ; + int ecode3 = 0 ; + int val4 ; + int ecode4 = 0 ; + int val5 ; + int ecode5 = 0 ; + int val6 ; + int ecode6 = 0 ; + + if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); + } + arg1 = reinterpret_cast< wxOverlay * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); + } + arg2 = reinterpret_cast< wxWindowDC * >(argp2); + ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); + if (!SWIG_IsOK(ecode3)) { + SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'"); + } + arg3 = static_cast< int >(val3); + ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); + if (!SWIG_IsOK(ecode4)) { + SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'"); + } + arg4 = static_cast< int >(val4); + ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); + if (!SWIG_IsOK(ecode5)) { + SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'"); + } + arg5 = static_cast< int >(val5); + ecode6 = SWIG_AsVal_int(swig_obj[5], &val6); + if (!SWIG_IsOK(ecode6)) { + SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'"); + } + arg6 = static_cast< int >(val6); + { + PyThreadState* __tstate = wxPyBeginAllowThreads(); + result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6); + wxPyEndAllowThreads(__tstate); + if (PyErr_Occurred()) SWIG_fail; + } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { + PyObject *resultobj = 0; + wxOverlay *arg1 = 0 ; + wxWindowDC *arg2 = (wxWindowDC *) 0 ; + wxDCOverlay *result = 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + void *argp2 = 0 ; + int res2 = 0 ; + + if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); + } + if (!argp1) { + SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); + } + arg1 = reinterpret_cast< wxOverlay * >(argp1); + res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); + if (!SWIG_IsOK(res2)) { + SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); + } + arg2 = reinterpret_cast< wxWindowDC * >(argp2); + { + PyThreadState* __tstate = wxPyBeginAllowThreads(); + result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2); + wxPyEndAllowThreads(__tstate); + if (PyErr_Occurred()) SWIG_fail; + } + resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) { + int argc; + PyObject *argv[7]; + + if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail; + --argc; + if (argc == 2) { + return _wrap_new_DCOverlay__SWIG_1(self, argc, argv); + } + if (argc == 6) { + return _wrap_new_DCOverlay__SWIG_0(self, argc, argv); + } + +fail: + SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'"); + return NULL; +} + + +SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject *swig_obj[1] ; + + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); + } + arg1 = reinterpret_cast< wxDCOverlay * >(argp1); + { + PyThreadState* __tstate = wxPyBeginAllowThreads(); + delete arg1; + + wxPyEndAllowThreads(__tstate); + if (PyErr_Occurred()) SWIG_fail; + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *resultobj = 0; + wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; + void *argp1 = 0 ; + int res1 = 0 ; + PyObject *swig_obj[1] ; + + if (!args) SWIG_fail; + swig_obj[0] = args; + res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 ); + if (!SWIG_IsOK(res1)) { + SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); + } + arg1 = reinterpret_cast< wxDCOverlay * >(argp1); + { + PyThreadState* __tstate = wxPyBeginAllowThreads(); + (arg1)->Clear(); + wxPyEndAllowThreads(__tstate); + if (PyErr_Occurred()) SWIG_fail; + } + resultobj = SWIG_Py_Void(); + return resultobj; +fail: + return NULL; +} + + +SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + PyObject *obj; + if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; + SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj)); + return SWIG_Py_Void(); +} + +SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { + return SWIG_Python_InitShadowInstance(args); +} + SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { PyObject *resultobj = 0; int arg1 ; @@ -34100,7 +34409,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL}, { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL}, { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL}, - { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL}, + { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL}, { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, @@ -34117,7 +34426,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL}, - { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL}, + { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL}, { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL}, { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, @@ -34127,7 +34436,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL}, { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL}, { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL}, - { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL}, + { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL}, { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, @@ -34150,7 +34459,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL}, { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL}, { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL}, - { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL}, + { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL}, { (char *)"Brush_MacGetTheme", (PyCFunction)_wrap_Brush_MacGetTheme, METH_O, NULL}, { (char *)"Brush_MacSetTheme", (PyCFunction) _wrap_Brush_MacSetTheme, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, @@ -34162,7 +34471,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, - { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL}, + { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL}, { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL}, { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL}, { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL}, @@ -34243,7 +34552,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, - { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL}, + { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL}, { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL}, { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL}, { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL}, @@ -34275,7 +34584,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL}, { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, - { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL}, + { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL}, { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL}, { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, @@ -34386,7 +34695,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, - { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL}, + { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL}, { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL}, @@ -34566,7 +34875,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL}, { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL}, { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL}, - { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL}, + { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL}, { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL}, { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL}, { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL}, @@ -34602,6 +34911,8 @@ static PyMethodDef SwigMethods[] = { { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL}, { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL}, { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL}, + { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL}, + { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, @@ -34649,7 +34960,7 @@ static PyMethodDef SwigMethods[] = { { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL}, { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL}, - { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL}, + { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL}, { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL}, { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL}, @@ -34693,13 +35004,15 @@ static PyMethodDef SwigMethods[] = { { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL}, - { (char *)"GraphicsContext_DrawText", _wrap_GraphicsContext_DrawText, METH_VARARGS, NULL}, + { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, + { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL}, - { (char *)"GraphicsContext_StrokeLines", _wrap_GraphicsContext_StrokeLines, METH_VARARGS, NULL}, + { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL}, + { (char *)"GraphicsContext_StrokeDisconnectedLines", (PyCFunction) _wrap_GraphicsContext_StrokeDisconnectedLines, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, @@ -34710,6 +35023,16 @@ static PyMethodDef SwigMethods[] = { { (char *)"GCDC_GetGraphicContext", (PyCFunction)_wrap_GCDC_GetGraphicContext, METH_O, NULL}, { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL}, { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL}, + { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL}, + { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL}, + { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL}, + { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL}, + { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL}, + { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL}, + { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL}, + { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL}, + { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL}, + { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL}, { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL}, { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, @@ -34909,12 +35232,6 @@ static PyMethodDef SwigMethods[] = { static void *_p_wxPaintDCTo_p_wxClientDC(void *x) { return (void *)((wxClientDC *) ((wxPaintDC *) x)); } -static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { - return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); -} -static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { - return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); -} static void *_p_wxClientDCTo_p_wxWindowDC(void *x) { return (void *)((wxWindowDC *) ((wxClientDC *) x)); } @@ -34952,7 +35269,7 @@ static void *_p_wxGCDCTo_p_wxDC(void *x) { return (void *)((wxDC *) ((wxGCDC *) x)); } static void *_p_wxBufferedDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); + return (void *)((wxDC *) ((wxBufferedDC *) x)); } static void *_p_wxScreenDCTo_p_wxDC(void *x) { return (void *)((wxDC *) ((wxScreenDC *) x)); @@ -34970,7 +35287,7 @@ static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { return (void *)((wxDC *) ((wxMetaFileDC *) x)); } static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { - return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); + return (void *)((wxDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); } static void *_p_wxClientDCTo_p_wxDC(void *x) { return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x)); @@ -35192,7 +35509,7 @@ static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); } static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); + return (void *)((wxObject *) (wxDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); } static void *_p_wxPaintDCTo_p_wxObject(void *x) { return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); @@ -35219,7 +35536,7 @@ static void *_p_wxPaletteTo_p_wxObject(void *x) { return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); } static void *_p_wxBufferedDCTo_p_wxObject(void *x) { - return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); + return (void *)((wxObject *) (wxDC *) ((wxBufferedDC *) x)); } static void *_p_wxImageListTo_p_wxObject(void *x) { return (void *)((wxObject *) ((wxImageList *) x)); @@ -35345,7 +35662,6 @@ static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0}; -static swig_type_info _swigt__p_wxArrayDouble = {"_p_wxArrayDouble", "wxArrayDouble *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0}; @@ -35358,6 +35674,7 @@ static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, ( static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; +static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0}; @@ -35464,6 +35781,7 @@ static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; +static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0}; static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; @@ -35505,7 +35823,6 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_wxActivateEvent, &_swigt__p_wxAlphaPixelData, &_swigt__p_wxAlphaPixelData_Accessor, - &_swigt__p_wxArrayDouble, &_swigt__p_wxBMPHandler, &_swigt__p_wxBitmap, &_swigt__p_wxBoxSizer, @@ -35528,6 +35845,7 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_wxControlWithItems, &_swigt__p_wxCursor, &_swigt__p_wxDC, + &_swigt__p_wxDCOverlay, &_swigt__p_wxDash, &_swigt__p_wxDateEvent, &_swigt__p_wxDisplayChangedEvent, @@ -35593,6 +35911,7 @@ static swig_type_info *swig_type_initial[] = { &_swigt__p_wxNcPaintEvent, &_swigt__p_wxNotifyEvent, &_swigt__p_wxObject, + &_swigt__p_wxOverlay, &_swigt__p_wxPCXHandler, &_swigt__p_wxPNGHandler, &_swigt__p_wxPNMHandler, @@ -35659,7 +35978,6 @@ static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_wxArrayDouble[] = { {&_swigt__p_wxArrayDouble, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}}; @@ -35672,6 +35990,7 @@ static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{ static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}}; @@ -35693,7 +36012,7 @@ static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxPyLocale, _p_wxPyLocaleTo_p_wxLocale, 0, 0}, {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}}; -static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0}, {&_swigt__p_wxMemoryDC, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}}; @@ -35778,6 +36097,7 @@ static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWit static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}}; +static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}}; static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; @@ -35819,7 +36139,6 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_wxActivateEvent, _swigc__p_wxAlphaPixelData, _swigc__p_wxAlphaPixelData_Accessor, - _swigc__p_wxArrayDouble, _swigc__p_wxBMPHandler, _swigc__p_wxBitmap, _swigc__p_wxBoxSizer, @@ -35842,6 +36161,7 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_wxControlWithItems, _swigc__p_wxCursor, _swigc__p_wxDC, + _swigc__p_wxDCOverlay, _swigc__p_wxDash, _swigc__p_wxDateEvent, _swigc__p_wxDisplayChangedEvent, @@ -35907,6 +36227,7 @@ static swig_cast_info *swig_cast_initial[] = { _swigc__p_wxNcPaintEvent, _swigc__p_wxNotifyEvent, _swigc__p_wxObject, + _swigc__p_wxOverlay, _swigc__p_wxPCXHandler, _swigc__p_wxPNGHandler, _swigc__p_wxPNMHandler,