little tweaks to match wxWin changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25107 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -42,7 +42,7 @@ public:
|
|||||||
int GetFormatMode();
|
int GetFormatMode();
|
||||||
wxString GetName();
|
wxString GetName();
|
||||||
wxString GetColour();
|
wxString GetColour();
|
||||||
wxColour *GetActualColourObject();
|
wxColour GetActualColourObject();
|
||||||
wxList& GetFormattedText();
|
wxList& GetFormattedText();
|
||||||
wxString GetPenColour();
|
wxString GetPenColour();
|
||||||
int GetPenStyle();
|
int GetPenStyle();
|
||||||
|
@@ -1256,7 +1256,7 @@ static PyObject *_wrap_ShapeRegion_GetColour(PyObject *self, PyObject *args, PyO
|
|||||||
static PyObject *_wrap_ShapeRegion_GetActualColourObject(PyObject *self, PyObject *args, PyObject *kwargs) {
|
static PyObject *_wrap_ShapeRegion_GetActualColourObject(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||||
PyObject *resultobj;
|
PyObject *resultobj;
|
||||||
wxShapeRegion *arg1 = (wxShapeRegion *) 0 ;
|
wxShapeRegion *arg1 = (wxShapeRegion *) 0 ;
|
||||||
wxColour *result;
|
wxColour result;
|
||||||
PyObject * obj0 = 0 ;
|
PyObject * obj0 = 0 ;
|
||||||
char *kwnames[] = {
|
char *kwnames[] = {
|
||||||
(char *) "self", NULL
|
(char *) "self", NULL
|
||||||
@@ -1266,12 +1266,16 @@ static PyObject *_wrap_ShapeRegion_GetActualColourObject(PyObject *self, PyObjec
|
|||||||
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
if ((SWIG_ConvertPtr(obj0,(void **) &arg1, SWIGTYPE_p_wxShapeRegion,SWIG_POINTER_EXCEPTION | 0 )) == -1) SWIG_fail;
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
result = (wxColour *)(arg1)->GetActualColourObject();
|
result = (arg1)->GetActualColourObject();
|
||||||
|
|
||||||
wxPyEndAllowThreads(__tstate);
|
wxPyEndAllowThreads(__tstate);
|
||||||
if (PyErr_Occurred()) SWIG_fail;
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
}
|
}
|
||||||
resultobj = SWIG_NewPointerObj((void *) result, SWIGTYPE_p_wxColour, 0);
|
{
|
||||||
|
wxColour * resultptr;
|
||||||
|
resultptr = new wxColour((wxColour &) result);
|
||||||
|
resultobj = SWIG_NewPointerObj((void *) resultptr, SWIGTYPE_p_wxColour, 1);
|
||||||
|
}
|
||||||
return resultobj;
|
return resultobj;
|
||||||
fail:
|
fail:
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@@ -302,10 +302,17 @@ public:
|
|||||||
"Test for inequality of wx.Point objects.");
|
"Test for inequality of wx.Point objects.");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// %nokwargs operator+;
|
||||||
|
// %nokwargs operator-;
|
||||||
|
// %nokwargs operator+=;
|
||||||
|
// %nokwargs operator-=;
|
||||||
|
|
||||||
DocDeclStr(
|
DocDeclStr(
|
||||||
wxPoint, operator+(const wxPoint& pt),
|
wxPoint, operator+(const wxPoint& pt),
|
||||||
"Add pt's proprties to this and return the result.");
|
"Add pt's proprties to this and return the result.");
|
||||||
|
|
||||||
|
|
||||||
DocDeclStr(
|
DocDeclStr(
|
||||||
wxPoint, operator-(const wxPoint& pt),
|
wxPoint, operator-(const wxPoint& pt),
|
||||||
"Subtract pt's proprties from this and return the result");
|
"Subtract pt's proprties from this and return the result");
|
||||||
@@ -320,6 +327,27 @@ public:
|
|||||||
"Subtract pt from this object.");
|
"Subtract pt from this object.");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
// DocDeclStr(
|
||||||
|
// wxPoint, operator+(const wxSize& sz),
|
||||||
|
// "Add sz to this Point and return the result.");
|
||||||
|
|
||||||
|
// DocDeclStr(
|
||||||
|
// wxPoint, operator-(const wxSize& sz),
|
||||||
|
// "Subtract sz from this Point and return the result");
|
||||||
|
|
||||||
|
|
||||||
|
// DocDeclStr(
|
||||||
|
// wxPoint&, operator+=(const wxSize& sz),
|
||||||
|
// "Add sz to this object.");
|
||||||
|
|
||||||
|
// DocDeclStr(
|
||||||
|
// wxPoint&, operator-=(const wxSize& sz),
|
||||||
|
// "Subtract sz from this object.");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%extend {
|
%extend {
|
||||||
DocStr(Set, "Set both the x and y properties");
|
DocStr(Set, "Set both the x and y properties");
|
||||||
void Set(long x, long y) {
|
void Set(long x, long y) {
|
||||||
|
Reference in New Issue
Block a user