reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2311,7 +2311,7 @@ class RadioBox(_core.Control):
|
|||||||
return _controls_.RadioBox_SetStringSelection(*args, **kwargs)
|
return _controls_.RadioBox_SetStringSelection(*args, **kwargs)
|
||||||
|
|
||||||
def GetCount(*args, **kwargs):
|
def GetCount(*args, **kwargs):
|
||||||
"""GetCount(self) -> int"""
|
"""GetCount(self) -> size_t"""
|
||||||
return _controls_.RadioBox_GetCount(*args, **kwargs)
|
return _controls_.RadioBox_GetCount(*args, **kwargs)
|
||||||
|
|
||||||
def FindString(*args, **kwargs):
|
def FindString(*args, **kwargs):
|
||||||
@@ -2783,11 +2783,11 @@ class BookCtrlBase(_core.Control):
|
|||||||
return _controls_.BookCtrlBase_CalcSizeFromPage(*args, **kwargs)
|
return _controls_.BookCtrlBase_CalcSizeFromPage(*args, **kwargs)
|
||||||
|
|
||||||
def GetInternalBorder(*args, **kwargs):
|
def GetInternalBorder(*args, **kwargs):
|
||||||
"""GetInternalBorder(self) -> unsigned int"""
|
"""GetInternalBorder(self) -> size_t"""
|
||||||
return _controls_.BookCtrlBase_GetInternalBorder(*args, **kwargs)
|
return _controls_.BookCtrlBase_GetInternalBorder(*args, **kwargs)
|
||||||
|
|
||||||
def SetInternalBorder(*args, **kwargs):
|
def SetInternalBorder(*args, **kwargs):
|
||||||
"""SetInternalBorder(self, unsigned int internalBorder)"""
|
"""SetInternalBorder(self, size_t internalBorder)"""
|
||||||
return _controls_.BookCtrlBase_SetInternalBorder(*args, **kwargs)
|
return _controls_.BookCtrlBase_SetInternalBorder(*args, **kwargs)
|
||||||
|
|
||||||
def IsVertical(*args, **kwargs):
|
def IsVertical(*args, **kwargs):
|
||||||
|
@@ -2870,6 +2870,21 @@ SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
|
|||||||
static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
|
static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
|
||||||
static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
|
static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
|
||||||
|
|
||||||
|
SWIGINTERNINLINE PyObject*
|
||||||
|
SWIG_From_unsigned_SS_long (unsigned long value)
|
||||||
|
{
|
||||||
|
return (value > LONG_MAX) ?
|
||||||
|
PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERNINLINE PyObject *
|
||||||
|
SWIG_From_size_t (size_t value)
|
||||||
|
{
|
||||||
|
return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#include <wx/slider.h>
|
#include <wx/slider.h>
|
||||||
|
|
||||||
|
|
||||||
@@ -2896,21 +2911,6 @@ public:
|
|||||||
|
|
||||||
static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
|
static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
|
||||||
|
|
||||||
SWIGINTERNINLINE PyObject*
|
|
||||||
SWIG_From_unsigned_SS_long (unsigned long value)
|
|
||||||
{
|
|
||||||
return (value > LONG_MAX) ?
|
|
||||||
PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
SWIGINTERNINLINE PyObject *
|
|
||||||
SWIG_From_size_t (size_t value)
|
|
||||||
{
|
|
||||||
return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
SWIGINTERNINLINE int
|
SWIGINTERNINLINE int
|
||||||
SWIG_AsVal_size_t (PyObject * obj, size_t *val)
|
SWIG_AsVal_size_t (PyObject * obj, size_t *val)
|
||||||
{
|
{
|
||||||
@@ -2920,29 +2920,6 @@ SWIG_AsVal_size_t (PyObject * obj, size_t *val)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SWIGINTERNINLINE PyObject *
|
|
||||||
SWIG_From_unsigned_SS_int (unsigned int value)
|
|
||||||
{
|
|
||||||
return SWIG_From_unsigned_SS_long (value);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
SWIGINTERN int
|
|
||||||
SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
|
|
||||||
{
|
|
||||||
unsigned long v;
|
|
||||||
int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
|
|
||||||
if (SWIG_IsOK(res)) {
|
|
||||||
if ((v > UINT_MAX)) {
|
|
||||||
return SWIG_OverflowError;
|
|
||||||
} else {
|
|
||||||
if (val) *val = static_cast< unsigned int >(v);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
|
|
||||||
static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
|
static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
|
||||||
SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
|
SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
|
||||||
wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
|
wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
|
||||||
@@ -3146,6 +3123,29 @@ public:
|
|||||||
IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
|
IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERNINLINE PyObject *
|
||||||
|
SWIG_From_unsigned_SS_int (unsigned int value)
|
||||||
|
{
|
||||||
|
return SWIG_From_unsigned_SS_long (value);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERN int
|
||||||
|
SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
|
||||||
|
{
|
||||||
|
unsigned long v;
|
||||||
|
int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
|
||||||
|
if (SWIG_IsOK(res)) {
|
||||||
|
if ((v > UINT_MAX)) {
|
||||||
|
return SWIG_OverflowError;
|
||||||
|
} else {
|
||||||
|
if (val) *val = static_cast< unsigned int >(v);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
|
SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
|
||||||
wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
|
wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
|
||||||
if (data == NULL) {
|
if (data == NULL) {
|
||||||
@@ -16171,7 +16171,7 @@ fail:
|
|||||||
SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
PyObject *resultobj = 0;
|
PyObject *resultobj = 0;
|
||||||
wxRadioBox *arg1 = (wxRadioBox *) 0 ;
|
wxRadioBox *arg1 = (wxRadioBox *) 0 ;
|
||||||
int result;
|
size_t result;
|
||||||
void *argp1 = 0 ;
|
void *argp1 = 0 ;
|
||||||
int res1 = 0 ;
|
int res1 = 0 ;
|
||||||
PyObject *swig_obj[1] ;
|
PyObject *swig_obj[1] ;
|
||||||
@@ -16185,11 +16185,11 @@ SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyO
|
|||||||
arg1 = reinterpret_cast< wxRadioBox * >(argp1);
|
arg1 = reinterpret_cast< wxRadioBox * >(argp1);
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
result = (int)((wxRadioBox const *)arg1)->GetCount();
|
result = (size_t)((wxRadioBox const *)arg1)->GetCount();
|
||||||
wxPyEndAllowThreads(__tstate);
|
wxPyEndAllowThreads(__tstate);
|
||||||
if (PyErr_Occurred()) SWIG_fail;
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
}
|
}
|
||||||
resultobj = SWIG_From_int(static_cast< int >(result));
|
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
|
||||||
return resultobj;
|
return resultobj;
|
||||||
fail:
|
fail:
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -19008,7 +19008,7 @@ fail:
|
|||||||
SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
PyObject *resultobj = 0;
|
PyObject *resultobj = 0;
|
||||||
wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
|
wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
|
||||||
unsigned int result;
|
size_t result;
|
||||||
void *argp1 = 0 ;
|
void *argp1 = 0 ;
|
||||||
int res1 = 0 ;
|
int res1 = 0 ;
|
||||||
PyObject *swig_obj[1] ;
|
PyObject *swig_obj[1] ;
|
||||||
@@ -19022,11 +19022,11 @@ SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPA
|
|||||||
arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
|
arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
|
result = (size_t)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
|
||||||
wxPyEndAllowThreads(__tstate);
|
wxPyEndAllowThreads(__tstate);
|
||||||
if (PyErr_Occurred()) SWIG_fail;
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
}
|
}
|
||||||
resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
|
||||||
return resultobj;
|
return resultobj;
|
||||||
fail:
|
fail:
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -19036,10 +19036,10 @@ fail:
|
|||||||
SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||||
PyObject *resultobj = 0;
|
PyObject *resultobj = 0;
|
||||||
wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
|
wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
|
||||||
unsigned int arg2 ;
|
size_t arg2 ;
|
||||||
void *argp1 = 0 ;
|
void *argp1 = 0 ;
|
||||||
int res1 = 0 ;
|
int res1 = 0 ;
|
||||||
unsigned int val2 ;
|
size_t val2 ;
|
||||||
int ecode2 = 0 ;
|
int ecode2 = 0 ;
|
||||||
PyObject * obj0 = 0 ;
|
PyObject * obj0 = 0 ;
|
||||||
PyObject * obj1 = 0 ;
|
PyObject * obj1 = 0 ;
|
||||||
@@ -19053,11 +19053,11 @@ SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPA
|
|||||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
|
||||||
}
|
}
|
||||||
arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
|
arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
|
||||||
ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
||||||
if (!SWIG_IsOK(ecode2)) {
|
if (!SWIG_IsOK(ecode2)) {
|
||||||
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "size_t""'");
|
||||||
}
|
}
|
||||||
arg2 = static_cast< unsigned int >(val2);
|
arg2 = static_cast< size_t >(val2);
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
(arg1)->SetInternalBorder(arg2);
|
(arg1)->SetInternalBorder(arg2);
|
||||||
|
@@ -7754,7 +7754,10 @@ class Window(EvtHandler):
|
|||||||
"""
|
"""
|
||||||
GetPosition(self) -> Point
|
GetPosition(self) -> Point
|
||||||
|
|
||||||
Get the window's position.
|
Get the window's position. Notice that the position is in client
|
||||||
|
coordinates for child windows and screen coordinates for the top level
|
||||||
|
ones, use `GetScreenPosition` if you need screen coordinates for all
|
||||||
|
kinds of windows.
|
||||||
"""
|
"""
|
||||||
return _core_.Window_GetPosition(*args, **kwargs)
|
return _core_.Window_GetPosition(*args, **kwargs)
|
||||||
|
|
||||||
@@ -7762,10 +7765,38 @@ class Window(EvtHandler):
|
|||||||
"""
|
"""
|
||||||
GetPositionTuple() -> (x,y)
|
GetPositionTuple() -> (x,y)
|
||||||
|
|
||||||
Get the window's position.
|
Get the window's position. Notice that the position is in client
|
||||||
|
coordinates for child windows and screen coordinates for the top level
|
||||||
|
ones, use `GetScreenPosition` if you need screen coordinates for all
|
||||||
|
kinds of windows.
|
||||||
"""
|
"""
|
||||||
return _core_.Window_GetPositionTuple(*args, **kwargs)
|
return _core_.Window_GetPositionTuple(*args, **kwargs)
|
||||||
|
|
||||||
|
def GetScreenPosition(*args, **kwargs):
|
||||||
|
"""
|
||||||
|
GetScreenPosition(self) -> Point
|
||||||
|
|
||||||
|
Get the position of the window in screen coordinantes.
|
||||||
|
"""
|
||||||
|
return _core_.Window_GetScreenPosition(*args, **kwargs)
|
||||||
|
|
||||||
|
def GetScreenPositionTuple(*args, **kwargs):
|
||||||
|
"""
|
||||||
|
GetScreenPositionTuple() -> (x,y)
|
||||||
|
|
||||||
|
Get the position of the window in screen coordinantes.
|
||||||
|
"""
|
||||||
|
return _core_.Window_GetScreenPositionTuple(*args, **kwargs)
|
||||||
|
|
||||||
|
def GetScreenRect(*args, **kwargs):
|
||||||
|
"""
|
||||||
|
GetScreenRect(self) -> Rect
|
||||||
|
|
||||||
|
Returns the size and position of the window in screen coordinantes as
|
||||||
|
a `wx.Rect` object.
|
||||||
|
"""
|
||||||
|
return _core_.Window_GetScreenRect(*args, **kwargs)
|
||||||
|
|
||||||
def GetSize(*args, **kwargs):
|
def GetSize(*args, **kwargs):
|
||||||
"""
|
"""
|
||||||
GetSize(self) -> Size
|
GetSize(self) -> Size
|
||||||
@@ -7786,7 +7817,7 @@ class Window(EvtHandler):
|
|||||||
"""
|
"""
|
||||||
GetRect(self) -> Rect
|
GetRect(self) -> Rect
|
||||||
|
|
||||||
Returns the size and position of the window as a wx.Rect object.
|
Returns the size and position of the window as a `wx.Rect` object.
|
||||||
"""
|
"""
|
||||||
return _core_.Window_GetRect(*args, **kwargs)
|
return _core_.Window_GetRect(*args, **kwargs)
|
||||||
|
|
||||||
@@ -10531,7 +10562,7 @@ class ItemContainer(object):
|
|||||||
|
|
||||||
def GetCount(*args, **kwargs):
|
def GetCount(*args, **kwargs):
|
||||||
"""
|
"""
|
||||||
GetCount(self) -> int
|
GetCount(self) -> size_t
|
||||||
|
|
||||||
Returns the number of items in the control.
|
Returns the number of items in the control.
|
||||||
"""
|
"""
|
||||||
|
@@ -30517,12 +30517,12 @@ SWIGINTERN PyObject *_wrap_Window_GetPosition(PyObject *SWIGUNUSEDPARM(self), Py
|
|||||||
swig_obj[0] = args;
|
swig_obj[0] = args;
|
||||||
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
||||||
if (!SWIG_IsOK(res1)) {
|
if (!SWIG_IsOK(res1)) {
|
||||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetPosition" "', expected argument " "1"" of type '" "wxWindow *""'");
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetPosition" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
||||||
}
|
}
|
||||||
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
result = (arg1)->GetPosition();
|
result = ((wxWindow const *)arg1)->GetPosition();
|
||||||
wxPyEndAllowThreads(__tstate);
|
wxPyEndAllowThreads(__tstate);
|
||||||
if (PyErr_Occurred()) SWIG_fail;
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
}
|
}
|
||||||
@@ -30552,12 +30552,12 @@ SWIGINTERN PyObject *_wrap_Window_GetPositionTuple(PyObject *SWIGUNUSEDPARM(self
|
|||||||
swig_obj[0] = args;
|
swig_obj[0] = args;
|
||||||
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
||||||
if (!SWIG_IsOK(res1)) {
|
if (!SWIG_IsOK(res1)) {
|
||||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetPositionTuple" "', expected argument " "1"" of type '" "wxWindow *""'");
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetPositionTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
||||||
}
|
}
|
||||||
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
(arg1)->GetPosition(arg2,arg3);
|
((wxWindow const *)arg1)->GetPosition(arg2,arg3);
|
||||||
wxPyEndAllowThreads(__tstate);
|
wxPyEndAllowThreads(__tstate);
|
||||||
if (PyErr_Occurred()) SWIG_fail;
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
}
|
}
|
||||||
@@ -30580,6 +30580,109 @@ fail:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERN PyObject *_wrap_Window_GetScreenPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
|
PyObject *resultobj = 0;
|
||||||
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||||
|
wxPoint 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_wxWindow, 0 | 0 );
|
||||||
|
if (!SWIG_IsOK(res1)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScreenPosition" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
||||||
|
}
|
||||||
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
result = ((wxWindow const *)arg1)->GetScreenPosition();
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
|
}
|
||||||
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
||||||
|
return resultobj;
|
||||||
|
fail:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERN PyObject *_wrap_Window_GetScreenPositionTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
|
PyObject *resultobj = 0;
|
||||||
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||||
|
int *arg2 = (int *) 0 ;
|
||||||
|
int *arg3 = (int *) 0 ;
|
||||||
|
void *argp1 = 0 ;
|
||||||
|
int res1 = 0 ;
|
||||||
|
int temp2 ;
|
||||||
|
int res2 = SWIG_TMPOBJ ;
|
||||||
|
int temp3 ;
|
||||||
|
int res3 = SWIG_TMPOBJ ;
|
||||||
|
PyObject *swig_obj[1] ;
|
||||||
|
|
||||||
|
arg2 = &temp2;
|
||||||
|
arg3 = &temp3;
|
||||||
|
if (!args) SWIG_fail;
|
||||||
|
swig_obj[0] = args;
|
||||||
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
||||||
|
if (!SWIG_IsOK(res1)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScreenPositionTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
||||||
|
}
|
||||||
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
((wxWindow const *)arg1)->GetScreenPosition(arg2,arg3);
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
|
}
|
||||||
|
resultobj = SWIG_Py_Void();
|
||||||
|
if (SWIG_IsTmpObj(res2)) {
|
||||||
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
|
||||||
|
} else {
|
||||||
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
||||||
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
|
||||||
|
}
|
||||||
|
if (SWIG_IsTmpObj(res3)) {
|
||||||
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
|
||||||
|
} else {
|
||||||
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
||||||
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
|
||||||
|
}
|
||||||
|
return resultobj;
|
||||||
|
fail:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERN PyObject *_wrap_Window_GetScreenRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
|
PyObject *resultobj = 0;
|
||||||
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||||
|
wxRect 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_wxWindow, 0 | 0 );
|
||||||
|
if (!SWIG_IsOK(res1)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScreenRect" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
||||||
|
}
|
||||||
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
result = ((wxWindow const *)arg1)->GetScreenRect();
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
|
}
|
||||||
|
resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
|
||||||
|
return resultobj;
|
||||||
|
fail:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SWIGINTERN PyObject *_wrap_Window_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
SWIGINTERN PyObject *_wrap_Window_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
PyObject *resultobj = 0;
|
PyObject *resultobj = 0;
|
||||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||||
@@ -43963,7 +44066,7 @@ fail:
|
|||||||
SWIGINTERN PyObject *_wrap_ItemContainer_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
SWIGINTERN PyObject *_wrap_ItemContainer_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
PyObject *resultobj = 0;
|
PyObject *resultobj = 0;
|
||||||
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
||||||
int result;
|
size_t result;
|
||||||
void *argp1 = 0 ;
|
void *argp1 = 0 ;
|
||||||
int res1 = 0 ;
|
int res1 = 0 ;
|
||||||
PyObject *swig_obj[1] ;
|
PyObject *swig_obj[1] ;
|
||||||
@@ -43977,11 +44080,11 @@ SWIGINTERN PyObject *_wrap_ItemContainer_GetCount(PyObject *SWIGUNUSEDPARM(self)
|
|||||||
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
result = (int)((wxItemContainer const *)arg1)->GetCount();
|
result = (size_t)((wxItemContainer const *)arg1)->GetCount();
|
||||||
wxPyEndAllowThreads(__tstate);
|
wxPyEndAllowThreads(__tstate);
|
||||||
if (PyErr_Occurred()) SWIG_fail;
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
}
|
}
|
||||||
resultobj = SWIG_From_int(static_cast< int >(result));
|
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
|
||||||
return resultobj;
|
return resultobj;
|
||||||
fail:
|
fail:
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -53084,6 +53187,9 @@ static PyMethodDef SwigMethods[] = {
|
|||||||
{ (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL},
|
{ (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||||
{ (char *)"Window_GetPosition", (PyCFunction)_wrap_Window_GetPosition, METH_O, NULL},
|
{ (char *)"Window_GetPosition", (PyCFunction)_wrap_Window_GetPosition, METH_O, NULL},
|
||||||
{ (char *)"Window_GetPositionTuple", (PyCFunction)_wrap_Window_GetPositionTuple, METH_O, NULL},
|
{ (char *)"Window_GetPositionTuple", (PyCFunction)_wrap_Window_GetPositionTuple, METH_O, NULL},
|
||||||
|
{ (char *)"Window_GetScreenPosition", (PyCFunction)_wrap_Window_GetScreenPosition, METH_O, NULL},
|
||||||
|
{ (char *)"Window_GetScreenPositionTuple", (PyCFunction)_wrap_Window_GetScreenPositionTuple, METH_O, NULL},
|
||||||
|
{ (char *)"Window_GetScreenRect", (PyCFunction)_wrap_Window_GetScreenRect, METH_O, NULL},
|
||||||
{ (char *)"Window_GetSize", (PyCFunction)_wrap_Window_GetSize, METH_O, NULL},
|
{ (char *)"Window_GetSize", (PyCFunction)_wrap_Window_GetSize, METH_O, NULL},
|
||||||
{ (char *)"Window_GetSizeTuple", (PyCFunction)_wrap_Window_GetSizeTuple, METH_O, NULL},
|
{ (char *)"Window_GetSizeTuple", (PyCFunction)_wrap_Window_GetSizeTuple, METH_O, NULL},
|
||||||
{ (char *)"Window_GetRect", (PyCFunction)_wrap_Window_GetRect, METH_O, NULL},
|
{ (char *)"Window_GetRect", (PyCFunction)_wrap_Window_GetRect, METH_O, NULL},
|
||||||
|
@@ -4701,7 +4701,7 @@ class RendererNative(object):
|
|||||||
"""
|
"""
|
||||||
DrawHeaderButton(self, Window win, DC dc, Rect rect, int flags=0)
|
DrawHeaderButton(self, Window win, DC dc, Rect rect, int flags=0)
|
||||||
|
|
||||||
Draw the header control button (such as whar is used by `wx.ListCtrl`
|
Draw the header control button (such as what is used by `wx.ListCtrl`
|
||||||
in report mode.)
|
in report mode.)
|
||||||
"""
|
"""
|
||||||
return _gdi_.RendererNative_DrawHeaderButton(*args, **kwargs)
|
return _gdi_.RendererNative_DrawHeaderButton(*args, **kwargs)
|
||||||
|
@@ -1889,6 +1889,14 @@ class VListBox(VScrolledWindow):
|
|||||||
"""SetSelectionBackground(self, Colour col)"""
|
"""SetSelectionBackground(self, Colour col)"""
|
||||||
return _windows_.VListBox_SetSelectionBackground(*args, **kwargs)
|
return _windows_.VListBox_SetSelectionBackground(*args, **kwargs)
|
||||||
|
|
||||||
|
def OnDrawSeparator(*args, **kwargs):
|
||||||
|
"""OnDrawSeparator(self, DC dc, Rect rect, size_t n)"""
|
||||||
|
return _windows_.VListBox_OnDrawSeparator(*args, **kwargs)
|
||||||
|
|
||||||
|
def OnDrawBackground(*args, **kwargs):
|
||||||
|
"""OnDrawBackground(self, DC dc, Rect rect, size_t n)"""
|
||||||
|
return _windows_.VListBox_OnDrawBackground(*args, **kwargs)
|
||||||
|
|
||||||
VListBox_swigregister = _windows_.VListBox_swigregister
|
VListBox_swigregister = _windows_.VListBox_swigregister
|
||||||
VListBox_swigregister(VListBox)
|
VListBox_swigregister(VListBox)
|
||||||
VListBoxNameStr = cvar.VListBoxNameStr
|
VListBoxNameStr = cvar.VListBoxNameStr
|
||||||
|
@@ -3009,7 +3009,7 @@ public:
|
|||||||
//
|
//
|
||||||
// the base class version doesn't do anything
|
// the base class version doesn't do anything
|
||||||
// virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const;
|
// virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const;
|
||||||
DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawSeparator);
|
DEC_PYCALLBACK__DCRECTSIZET2_const(OnDrawSeparator);
|
||||||
|
|
||||||
|
|
||||||
// this method is used to draw the items background and, maybe, a border
|
// this method is used to draw the items background and, maybe, a border
|
||||||
@@ -3030,7 +3030,7 @@ IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox);
|
|||||||
|
|
||||||
IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem);
|
IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem);
|
||||||
IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem);
|
IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem);
|
||||||
IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawSeparator);
|
IMP_PYCALLBACK__DCRECTSIZET2_const (wxPyVListBox, wxVListBox, OnDrawSeparator);
|
||||||
IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground);
|
IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground);
|
||||||
|
|
||||||
|
|
||||||
@@ -3081,6 +3081,10 @@ public:
|
|||||||
// this function may be overridden to decorate HTML returned by OnGetItem()
|
// this function may be overridden to decorate HTML returned by OnGetItem()
|
||||||
DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup);
|
DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup);
|
||||||
|
|
||||||
|
// These are from wxVListBox
|
||||||
|
DEC_PYCALLBACK__DCRECTSIZET2_const(OnDrawSeparator);
|
||||||
|
DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground);
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
// // this method allows to customize the selection appearance: it may be used
|
// // this method allows to customize the selection appearance: it may be used
|
||||||
// // to specify the colour of the text which normally has the given colour
|
// // to specify the colour of the text which normally has the given colour
|
||||||
@@ -3104,6 +3108,8 @@ IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox)
|
|||||||
|
|
||||||
IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem);
|
IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem);
|
||||||
IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup);
|
IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup);
|
||||||
|
IMP_PYCALLBACK__DCRECTSIZET2_const (wxPyHtmlListBox, wxHtmlListBox, OnDrawSeparator);
|
||||||
|
IMP_PYCALLBACK__DCRECTSIZET_const (wxPyHtmlListBox, wxHtmlListBox, OnDrawBackground);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -15008,6 +15014,120 @@ fail:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERN PyObject *_wrap_VListBox_OnDrawSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject *resultobj = 0;
|
||||||
|
wxPyVListBox *arg1 = (wxPyVListBox *) 0 ;
|
||||||
|
wxDC *arg2 = 0 ;
|
||||||
|
wxRect *arg3 = 0 ;
|
||||||
|
size_t arg4 ;
|
||||||
|
void *argp1 = 0 ;
|
||||||
|
int res1 = 0 ;
|
||||||
|
void *argp2 = 0 ;
|
||||||
|
int res2 = 0 ;
|
||||||
|
wxRect temp3 ;
|
||||||
|
size_t val4 ;
|
||||||
|
int ecode4 = 0 ;
|
||||||
|
PyObject * obj0 = 0 ;
|
||||||
|
PyObject * obj1 = 0 ;
|
||||||
|
PyObject * obj2 = 0 ;
|
||||||
|
PyObject * obj3 = 0 ;
|
||||||
|
char * kwnames[] = {
|
||||||
|
(char *) "self",(char *) "dc",(char *) "rect",(char *) "n", NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:VListBox_OnDrawSeparator",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
||||||
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 );
|
||||||
|
if (!SWIG_IsOK(res1)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "1"" of type '" "wxPyVListBox const *""'");
|
||||||
|
}
|
||||||
|
arg1 = reinterpret_cast< wxPyVListBox * >(argp1);
|
||||||
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
|
||||||
|
if (!SWIG_IsOK(res2)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "2"" of type '" "wxDC &""'");
|
||||||
|
}
|
||||||
|
if (!argp2) {
|
||||||
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListBox_OnDrawSeparator" "', expected argument " "2"" of type '" "wxDC &""'");
|
||||||
|
}
|
||||||
|
arg2 = reinterpret_cast< wxDC * >(argp2);
|
||||||
|
{
|
||||||
|
arg3 = &temp3;
|
||||||
|
if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
|
||||||
|
}
|
||||||
|
ecode4 = SWIG_AsVal_size_t(obj3, &val4);
|
||||||
|
if (!SWIG_IsOK(ecode4)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "4"" of type '" "size_t""'");
|
||||||
|
}
|
||||||
|
arg4 = static_cast< size_t >(val4);
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
((wxPyVListBox const *)arg1)->OnDrawSeparator(*arg2,*arg3,arg4);
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
|
}
|
||||||
|
resultobj = SWIG_Py_Void();
|
||||||
|
return resultobj;
|
||||||
|
fail:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERN PyObject *_wrap_VListBox_OnDrawBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject *resultobj = 0;
|
||||||
|
wxPyVListBox *arg1 = (wxPyVListBox *) 0 ;
|
||||||
|
wxDC *arg2 = 0 ;
|
||||||
|
wxRect *arg3 = 0 ;
|
||||||
|
size_t arg4 ;
|
||||||
|
void *argp1 = 0 ;
|
||||||
|
int res1 = 0 ;
|
||||||
|
void *argp2 = 0 ;
|
||||||
|
int res2 = 0 ;
|
||||||
|
wxRect temp3 ;
|
||||||
|
size_t val4 ;
|
||||||
|
int ecode4 = 0 ;
|
||||||
|
PyObject * obj0 = 0 ;
|
||||||
|
PyObject * obj1 = 0 ;
|
||||||
|
PyObject * obj2 = 0 ;
|
||||||
|
PyObject * obj3 = 0 ;
|
||||||
|
char * kwnames[] = {
|
||||||
|
(char *) "self",(char *) "dc",(char *) "rect",(char *) "n", NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:VListBox_OnDrawBackground",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
||||||
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 );
|
||||||
|
if (!SWIG_IsOK(res1)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_OnDrawBackground" "', expected argument " "1"" of type '" "wxPyVListBox const *""'");
|
||||||
|
}
|
||||||
|
arg1 = reinterpret_cast< wxPyVListBox * >(argp1);
|
||||||
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
|
||||||
|
if (!SWIG_IsOK(res2)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_OnDrawBackground" "', expected argument " "2"" of type '" "wxDC &""'");
|
||||||
|
}
|
||||||
|
if (!argp2) {
|
||||||
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListBox_OnDrawBackground" "', expected argument " "2"" of type '" "wxDC &""'");
|
||||||
|
}
|
||||||
|
arg2 = reinterpret_cast< wxDC * >(argp2);
|
||||||
|
{
|
||||||
|
arg3 = &temp3;
|
||||||
|
if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
|
||||||
|
}
|
||||||
|
ecode4 = SWIG_AsVal_size_t(obj3, &val4);
|
||||||
|
if (!SWIG_IsOK(ecode4)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VListBox_OnDrawBackground" "', expected argument " "4"" of type '" "size_t""'");
|
||||||
|
}
|
||||||
|
arg4 = static_cast< size_t >(val4);
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
((wxPyVListBox const *)arg1)->OnDrawBackground(*arg2,(wxRect const &)*arg3,arg4);
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
|
}
|
||||||
|
resultobj = SWIG_Py_Void();
|
||||||
|
return resultobj;
|
||||||
|
fail:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SWIGINTERN PyObject *VListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
SWIGINTERN PyObject *VListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
PyObject *obj;
|
PyObject *obj;
|
||||||
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
||||||
@@ -30494,6 +30614,8 @@ static PyMethodDef SwigMethods[] = {
|
|||||||
{ (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
|
{ (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||||
{ (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
|
{ (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||||
{ (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS, NULL},
|
{ (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||||
|
{ (char *)"VListBox_OnDrawSeparator", (PyCFunction) _wrap_VListBox_OnDrawSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||||
|
{ (char *)"VListBox_OnDrawBackground", (PyCFunction) _wrap_VListBox_OnDrawBackground, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||||
{ (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS, NULL},
|
{ (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS, NULL},
|
||||||
{ (char *)"VListBox_swiginit", VListBox_swiginit, METH_VARARGS, NULL},
|
{ (char *)"VListBox_swiginit", VListBox_swiginit, METH_VARARGS, NULL},
|
||||||
{ (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS, NULL},
|
{ (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||||
|
@@ -2332,7 +2332,7 @@ class RadioBox(_core.Control):
|
|||||||
return _controls_.RadioBox_SetStringSelection(*args, **kwargs)
|
return _controls_.RadioBox_SetStringSelection(*args, **kwargs)
|
||||||
|
|
||||||
def GetCount(*args, **kwargs):
|
def GetCount(*args, **kwargs):
|
||||||
"""GetCount(self) -> int"""
|
"""GetCount(self) -> size_t"""
|
||||||
return _controls_.RadioBox_GetCount(*args, **kwargs)
|
return _controls_.RadioBox_GetCount(*args, **kwargs)
|
||||||
|
|
||||||
def FindString(*args, **kwargs):
|
def FindString(*args, **kwargs):
|
||||||
@@ -2804,11 +2804,11 @@ class BookCtrlBase(_core.Control):
|
|||||||
return _controls_.BookCtrlBase_CalcSizeFromPage(*args, **kwargs)
|
return _controls_.BookCtrlBase_CalcSizeFromPage(*args, **kwargs)
|
||||||
|
|
||||||
def GetInternalBorder(*args, **kwargs):
|
def GetInternalBorder(*args, **kwargs):
|
||||||
"""GetInternalBorder(self) -> unsigned int"""
|
"""GetInternalBorder(self) -> size_t"""
|
||||||
return _controls_.BookCtrlBase_GetInternalBorder(*args, **kwargs)
|
return _controls_.BookCtrlBase_GetInternalBorder(*args, **kwargs)
|
||||||
|
|
||||||
def SetInternalBorder(*args, **kwargs):
|
def SetInternalBorder(*args, **kwargs):
|
||||||
"""SetInternalBorder(self, unsigned int internalBorder)"""
|
"""SetInternalBorder(self, size_t internalBorder)"""
|
||||||
return _controls_.BookCtrlBase_SetInternalBorder(*args, **kwargs)
|
return _controls_.BookCtrlBase_SetInternalBorder(*args, **kwargs)
|
||||||
|
|
||||||
def IsVertical(*args, **kwargs):
|
def IsVertical(*args, **kwargs):
|
||||||
|
@@ -2870,6 +2870,21 @@ SWIGINTERN wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){
|
|||||||
static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
|
static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr);
|
||||||
static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
|
static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr);
|
||||||
|
|
||||||
|
SWIGINTERNINLINE PyObject*
|
||||||
|
SWIG_From_unsigned_SS_long (unsigned long value)
|
||||||
|
{
|
||||||
|
return (value > LONG_MAX) ?
|
||||||
|
PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERNINLINE PyObject *
|
||||||
|
SWIG_From_size_t (size_t value)
|
||||||
|
{
|
||||||
|
return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#include <wx/slider.h>
|
#include <wx/slider.h>
|
||||||
|
|
||||||
|
|
||||||
@@ -2896,21 +2911,6 @@ public:
|
|||||||
|
|
||||||
static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
|
static const wxString wxPyNotebookNameStr(wxNotebookNameStr);
|
||||||
|
|
||||||
SWIGINTERNINLINE PyObject*
|
|
||||||
SWIG_From_unsigned_SS_long (unsigned long value)
|
|
||||||
{
|
|
||||||
return (value > LONG_MAX) ?
|
|
||||||
PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
SWIGINTERNINLINE PyObject *
|
|
||||||
SWIG_From_size_t (size_t value)
|
|
||||||
{
|
|
||||||
return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
SWIGINTERNINLINE int
|
SWIGINTERNINLINE int
|
||||||
SWIG_AsVal_size_t (PyObject * obj, size_t *val)
|
SWIG_AsVal_size_t (PyObject * obj, size_t *val)
|
||||||
{
|
{
|
||||||
@@ -2920,29 +2920,6 @@ SWIG_AsVal_size_t (PyObject * obj, size_t *val)
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SWIGINTERNINLINE PyObject *
|
|
||||||
SWIG_From_unsigned_SS_int (unsigned int value)
|
|
||||||
{
|
|
||||||
return SWIG_From_unsigned_SS_long (value);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
SWIGINTERN int
|
|
||||||
SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
|
|
||||||
{
|
|
||||||
unsigned long v;
|
|
||||||
int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
|
|
||||||
if (SWIG_IsOK(res)) {
|
|
||||||
if ((v > UINT_MAX)) {
|
|
||||||
return SWIG_OverflowError;
|
|
||||||
} else {
|
|
||||||
if (val) *val = static_cast< unsigned int >(v);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return res;
|
|
||||||
}
|
|
||||||
|
|
||||||
static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
|
static const wxString wxPyToolBarNameStr(wxToolBarNameStr);
|
||||||
SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
|
SWIGINTERN PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){
|
||||||
wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
|
wxPyUserData* udata = (wxPyUserData*)self->GetClientData();
|
||||||
@@ -3146,6 +3123,29 @@ public:
|
|||||||
IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
|
IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERNINLINE PyObject *
|
||||||
|
SWIG_From_unsigned_SS_int (unsigned int value)
|
||||||
|
{
|
||||||
|
return SWIG_From_unsigned_SS_long (value);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERN int
|
||||||
|
SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
|
||||||
|
{
|
||||||
|
unsigned long v;
|
||||||
|
int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
|
||||||
|
if (SWIG_IsOK(res)) {
|
||||||
|
if ((v > UINT_MAX)) {
|
||||||
|
return SWIG_OverflowError;
|
||||||
|
} else {
|
||||||
|
if (val) *val = static_cast< unsigned int >(v);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
|
SWIGINTERN wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){
|
||||||
wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
|
wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item);
|
||||||
if (data == NULL) {
|
if (data == NULL) {
|
||||||
@@ -16319,7 +16319,7 @@ fail:
|
|||||||
SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
PyObject *resultobj = 0;
|
PyObject *resultobj = 0;
|
||||||
wxRadioBox *arg1 = (wxRadioBox *) 0 ;
|
wxRadioBox *arg1 = (wxRadioBox *) 0 ;
|
||||||
int result;
|
size_t result;
|
||||||
void *argp1 = 0 ;
|
void *argp1 = 0 ;
|
||||||
int res1 = 0 ;
|
int res1 = 0 ;
|
||||||
PyObject *swig_obj[1] ;
|
PyObject *swig_obj[1] ;
|
||||||
@@ -16333,11 +16333,11 @@ SWIGINTERN PyObject *_wrap_RadioBox_GetCount(PyObject *SWIGUNUSEDPARM(self), PyO
|
|||||||
arg1 = reinterpret_cast< wxRadioBox * >(argp1);
|
arg1 = reinterpret_cast< wxRadioBox * >(argp1);
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
result = (int)((wxRadioBox const *)arg1)->GetCount();
|
result = (size_t)((wxRadioBox const *)arg1)->GetCount();
|
||||||
wxPyEndAllowThreads(__tstate);
|
wxPyEndAllowThreads(__tstate);
|
||||||
if (PyErr_Occurred()) SWIG_fail;
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
}
|
}
|
||||||
resultobj = SWIG_From_int(static_cast< int >(result));
|
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
|
||||||
return resultobj;
|
return resultobj;
|
||||||
fail:
|
fail:
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -19156,7 +19156,7 @@ fail:
|
|||||||
SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
PyObject *resultobj = 0;
|
PyObject *resultobj = 0;
|
||||||
wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
|
wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
|
||||||
unsigned int result;
|
size_t result;
|
||||||
void *argp1 = 0 ;
|
void *argp1 = 0 ;
|
||||||
int res1 = 0 ;
|
int res1 = 0 ;
|
||||||
PyObject *swig_obj[1] ;
|
PyObject *swig_obj[1] ;
|
||||||
@@ -19170,11 +19170,11 @@ SWIGINTERN PyObject *_wrap_BookCtrlBase_GetInternalBorder(PyObject *SWIGUNUSEDPA
|
|||||||
arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
|
arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
result = (unsigned int)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
|
result = (size_t)((wxBookCtrlBase const *)arg1)->GetInternalBorder();
|
||||||
wxPyEndAllowThreads(__tstate);
|
wxPyEndAllowThreads(__tstate);
|
||||||
if (PyErr_Occurred()) SWIG_fail;
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
}
|
}
|
||||||
resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
|
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
|
||||||
return resultobj;
|
return resultobj;
|
||||||
fail:
|
fail:
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -19184,10 +19184,10 @@ fail:
|
|||||||
SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||||
PyObject *resultobj = 0;
|
PyObject *resultobj = 0;
|
||||||
wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
|
wxBookCtrlBase *arg1 = (wxBookCtrlBase *) 0 ;
|
||||||
unsigned int arg2 ;
|
size_t arg2 ;
|
||||||
void *argp1 = 0 ;
|
void *argp1 = 0 ;
|
||||||
int res1 = 0 ;
|
int res1 = 0 ;
|
||||||
unsigned int val2 ;
|
size_t val2 ;
|
||||||
int ecode2 = 0 ;
|
int ecode2 = 0 ;
|
||||||
PyObject * obj0 = 0 ;
|
PyObject * obj0 = 0 ;
|
||||||
PyObject * obj1 = 0 ;
|
PyObject * obj1 = 0 ;
|
||||||
@@ -19201,11 +19201,11 @@ SWIGINTERN PyObject *_wrap_BookCtrlBase_SetInternalBorder(PyObject *SWIGUNUSEDPA
|
|||||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "1"" of type '" "wxBookCtrlBase *""'");
|
||||||
}
|
}
|
||||||
arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
|
arg1 = reinterpret_cast< wxBookCtrlBase * >(argp1);
|
||||||
ecode2 = SWIG_AsVal_unsigned_SS_int(obj1, &val2);
|
ecode2 = SWIG_AsVal_size_t(obj1, &val2);
|
||||||
if (!SWIG_IsOK(ecode2)) {
|
if (!SWIG_IsOK(ecode2)) {
|
||||||
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "unsigned int""'");
|
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BookCtrlBase_SetInternalBorder" "', expected argument " "2"" of type '" "size_t""'");
|
||||||
}
|
}
|
||||||
arg2 = static_cast< unsigned int >(val2);
|
arg2 = static_cast< size_t >(val2);
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
(arg1)->SetInternalBorder(arg2);
|
(arg1)->SetInternalBorder(arg2);
|
||||||
|
@@ -7754,7 +7754,10 @@ class Window(EvtHandler):
|
|||||||
"""
|
"""
|
||||||
GetPosition(self) -> Point
|
GetPosition(self) -> Point
|
||||||
|
|
||||||
Get the window's position.
|
Get the window's position. Notice that the position is in client
|
||||||
|
coordinates for child windows and screen coordinates for the top level
|
||||||
|
ones, use `GetScreenPosition` if you need screen coordinates for all
|
||||||
|
kinds of windows.
|
||||||
"""
|
"""
|
||||||
return _core_.Window_GetPosition(*args, **kwargs)
|
return _core_.Window_GetPosition(*args, **kwargs)
|
||||||
|
|
||||||
@@ -7762,10 +7765,38 @@ class Window(EvtHandler):
|
|||||||
"""
|
"""
|
||||||
GetPositionTuple() -> (x,y)
|
GetPositionTuple() -> (x,y)
|
||||||
|
|
||||||
Get the window's position.
|
Get the window's position. Notice that the position is in client
|
||||||
|
coordinates for child windows and screen coordinates for the top level
|
||||||
|
ones, use `GetScreenPosition` if you need screen coordinates for all
|
||||||
|
kinds of windows.
|
||||||
"""
|
"""
|
||||||
return _core_.Window_GetPositionTuple(*args, **kwargs)
|
return _core_.Window_GetPositionTuple(*args, **kwargs)
|
||||||
|
|
||||||
|
def GetScreenPosition(*args, **kwargs):
|
||||||
|
"""
|
||||||
|
GetScreenPosition(self) -> Point
|
||||||
|
|
||||||
|
Get the position of the window in screen coordinantes.
|
||||||
|
"""
|
||||||
|
return _core_.Window_GetScreenPosition(*args, **kwargs)
|
||||||
|
|
||||||
|
def GetScreenPositionTuple(*args, **kwargs):
|
||||||
|
"""
|
||||||
|
GetScreenPositionTuple() -> (x,y)
|
||||||
|
|
||||||
|
Get the position of the window in screen coordinantes.
|
||||||
|
"""
|
||||||
|
return _core_.Window_GetScreenPositionTuple(*args, **kwargs)
|
||||||
|
|
||||||
|
def GetScreenRect(*args, **kwargs):
|
||||||
|
"""
|
||||||
|
GetScreenRect(self) -> Rect
|
||||||
|
|
||||||
|
Returns the size and position of the window in screen coordinantes as
|
||||||
|
a `wx.Rect` object.
|
||||||
|
"""
|
||||||
|
return _core_.Window_GetScreenRect(*args, **kwargs)
|
||||||
|
|
||||||
def GetSize(*args, **kwargs):
|
def GetSize(*args, **kwargs):
|
||||||
"""
|
"""
|
||||||
GetSize(self) -> Size
|
GetSize(self) -> Size
|
||||||
@@ -7786,7 +7817,7 @@ class Window(EvtHandler):
|
|||||||
"""
|
"""
|
||||||
GetRect(self) -> Rect
|
GetRect(self) -> Rect
|
||||||
|
|
||||||
Returns the size and position of the window as a wx.Rect object.
|
Returns the size and position of the window as a `wx.Rect` object.
|
||||||
"""
|
"""
|
||||||
return _core_.Window_GetRect(*args, **kwargs)
|
return _core_.Window_GetRect(*args, **kwargs)
|
||||||
|
|
||||||
@@ -10535,7 +10566,7 @@ class ItemContainer(object):
|
|||||||
|
|
||||||
def GetCount(*args, **kwargs):
|
def GetCount(*args, **kwargs):
|
||||||
"""
|
"""
|
||||||
GetCount(self) -> int
|
GetCount(self) -> size_t
|
||||||
|
|
||||||
Returns the number of items in the control.
|
Returns the number of items in the control.
|
||||||
"""
|
"""
|
||||||
|
@@ -30502,12 +30502,12 @@ SWIGINTERN PyObject *_wrap_Window_GetPosition(PyObject *SWIGUNUSEDPARM(self), Py
|
|||||||
swig_obj[0] = args;
|
swig_obj[0] = args;
|
||||||
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
||||||
if (!SWIG_IsOK(res1)) {
|
if (!SWIG_IsOK(res1)) {
|
||||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetPosition" "', expected argument " "1"" of type '" "wxWindow *""'");
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetPosition" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
||||||
}
|
}
|
||||||
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
result = (arg1)->GetPosition();
|
result = ((wxWindow const *)arg1)->GetPosition();
|
||||||
wxPyEndAllowThreads(__tstate);
|
wxPyEndAllowThreads(__tstate);
|
||||||
if (PyErr_Occurred()) SWIG_fail;
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
}
|
}
|
||||||
@@ -30537,12 +30537,12 @@ SWIGINTERN PyObject *_wrap_Window_GetPositionTuple(PyObject *SWIGUNUSEDPARM(self
|
|||||||
swig_obj[0] = args;
|
swig_obj[0] = args;
|
||||||
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
||||||
if (!SWIG_IsOK(res1)) {
|
if (!SWIG_IsOK(res1)) {
|
||||||
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetPositionTuple" "', expected argument " "1"" of type '" "wxWindow *""'");
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetPositionTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
||||||
}
|
}
|
||||||
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
(arg1)->GetPosition(arg2,arg3);
|
((wxWindow const *)arg1)->GetPosition(arg2,arg3);
|
||||||
wxPyEndAllowThreads(__tstate);
|
wxPyEndAllowThreads(__tstate);
|
||||||
if (PyErr_Occurred()) SWIG_fail;
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
}
|
}
|
||||||
@@ -30565,6 +30565,109 @@ fail:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERN PyObject *_wrap_Window_GetScreenPosition(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
|
PyObject *resultobj = 0;
|
||||||
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||||
|
wxPoint 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_wxWindow, 0 | 0 );
|
||||||
|
if (!SWIG_IsOK(res1)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScreenPosition" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
||||||
|
}
|
||||||
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
result = ((wxWindow const *)arg1)->GetScreenPosition();
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
|
}
|
||||||
|
resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
|
||||||
|
return resultobj;
|
||||||
|
fail:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERN PyObject *_wrap_Window_GetScreenPositionTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
|
PyObject *resultobj = 0;
|
||||||
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||||
|
int *arg2 = (int *) 0 ;
|
||||||
|
int *arg3 = (int *) 0 ;
|
||||||
|
void *argp1 = 0 ;
|
||||||
|
int res1 = 0 ;
|
||||||
|
int temp2 ;
|
||||||
|
int res2 = SWIG_TMPOBJ ;
|
||||||
|
int temp3 ;
|
||||||
|
int res3 = SWIG_TMPOBJ ;
|
||||||
|
PyObject *swig_obj[1] ;
|
||||||
|
|
||||||
|
arg2 = &temp2;
|
||||||
|
arg3 = &temp3;
|
||||||
|
if (!args) SWIG_fail;
|
||||||
|
swig_obj[0] = args;
|
||||||
|
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
|
||||||
|
if (!SWIG_IsOK(res1)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScreenPositionTuple" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
||||||
|
}
|
||||||
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
((wxWindow const *)arg1)->GetScreenPosition(arg2,arg3);
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
|
}
|
||||||
|
resultobj = SWIG_Py_Void();
|
||||||
|
if (SWIG_IsTmpObj(res2)) {
|
||||||
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
|
||||||
|
} else {
|
||||||
|
int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
||||||
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
|
||||||
|
}
|
||||||
|
if (SWIG_IsTmpObj(res3)) {
|
||||||
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
|
||||||
|
} else {
|
||||||
|
int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
|
||||||
|
resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
|
||||||
|
}
|
||||||
|
return resultobj;
|
||||||
|
fail:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERN PyObject *_wrap_Window_GetScreenRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
|
PyObject *resultobj = 0;
|
||||||
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||||
|
wxRect 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_wxWindow, 0 | 0 );
|
||||||
|
if (!SWIG_IsOK(res1)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Window_GetScreenRect" "', expected argument " "1"" of type '" "wxWindow const *""'");
|
||||||
|
}
|
||||||
|
arg1 = reinterpret_cast< wxWindow * >(argp1);
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
result = ((wxWindow const *)arg1)->GetScreenRect();
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
|
}
|
||||||
|
resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
|
||||||
|
return resultobj;
|
||||||
|
fail:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SWIGINTERN PyObject *_wrap_Window_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
SWIGINTERN PyObject *_wrap_Window_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
PyObject *resultobj = 0;
|
PyObject *resultobj = 0;
|
||||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||||
@@ -43989,7 +44092,7 @@ fail:
|
|||||||
SWIGINTERN PyObject *_wrap_ItemContainer_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
SWIGINTERN PyObject *_wrap_ItemContainer_GetCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
PyObject *resultobj = 0;
|
PyObject *resultobj = 0;
|
||||||
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
wxItemContainer *arg1 = (wxItemContainer *) 0 ;
|
||||||
int result;
|
size_t result;
|
||||||
void *argp1 = 0 ;
|
void *argp1 = 0 ;
|
||||||
int res1 = 0 ;
|
int res1 = 0 ;
|
||||||
PyObject *swig_obj[1] ;
|
PyObject *swig_obj[1] ;
|
||||||
@@ -44003,11 +44106,11 @@ SWIGINTERN PyObject *_wrap_ItemContainer_GetCount(PyObject *SWIGUNUSEDPARM(self)
|
|||||||
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
arg1 = reinterpret_cast< wxItemContainer * >(argp1);
|
||||||
{
|
{
|
||||||
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
result = (int)((wxItemContainer const *)arg1)->GetCount();
|
result = (size_t)((wxItemContainer const *)arg1)->GetCount();
|
||||||
wxPyEndAllowThreads(__tstate);
|
wxPyEndAllowThreads(__tstate);
|
||||||
if (PyErr_Occurred()) SWIG_fail;
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
}
|
}
|
||||||
resultobj = SWIG_From_int(static_cast< int >(result));
|
resultobj = SWIG_From_size_t(static_cast< size_t >(result));
|
||||||
return resultobj;
|
return resultobj;
|
||||||
fail:
|
fail:
|
||||||
return NULL;
|
return NULL;
|
||||||
@@ -53110,6 +53213,9 @@ static PyMethodDef SwigMethods[] = {
|
|||||||
{ (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL},
|
{ (char *)"Window_SetClientRect", (PyCFunction) _wrap_Window_SetClientRect, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||||
{ (char *)"Window_GetPosition", (PyCFunction)_wrap_Window_GetPosition, METH_O, NULL},
|
{ (char *)"Window_GetPosition", (PyCFunction)_wrap_Window_GetPosition, METH_O, NULL},
|
||||||
{ (char *)"Window_GetPositionTuple", (PyCFunction)_wrap_Window_GetPositionTuple, METH_O, NULL},
|
{ (char *)"Window_GetPositionTuple", (PyCFunction)_wrap_Window_GetPositionTuple, METH_O, NULL},
|
||||||
|
{ (char *)"Window_GetScreenPosition", (PyCFunction)_wrap_Window_GetScreenPosition, METH_O, NULL},
|
||||||
|
{ (char *)"Window_GetScreenPositionTuple", (PyCFunction)_wrap_Window_GetScreenPositionTuple, METH_O, NULL},
|
||||||
|
{ (char *)"Window_GetScreenRect", (PyCFunction)_wrap_Window_GetScreenRect, METH_O, NULL},
|
||||||
{ (char *)"Window_GetSize", (PyCFunction)_wrap_Window_GetSize, METH_O, NULL},
|
{ (char *)"Window_GetSize", (PyCFunction)_wrap_Window_GetSize, METH_O, NULL},
|
||||||
{ (char *)"Window_GetSizeTuple", (PyCFunction)_wrap_Window_GetSizeTuple, METH_O, NULL},
|
{ (char *)"Window_GetSizeTuple", (PyCFunction)_wrap_Window_GetSizeTuple, METH_O, NULL},
|
||||||
{ (char *)"Window_GetRect", (PyCFunction)_wrap_Window_GetRect, METH_O, NULL},
|
{ (char *)"Window_GetRect", (PyCFunction)_wrap_Window_GetRect, METH_O, NULL},
|
||||||
|
@@ -4797,7 +4797,7 @@ class RendererNative(object):
|
|||||||
"""
|
"""
|
||||||
DrawHeaderButton(self, Window win, DC dc, Rect rect, int flags=0)
|
DrawHeaderButton(self, Window win, DC dc, Rect rect, int flags=0)
|
||||||
|
|
||||||
Draw the header control button (such as whar is used by `wx.ListCtrl`
|
Draw the header control button (such as what is used by `wx.ListCtrl`
|
||||||
in report mode.)
|
in report mode.)
|
||||||
"""
|
"""
|
||||||
return _gdi_.RendererNative_DrawHeaderButton(*args, **kwargs)
|
return _gdi_.RendererNative_DrawHeaderButton(*args, **kwargs)
|
||||||
|
@@ -1917,6 +1917,14 @@ class VListBox(VScrolledWindow):
|
|||||||
"""SetSelectionBackground(self, Colour col)"""
|
"""SetSelectionBackground(self, Colour col)"""
|
||||||
return _windows_.VListBox_SetSelectionBackground(*args, **kwargs)
|
return _windows_.VListBox_SetSelectionBackground(*args, **kwargs)
|
||||||
|
|
||||||
|
def OnDrawSeparator(*args, **kwargs):
|
||||||
|
"""OnDrawSeparator(self, DC dc, Rect rect, size_t n)"""
|
||||||
|
return _windows_.VListBox_OnDrawSeparator(*args, **kwargs)
|
||||||
|
|
||||||
|
def OnDrawBackground(*args, **kwargs):
|
||||||
|
"""OnDrawBackground(self, DC dc, Rect rect, size_t n)"""
|
||||||
|
return _windows_.VListBox_OnDrawBackground(*args, **kwargs)
|
||||||
|
|
||||||
VListBox_swigregister = _windows_.VListBox_swigregister
|
VListBox_swigregister = _windows_.VListBox_swigregister
|
||||||
VListBox_swigregister(VListBox)
|
VListBox_swigregister(VListBox)
|
||||||
VListBoxNameStr = cvar.VListBoxNameStr
|
VListBoxNameStr = cvar.VListBoxNameStr
|
||||||
|
@@ -3008,7 +3008,7 @@ public:
|
|||||||
//
|
//
|
||||||
// the base class version doesn't do anything
|
// the base class version doesn't do anything
|
||||||
// virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const;
|
// virtual void OnDrawSeparator(wxDC& dc, wxRect& rect, size_t n) const;
|
||||||
DEC_PYCALLBACK__DCRECTSIZET_constpure(OnDrawSeparator);
|
DEC_PYCALLBACK__DCRECTSIZET2_const(OnDrawSeparator);
|
||||||
|
|
||||||
|
|
||||||
// this method is used to draw the items background and, maybe, a border
|
// this method is used to draw the items background and, maybe, a border
|
||||||
@@ -3029,7 +3029,7 @@ IMPLEMENT_ABSTRACT_CLASS(wxPyVListBox, wxVListBox);
|
|||||||
|
|
||||||
IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem);
|
IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawItem);
|
||||||
IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem);
|
IMP_PYCALLBACK_COORD_SIZET_constpure (wxPyVListBox, wxVListBox, OnMeasureItem);
|
||||||
IMP_PYCALLBACK__DCRECTSIZET_constpure(wxPyVListBox, wxVListBox, OnDrawSeparator);
|
IMP_PYCALLBACK__DCRECTSIZET2_const (wxPyVListBox, wxVListBox, OnDrawSeparator);
|
||||||
IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground);
|
IMP_PYCALLBACK__DCRECTSIZET_const (wxPyVListBox, wxVListBox, OnDrawBackground);
|
||||||
|
|
||||||
|
|
||||||
@@ -3080,6 +3080,10 @@ public:
|
|||||||
// this function may be overridden to decorate HTML returned by OnGetItem()
|
// this function may be overridden to decorate HTML returned by OnGetItem()
|
||||||
DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup);
|
DEC_PYCALLBACK_STRING_SIZET(OnGetItemMarkup);
|
||||||
|
|
||||||
|
// These are from wxVListBox
|
||||||
|
DEC_PYCALLBACK__DCRECTSIZET2_const(OnDrawSeparator);
|
||||||
|
DEC_PYCALLBACK__DCRECTSIZET_const(OnDrawBackground);
|
||||||
|
|
||||||
// TODO:
|
// TODO:
|
||||||
// // this method allows to customize the selection appearance: it may be used
|
// // this method allows to customize the selection appearance: it may be used
|
||||||
// // to specify the colour of the text which normally has the given colour
|
// // to specify the colour of the text which normally has the given colour
|
||||||
@@ -3103,6 +3107,8 @@ IMPLEMENT_ABSTRACT_CLASS(wxPyHtmlListBox, wxHtmlListBox)
|
|||||||
|
|
||||||
IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem);
|
IMP_PYCALLBACK_STRING_SIZET_pure(wxPyHtmlListBox, wxHtmlListBox, OnGetItem);
|
||||||
IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup);
|
IMP_PYCALLBACK_STRING_SIZET (wxPyHtmlListBox, wxHtmlListBox, OnGetItemMarkup);
|
||||||
|
IMP_PYCALLBACK__DCRECTSIZET2_const (wxPyHtmlListBox, wxHtmlListBox, OnDrawSeparator);
|
||||||
|
IMP_PYCALLBACK__DCRECTSIZET_const (wxPyHtmlListBox, wxHtmlListBox, OnDrawBackground);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -15208,6 +15214,120 @@ fail:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERN PyObject *_wrap_VListBox_OnDrawSeparator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject *resultobj = 0;
|
||||||
|
wxPyVListBox *arg1 = (wxPyVListBox *) 0 ;
|
||||||
|
wxDC *arg2 = 0 ;
|
||||||
|
wxRect *arg3 = 0 ;
|
||||||
|
size_t arg4 ;
|
||||||
|
void *argp1 = 0 ;
|
||||||
|
int res1 = 0 ;
|
||||||
|
void *argp2 = 0 ;
|
||||||
|
int res2 = 0 ;
|
||||||
|
wxRect temp3 ;
|
||||||
|
size_t val4 ;
|
||||||
|
int ecode4 = 0 ;
|
||||||
|
PyObject * obj0 = 0 ;
|
||||||
|
PyObject * obj1 = 0 ;
|
||||||
|
PyObject * obj2 = 0 ;
|
||||||
|
PyObject * obj3 = 0 ;
|
||||||
|
char * kwnames[] = {
|
||||||
|
(char *) "self",(char *) "dc",(char *) "rect",(char *) "n", NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:VListBox_OnDrawSeparator",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
||||||
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 );
|
||||||
|
if (!SWIG_IsOK(res1)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "1"" of type '" "wxPyVListBox const *""'");
|
||||||
|
}
|
||||||
|
arg1 = reinterpret_cast< wxPyVListBox * >(argp1);
|
||||||
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
|
||||||
|
if (!SWIG_IsOK(res2)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "2"" of type '" "wxDC &""'");
|
||||||
|
}
|
||||||
|
if (!argp2) {
|
||||||
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListBox_OnDrawSeparator" "', expected argument " "2"" of type '" "wxDC &""'");
|
||||||
|
}
|
||||||
|
arg2 = reinterpret_cast< wxDC * >(argp2);
|
||||||
|
{
|
||||||
|
arg3 = &temp3;
|
||||||
|
if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
|
||||||
|
}
|
||||||
|
ecode4 = SWIG_AsVal_size_t(obj3, &val4);
|
||||||
|
if (!SWIG_IsOK(ecode4)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VListBox_OnDrawSeparator" "', expected argument " "4"" of type '" "size_t""'");
|
||||||
|
}
|
||||||
|
arg4 = static_cast< size_t >(val4);
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
((wxPyVListBox const *)arg1)->OnDrawSeparator(*arg2,*arg3,arg4);
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
|
}
|
||||||
|
resultobj = SWIG_Py_Void();
|
||||||
|
return resultobj;
|
||||||
|
fail:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SWIGINTERN PyObject *_wrap_VListBox_OnDrawBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
|
||||||
|
PyObject *resultobj = 0;
|
||||||
|
wxPyVListBox *arg1 = (wxPyVListBox *) 0 ;
|
||||||
|
wxDC *arg2 = 0 ;
|
||||||
|
wxRect *arg3 = 0 ;
|
||||||
|
size_t arg4 ;
|
||||||
|
void *argp1 = 0 ;
|
||||||
|
int res1 = 0 ;
|
||||||
|
void *argp2 = 0 ;
|
||||||
|
int res2 = 0 ;
|
||||||
|
wxRect temp3 ;
|
||||||
|
size_t val4 ;
|
||||||
|
int ecode4 = 0 ;
|
||||||
|
PyObject * obj0 = 0 ;
|
||||||
|
PyObject * obj1 = 0 ;
|
||||||
|
PyObject * obj2 = 0 ;
|
||||||
|
PyObject * obj3 = 0 ;
|
||||||
|
char * kwnames[] = {
|
||||||
|
(char *) "self",(char *) "dc",(char *) "rect",(char *) "n", NULL
|
||||||
|
};
|
||||||
|
|
||||||
|
if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:VListBox_OnDrawBackground",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
|
||||||
|
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyVListBox, 0 | 0 );
|
||||||
|
if (!SWIG_IsOK(res1)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VListBox_OnDrawBackground" "', expected argument " "1"" of type '" "wxPyVListBox const *""'");
|
||||||
|
}
|
||||||
|
arg1 = reinterpret_cast< wxPyVListBox * >(argp1);
|
||||||
|
res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
|
||||||
|
if (!SWIG_IsOK(res2)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VListBox_OnDrawBackground" "', expected argument " "2"" of type '" "wxDC &""'");
|
||||||
|
}
|
||||||
|
if (!argp2) {
|
||||||
|
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "VListBox_OnDrawBackground" "', expected argument " "2"" of type '" "wxDC &""'");
|
||||||
|
}
|
||||||
|
arg2 = reinterpret_cast< wxDC * >(argp2);
|
||||||
|
{
|
||||||
|
arg3 = &temp3;
|
||||||
|
if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
|
||||||
|
}
|
||||||
|
ecode4 = SWIG_AsVal_size_t(obj3, &val4);
|
||||||
|
if (!SWIG_IsOK(ecode4)) {
|
||||||
|
SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "VListBox_OnDrawBackground" "', expected argument " "4"" of type '" "size_t""'");
|
||||||
|
}
|
||||||
|
arg4 = static_cast< size_t >(val4);
|
||||||
|
{
|
||||||
|
PyThreadState* __tstate = wxPyBeginAllowThreads();
|
||||||
|
((wxPyVListBox const *)arg1)->OnDrawBackground(*arg2,(wxRect const &)*arg3,arg4);
|
||||||
|
wxPyEndAllowThreads(__tstate);
|
||||||
|
if (PyErr_Occurred()) SWIG_fail;
|
||||||
|
}
|
||||||
|
resultobj = SWIG_Py_Void();
|
||||||
|
return resultobj;
|
||||||
|
fail:
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SWIGINTERN PyObject *VListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
SWIGINTERN PyObject *VListBox_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
|
||||||
PyObject *obj;
|
PyObject *obj;
|
||||||
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
|
||||||
@@ -30767,6 +30887,8 @@ static PyMethodDef SwigMethods[] = {
|
|||||||
{ (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
|
{ (char *)"VListBox_SetMargins", (PyCFunction) _wrap_VListBox_SetMargins, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||||
{ (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
|
{ (char *)"VListBox_SetMarginsXY", (PyCFunction) _wrap_VListBox_SetMarginsXY, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||||
{ (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS, NULL},
|
{ (char *)"VListBox_SetSelectionBackground", (PyCFunction) _wrap_VListBox_SetSelectionBackground, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||||
|
{ (char *)"VListBox_OnDrawSeparator", (PyCFunction) _wrap_VListBox_OnDrawSeparator, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||||
|
{ (char *)"VListBox_OnDrawBackground", (PyCFunction) _wrap_VListBox_OnDrawBackground, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||||
{ (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS, NULL},
|
{ (char *)"VListBox_swigregister", VListBox_swigregister, METH_VARARGS, NULL},
|
||||||
{ (char *)"VListBox_swiginit", VListBox_swiginit, METH_VARARGS, NULL},
|
{ (char *)"VListBox_swiginit", VListBox_swiginit, METH_VARARGS, NULL},
|
||||||
{ (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS, NULL},
|
{ (char *)"new_HtmlListBox", (PyCFunction) _wrap_new_HtmlListBox, METH_VARARGS | METH_KEYWORDS, NULL},
|
||||||
|
Reference in New Issue
Block a user