ad2b4d6490
wxGTK 2.8 and the Unicode version as backend.
115 lines
5.6 KiB
Text
115 lines
5.6 KiB
Text
$NetBSD: patch-ae,v 1.1 2009/08/06 23:21:31 joerg Exp $
|
|
|
|
--- src/gtk/_gdi_wrap.cpp.orig 2009-08-06 08:15:16.000000000 +0200
|
|
+++ src/gtk/_gdi_wrap.cpp
|
|
@@ -20579,47 +20579,6 @@ fail:
|
|
}
|
|
|
|
|
|
-SWIGINTERN PyObject *_wrap_DC_SetDeviceClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
- PyObject *resultobj = 0;
|
|
- wxDC *arg1 = (wxDC *) 0 ;
|
|
- wxRegion *arg2 = 0 ;
|
|
- void *argp1 = 0 ;
|
|
- int res1 = 0 ;
|
|
- void *argp2 = 0 ;
|
|
- int res2 = 0 ;
|
|
- PyObject * obj0 = 0 ;
|
|
- PyObject * obj1 = 0 ;
|
|
- char * kwnames[] = {
|
|
- (char *) "self",(char *) "region", NULL
|
|
- };
|
|
-
|
|
- if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceClippingRegion",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_SetDeviceClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
|
|
- }
|
|
- arg1 = reinterpret_cast< wxDC * >(argp1);
|
|
- res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
|
|
- if (!SWIG_IsOK(res2)) {
|
|
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetDeviceClippingRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
|
|
- }
|
|
- if (!argp2) {
|
|
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetDeviceClippingRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
|
|
- }
|
|
- arg2 = reinterpret_cast< wxRegion * >(argp2);
|
|
- {
|
|
- PyThreadState* __tstate = wxPyBeginAllowThreads();
|
|
- (arg1)->SetDeviceClippingRegion((wxRegion const &)*arg2);
|
|
- wxPyEndAllowThreads(__tstate);
|
|
- if (PyErr_Occurred()) SWIG_fail;
|
|
- }
|
|
- resultobj = SWIG_Py_Void();
|
|
- return resultobj;
|
|
-fail:
|
|
- return NULL;
|
|
-}
|
|
-
|
|
-
|
|
SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
PyObject *resultobj = 0;
|
|
wxDC *arg1 = (wxDC *) 0 ;
|
|
@@ -31374,46 +31333,6 @@ fail:
|
|
}
|
|
|
|
|
|
-SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
|
- PyObject *resultobj = 0;
|
|
- wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ;
|
|
- wxBitmap *arg2 = 0 ;
|
|
- wxGraphicsBitmap result;
|
|
- void *argp1 = 0 ;
|
|
- int res1 = 0 ;
|
|
- void *argp2 = 0 ;
|
|
- int res2 = 0 ;
|
|
- PyObject * obj0 = 0 ;
|
|
- PyObject * obj1 = 0 ;
|
|
- char * kwnames[] = {
|
|
- (char *) "self",(char *) "bmp", NULL
|
|
- };
|
|
-
|
|
- if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
|
|
- res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 );
|
|
- if (!SWIG_IsOK(res1)) {
|
|
- SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBitmap" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'");
|
|
- }
|
|
- arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1);
|
|
- res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
|
|
- if (!SWIG_IsOK(res2)) {
|
|
- SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
|
|
- }
|
|
- if (!argp2) {
|
|
- SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
|
|
- }
|
|
- arg2 = reinterpret_cast< wxBitmap * >(argp2);
|
|
- {
|
|
- result = (arg1)->CreateBitmap((wxBitmap const &)*arg2);
|
|
- if (PyErr_Occurred()) SWIG_fail;
|
|
- }
|
|
- resultobj = SWIG_NewPointerObj((new wxGraphicsBitmap(static_cast< const wxGraphicsBitmap& >(result))), SWIGTYPE_p_wxGraphicsBitmap, SWIG_POINTER_OWN | 0 );
|
|
- return resultobj;
|
|
-fail:
|
|
- return NULL;
|
|
-}
|
|
-
|
|
-
|
|
SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
|
PyObject *obj;
|
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
|
@@ -40069,7 +39988,6 @@ static PyMethodDef SwigMethods[] = {
|
|
{ (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
- { (char *)"DC_SetDeviceClippingRegion", (PyCFunction) _wrap_DC_SetDeviceClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
@@ -40353,7 +40271,6 @@ static PyMethodDef SwigMethods[] = {
|
|
{ (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
- { (char *)"GraphicsRenderer_CreateBitmap", (PyCFunction) _wrap_GraphicsRenderer_CreateBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
|
|
{ (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL},
|
|
{ (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL},
|
|
{ (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
|