SWIGged updates for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@19218 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -183,6 +183,10 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) {
|
|||||||
wxCursor* wxPyStockCursor(int id) {
|
wxCursor* wxPyStockCursor(int id) {
|
||||||
return new wxCursor(id);
|
return new wxCursor(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxCursor* wxCursorFromImage(const wxImage& image) {
|
||||||
|
return new wxCursor(image);
|
||||||
|
}
|
||||||
// Alternate 'constructor'
|
// Alternate 'constructor'
|
||||||
wxColour* wxNamedColour(const wxString& colorName) {
|
wxColour* wxNamedColour(const wxString& colorName) {
|
||||||
return new wxColour(colorName);
|
return new wxColour(colorName);
|
||||||
@@ -554,6 +558,39 @@ static PyObject *_wrap_wxStockCursor(PyObject *self, PyObject *args, PyObject *k
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static PyObject *_wrap_wxCursorFromImage(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxCursor * _result;
|
||||||
|
wxImage * _arg0;
|
||||||
|
PyObject * _argo0 = 0;
|
||||||
|
char *_kwnames[] = { "image", NULL };
|
||||||
|
char _ptemp[128];
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"O:wxCursorFromImage",_kwnames,&_argo0))
|
||||||
|
return NULL;
|
||||||
|
if (_argo0) {
|
||||||
|
if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxCursorFromImage. Expected _wxImage_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
_result = (wxCursor *)wxCursorFromImage(*_arg0);
|
||||||
|
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) return NULL;
|
||||||
|
} if (_result) {
|
||||||
|
SWIG_MakePtr(_ptemp, (char *) _result,"_wxCursor_p");
|
||||||
|
_resultobj = Py_BuildValue("s",_ptemp);
|
||||||
|
} else {
|
||||||
|
Py_INCREF(Py_None);
|
||||||
|
_resultobj = Py_None;
|
||||||
|
}
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxNamedColour(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
wxColour * _result;
|
wxColour * _result;
|
||||||
@@ -10628,6 +10665,7 @@ static PyMethodDef gdicMethods[] = {
|
|||||||
{ "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
|
{ "new_wxGDIObject", (PyCFunction) _wrap_new_wxGDIObject, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
|
{ "wxMemoryDCFromDC", (PyCFunction) _wrap_wxMemoryDCFromDC, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
|
{ "wxNamedColour", (PyCFunction) _wrap_wxNamedColour, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxCursorFromImage", (PyCFunction) _wrap_wxCursorFromImage, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
|
{ "wxStockCursor", (PyCFunction) _wrap_wxStockCursor, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS },
|
{ "wxIconFromBitmap", (PyCFunction) _wrap_wxIconFromBitmap, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
|
{ "wxIconFromXPMData", (PyCFunction) _wrap_wxIconFromXPMData, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
@@ -1162,6 +1162,11 @@ def wxStockCursor(*_args, **_kwargs):
|
|||||||
if val: val = wxCursorPtr(val); val.thisown = 1
|
if val: val = wxCursorPtr(val); val.thisown = 1
|
||||||
return val
|
return val
|
||||||
|
|
||||||
|
def wxCursorFromImage(*_args, **_kwargs):
|
||||||
|
val = apply(gdic.wxCursorFromImage,_args,_kwargs)
|
||||||
|
if val: val = wxCursorPtr(val); val.thisown = 1
|
||||||
|
return val
|
||||||
|
|
||||||
def wxNamedColour(*_args, **_kwargs):
|
def wxNamedColour(*_args, **_kwargs):
|
||||||
val = apply(gdic.wxNamedColour,_args,_kwargs)
|
val = apply(gdic.wxNamedColour,_args,_kwargs)
|
||||||
if val: val = wxColourPtr(val); val.thisown = 1
|
if val: val = wxColourPtr(val); val.thisown = 1
|
||||||
|
@@ -2331,6 +2331,52 @@ static PyObject *_wrap_wxImage_GetData(PyObject *self, PyObject *args, PyObject
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void wxImage_SetDataBuffer(wxImage *self,PyObject * data) {
|
||||||
|
unsigned char* buffer;
|
||||||
|
int size;
|
||||||
|
|
||||||
|
if (!PyArg_Parse(data, "w#", &buffer, &size))
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (size != self->GetWidth() * self->GetHeight() * 3) {
|
||||||
|
PyErr_SetString(PyExc_TypeError, "Incorrect buffer size");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
self->SetData(buffer);
|
||||||
|
}
|
||||||
|
static PyObject *_wrap_wxImage_SetDataBuffer(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxImage * _arg0;
|
||||||
|
PyObject * _arg1;
|
||||||
|
PyObject * _argo0 = 0;
|
||||||
|
PyObject * _obj1 = 0;
|
||||||
|
char *_kwnames[] = { "self","data", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxImage_SetDataBuffer",_kwnames,&_argo0,&_obj1))
|
||||||
|
return NULL;
|
||||||
|
if (_argo0) {
|
||||||
|
if (_argo0 == Py_None) { _arg0 = NULL; }
|
||||||
|
else if (SWIG_GetPtrObj(_argo0,(void **) &_arg0,"_wxImage_p")) {
|
||||||
|
PyErr_SetString(PyExc_TypeError,"Type error in argument 1 of wxImage_SetDataBuffer. Expected _wxImage_p.");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
{
|
||||||
|
_arg1 = _obj1;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
wxImage_SetDataBuffer(_arg0,_arg1);
|
||||||
|
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) return NULL;
|
||||||
|
} Py_INCREF(Py_None);
|
||||||
|
_resultobj = Py_None;
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
static void wxImage_SetData(wxImage *self,PyObject * data) {
|
static void wxImage_SetData(wxImage *self,PyObject * data) {
|
||||||
unsigned char* dataPtr;
|
unsigned char* dataPtr;
|
||||||
|
|
||||||
@@ -3157,6 +3203,7 @@ static PyMethodDef imagecMethods[] = {
|
|||||||
{ "wxImage_GetMaskRed", (PyCFunction) _wrap_wxImage_GetMaskRed, METH_VARARGS | METH_KEYWORDS },
|
{ "wxImage_GetMaskRed", (PyCFunction) _wrap_wxImage_GetMaskRed, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxImage_SetMaskColour", (PyCFunction) _wrap_wxImage_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
|
{ "wxImage_SetMaskColour", (PyCFunction) _wrap_wxImage_SetMaskColour, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxImage_SetData", (PyCFunction) _wrap_wxImage_SetData, METH_VARARGS | METH_KEYWORDS },
|
{ "wxImage_SetData", (PyCFunction) _wrap_wxImage_SetData, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxImage_SetDataBuffer", (PyCFunction) _wrap_wxImage_SetDataBuffer, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxImage_GetData", (PyCFunction) _wrap_wxImage_GetData, METH_VARARGS | METH_KEYWORDS },
|
{ "wxImage_GetData", (PyCFunction) _wrap_wxImage_GetData, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxImage_GetDataBuffer", (PyCFunction) _wrap_wxImage_GetDataBuffer, METH_VARARGS | METH_KEYWORDS },
|
{ "wxImage_GetDataBuffer", (PyCFunction) _wrap_wxImage_GetDataBuffer, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxImage_Paste", (PyCFunction) _wrap_wxImage_Paste, METH_VARARGS | METH_KEYWORDS },
|
{ "wxImage_Paste", (PyCFunction) _wrap_wxImage_Paste, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
@@ -271,6 +271,9 @@ class wxImagePtr(wxObjectPtr):
|
|||||||
def GetData(self, *_args, **_kwargs):
|
def GetData(self, *_args, **_kwargs):
|
||||||
val = apply(imagec.wxImage_GetData,(self,) + _args, _kwargs)
|
val = apply(imagec.wxImage_GetData,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
def SetDataBuffer(self, *_args, **_kwargs):
|
||||||
|
val = apply(imagec.wxImage_SetDataBuffer,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
def SetData(self, *_args, **_kwargs):
|
def SetData(self, *_args, **_kwargs):
|
||||||
val = apply(imagec.wxImage_SetData,(self,) + _args, _kwargs)
|
val = apply(imagec.wxImage_SetData,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
@@ -2862,6 +2862,35 @@ static PyObject *_wrap_wxRect_SetBottom(PyObject *self, PyObject *args, PyObject
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define wxRect_Deflate(_swigobj,_swigarg0,_swigarg1) (_swigobj->Deflate(_swigarg0,_swigarg1))
|
||||||
|
static PyObject *_wrap_wxRect_Deflate(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxRect * _arg0;
|
||||||
|
int _arg1;
|
||||||
|
int _arg2;
|
||||||
|
wxRect temp;
|
||||||
|
PyObject * _obj0 = 0;
|
||||||
|
char *_kwnames[] = { "self","dx","dy", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRect_Deflate",_kwnames,&_obj0,&_arg1,&_arg2))
|
||||||
|
return NULL;
|
||||||
|
{
|
||||||
|
_arg0 = &temp;
|
||||||
|
if (! wxRect_helper(_obj0, &_arg0))
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
wxRect_Deflate(_arg0,_arg1,_arg2);
|
||||||
|
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) return NULL;
|
||||||
|
} Py_INCREF(Py_None);
|
||||||
|
_resultobj = Py_None;
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
#define wxRect_Inflate(_swigobj,_swigarg0,_swigarg1) (_swigobj->Inflate(_swigarg0,_swigarg1))
|
#define wxRect_Inflate(_swigobj,_swigarg0,_swigarg1) (_swigobj->Inflate(_swigarg0,_swigarg1))
|
||||||
static PyObject *_wrap_wxRect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxRect_Inflate(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
@@ -2891,8 +2920,8 @@ static PyObject *_wrap_wxRect_Inflate(PyObject *self, PyObject *args, PyObject *
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define wxRect_Inside(_swigobj,_swigarg0,_swigarg1) (_swigobj->Inside(_swigarg0,_swigarg1))
|
#define wxRect_InsideXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Inside(_swigarg0,_swigarg1))
|
||||||
static PyObject *_wrap_wxRect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxRect_InsideXY(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
bool _result;
|
bool _result;
|
||||||
wxRect * _arg0;
|
wxRect * _arg0;
|
||||||
@@ -2903,7 +2932,7 @@ static PyObject *_wrap_wxRect_Inside(PyObject *self, PyObject *args, PyObject *k
|
|||||||
char *_kwnames[] = { "self","cx","cy", NULL };
|
char *_kwnames[] = { "self","cx","cy", NULL };
|
||||||
|
|
||||||
self = self;
|
self = self;
|
||||||
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRect_Inside",_kwnames,&_obj0,&_arg1,&_arg2))
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRect_InsideXY",_kwnames,&_obj0,&_arg1,&_arg2))
|
||||||
return NULL;
|
return NULL;
|
||||||
{
|
{
|
||||||
_arg0 = &temp;
|
_arg0 = &temp;
|
||||||
@@ -2912,7 +2941,7 @@ static PyObject *_wrap_wxRect_Inside(PyObject *self, PyObject *args, PyObject *k
|
|||||||
}
|
}
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
_result = (bool )wxRect_Inside(_arg0,_arg1,_arg2);
|
_result = (bool )wxRect_InsideXY(_arg0,_arg1,_arg2);
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
wxPyEndAllowThreads(__tstate);
|
||||||
if (PyErr_Occurred()) return NULL;
|
if (PyErr_Occurred()) return NULL;
|
||||||
@@ -2920,6 +2949,140 @@ static PyObject *_wrap_wxRect_Inside(PyObject *self, PyObject *args, PyObject *k
|
|||||||
return _resultobj;
|
return _resultobj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define wxRect_Inside(_swigobj,_swigarg0) (_swigobj->Inside(_swigarg0))
|
||||||
|
static PyObject *_wrap_wxRect_Inside(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
bool _result;
|
||||||
|
wxRect * _arg0;
|
||||||
|
wxPoint * _arg1;
|
||||||
|
wxRect temp;
|
||||||
|
PyObject * _obj0 = 0;
|
||||||
|
wxPoint temp0;
|
||||||
|
PyObject * _obj1 = 0;
|
||||||
|
char *_kwnames[] = { "self","pt", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect_Inside",_kwnames,&_obj0,&_obj1))
|
||||||
|
return NULL;
|
||||||
|
{
|
||||||
|
_arg0 = &temp;
|
||||||
|
if (! wxRect_helper(_obj0, &_arg0))
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
_arg1 = &temp0;
|
||||||
|
if (! wxPoint_helper(_obj1, &_arg1))
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
_result = (bool )wxRect_Inside(_arg0,*_arg1);
|
||||||
|
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) return NULL;
|
||||||
|
} _resultobj = Py_BuildValue("i",_result);
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
|
#define wxRect_Intersects(_swigobj,_swigarg0) (_swigobj->Intersects(_swigarg0))
|
||||||
|
static PyObject *_wrap_wxRect_Intersects(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
bool _result;
|
||||||
|
wxRect * _arg0;
|
||||||
|
wxRect * _arg1;
|
||||||
|
wxRect temp;
|
||||||
|
PyObject * _obj0 = 0;
|
||||||
|
wxRect temp0;
|
||||||
|
PyObject * _obj1 = 0;
|
||||||
|
char *_kwnames[] = { "self","rect", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect_Intersects",_kwnames,&_obj0,&_obj1))
|
||||||
|
return NULL;
|
||||||
|
{
|
||||||
|
_arg0 = &temp;
|
||||||
|
if (! wxRect_helper(_obj0, &_arg0))
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
_arg1 = &temp0;
|
||||||
|
if (! wxRect_helper(_obj1, &_arg1))
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
_result = (bool )wxRect_Intersects(_arg0,*_arg1);
|
||||||
|
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) return NULL;
|
||||||
|
} _resultobj = Py_BuildValue("i",_result);
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
|
#define wxRect_OffsetXY(_swigobj,_swigarg0,_swigarg1) (_swigobj->Offset(_swigarg0,_swigarg1))
|
||||||
|
static PyObject *_wrap_wxRect_OffsetXY(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxRect * _arg0;
|
||||||
|
int _arg1;
|
||||||
|
int _arg2;
|
||||||
|
wxRect temp;
|
||||||
|
PyObject * _obj0 = 0;
|
||||||
|
char *_kwnames[] = { "self","dx","dy", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"Oii:wxRect_OffsetXY",_kwnames,&_obj0,&_arg1,&_arg2))
|
||||||
|
return NULL;
|
||||||
|
{
|
||||||
|
_arg0 = &temp;
|
||||||
|
if (! wxRect_helper(_obj0, &_arg0))
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
wxRect_OffsetXY(_arg0,_arg1,_arg2);
|
||||||
|
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) return NULL;
|
||||||
|
} Py_INCREF(Py_None);
|
||||||
|
_resultobj = Py_None;
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
|
#define wxRect_Offset(_swigobj,_swigarg0) (_swigobj->Offset(_swigarg0))
|
||||||
|
static PyObject *_wrap_wxRect_Offset(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject * _resultobj;
|
||||||
|
wxRect * _arg0;
|
||||||
|
wxPoint * _arg1;
|
||||||
|
wxRect temp;
|
||||||
|
PyObject * _obj0 = 0;
|
||||||
|
wxPoint temp0;
|
||||||
|
PyObject * _obj1 = 0;
|
||||||
|
char *_kwnames[] = { "self","pt", NULL };
|
||||||
|
|
||||||
|
self = self;
|
||||||
|
if(!PyArg_ParseTupleAndKeywords(args,kwargs,"OO:wxRect_Offset",_kwnames,&_obj0,&_obj1))
|
||||||
|
return NULL;
|
||||||
|
{
|
||||||
|
_arg0 = &temp;
|
||||||
|
if (! wxRect_helper(_obj0, &_arg0))
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
_arg1 = &temp0;
|
||||||
|
if (! wxPoint_helper(_obj1, &_arg1))
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
wxRect_Offset(_arg0,*_arg1);
|
||||||
|
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) return NULL;
|
||||||
|
} Py_INCREF(Py_None);
|
||||||
|
_resultobj = Py_None;
|
||||||
|
return _resultobj;
|
||||||
|
}
|
||||||
|
|
||||||
#define wxRect_x_set(_swigobj,_swigval) (_swigobj->x = _swigval,_swigval)
|
#define wxRect_x_set(_swigobj,_swigval) (_swigobj->x = _swigval,_swigval)
|
||||||
static PyObject *_wrap_wxRect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_wxRect_x_set(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject * _resultobj;
|
PyObject * _resultobj;
|
||||||
@@ -5303,8 +5466,13 @@ static PyMethodDef misccMethods[] = {
|
|||||||
{ "wxRect_y_set", (PyCFunction) _wrap_wxRect_y_set, METH_VARARGS | METH_KEYWORDS },
|
{ "wxRect_y_set", (PyCFunction) _wrap_wxRect_y_set, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxRect_x_get", (PyCFunction) _wrap_wxRect_x_get, METH_VARARGS | METH_KEYWORDS },
|
{ "wxRect_x_get", (PyCFunction) _wrap_wxRect_x_get, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxRect_x_set", (PyCFunction) _wrap_wxRect_x_set, METH_VARARGS | METH_KEYWORDS },
|
{ "wxRect_x_set", (PyCFunction) _wrap_wxRect_x_set, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxRect_Offset", (PyCFunction) _wrap_wxRect_Offset, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxRect_OffsetXY", (PyCFunction) _wrap_wxRect_OffsetXY, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxRect_Intersects", (PyCFunction) _wrap_wxRect_Intersects, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxRect_Inside", (PyCFunction) _wrap_wxRect_Inside, METH_VARARGS | METH_KEYWORDS },
|
{ "wxRect_Inside", (PyCFunction) _wrap_wxRect_Inside, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxRect_InsideXY", (PyCFunction) _wrap_wxRect_InsideXY, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxRect_Inflate", (PyCFunction) _wrap_wxRect_Inflate, METH_VARARGS | METH_KEYWORDS },
|
{ "wxRect_Inflate", (PyCFunction) _wrap_wxRect_Inflate, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
{ "wxRect_Deflate", (PyCFunction) _wrap_wxRect_Deflate, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxRect_SetBottom", (PyCFunction) _wrap_wxRect_SetBottom, METH_VARARGS | METH_KEYWORDS },
|
{ "wxRect_SetBottom", (PyCFunction) _wrap_wxRect_SetBottom, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxRect_SetTop", (PyCFunction) _wrap_wxRect_SetTop, METH_VARARGS | METH_KEYWORDS },
|
{ "wxRect_SetTop", (PyCFunction) _wrap_wxRect_SetTop, METH_VARARGS | METH_KEYWORDS },
|
||||||
{ "wxRect_SetRight", (PyCFunction) _wrap_wxRect_SetRight, METH_VARARGS | METH_KEYWORDS },
|
{ "wxRect_SetRight", (PyCFunction) _wrap_wxRect_SetRight, METH_VARARGS | METH_KEYWORDS },
|
||||||
|
@@ -303,12 +303,27 @@ class wxRectPtr :
|
|||||||
def SetBottom(self, *_args, **_kwargs):
|
def SetBottom(self, *_args, **_kwargs):
|
||||||
val = apply(miscc.wxRect_SetBottom,(self,) + _args, _kwargs)
|
val = apply(miscc.wxRect_SetBottom,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
def Deflate(self, *_args, **_kwargs):
|
||||||
|
val = apply(miscc.wxRect_Deflate,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
def Inflate(self, *_args, **_kwargs):
|
def Inflate(self, *_args, **_kwargs):
|
||||||
val = apply(miscc.wxRect_Inflate,(self,) + _args, _kwargs)
|
val = apply(miscc.wxRect_Inflate,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
def InsideXY(self, *_args, **_kwargs):
|
||||||
|
val = apply(miscc.wxRect_InsideXY,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
def Inside(self, *_args, **_kwargs):
|
def Inside(self, *_args, **_kwargs):
|
||||||
val = apply(miscc.wxRect_Inside,(self,) + _args, _kwargs)
|
val = apply(miscc.wxRect_Inside,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
def Intersects(self, *_args, **_kwargs):
|
||||||
|
val = apply(miscc.wxRect_Intersects,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
|
def OffsetXY(self, *_args, **_kwargs):
|
||||||
|
val = apply(miscc.wxRect_OffsetXY,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
|
def Offset(self, *_args, **_kwargs):
|
||||||
|
val = apply(miscc.wxRect_Offset,(self,) + _args, _kwargs)
|
||||||
|
return val
|
||||||
def Set(self, *_args, **_kwargs):
|
def Set(self, *_args, **_kwargs):
|
||||||
val = apply(miscc.wxRect_Set,(self,) + _args, _kwargs)
|
val = apply(miscc.wxRect_Set,(self,) + _args, _kwargs)
|
||||||
return val
|
return val
|
||||||
|
@@ -1540,8 +1540,7 @@ wxSystemSettings_GetSystemFont = wxSystemSettings_GetFont
|
|||||||
wxSystemSettings_GetSystemMetric = wxSystemSettings_GetMetric
|
wxSystemSettings_GetSystemMetric = wxSystemSettings_GetMetric
|
||||||
|
|
||||||
# workarounds for bad wxRTTI names
|
# workarounds for bad wxRTTI names
|
||||||
wxGauge95 = wxGauge
|
__wxPyPtrTypeMap['wxGauge95'] = 'wxGauge'
|
||||||
wxGauge95Ptr = wxGaugePtr
|
|
||||||
|
|
||||||
|
|
||||||
wxPyAssertionError = wxc.wxPyAssertionError
|
wxPyAssertionError = wxc.wxPyAssertionError
|
||||||
|
Reference in New Issue
Block a user