reSWIGged

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2004-03-28 17:42:37 +00:00
parent c1d1a9cb39
commit e35a624d40
8 changed files with 2696 additions and 76 deletions

View File

@@ -4674,6 +4674,14 @@ class PyControl(core.Control):
"""base_RemoveChild(Window child)"""
return _controls.PyControl_base_RemoveChild(*args, **kwargs)
def base_ShouldInheritColours(*args, **kwargs):
"""base_ShouldInheritColours() -> bool"""
return _controls.PyControl_base_ShouldInheritColours(*args, **kwargs)
def base_ApplyParentThemeBackground(*args, **kwargs):
"""base_ApplyParentThemeBackground(Colour c)"""
return _controls.PyControl_base_ApplyParentThemeBackground(*args, **kwargs)
class PyControlPtr(PyControl):
def __init__(self, this):
@@ -4682,6 +4690,12 @@ class PyControlPtr(PyControl):
self.__class__ = PyControl
_controls.PyControl_swigregister(PyControlPtr)
def PrePyControl(*args, **kwargs):
"""PrePyControl() -> PyControl"""
val = _controls.new_PrePyControl(*args, **kwargs)
val.thisown = 1
return val
#---------------------------------------------------------------------------
FRAME_EX_CONTEXTHELP = _controls.FRAME_EX_CONTEXTHELP

View File

@@ -962,6 +962,7 @@ public:
DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild);
DEC_PYCALLBACK_BOOL_(ShouldInheritColours);
DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground);
PYPRIVATE;
};
@@ -993,6 +994,7 @@ IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild);
IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild);
IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, ShouldInheritColours);
IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground);
@@ -27725,6 +27727,28 @@ static PyObject *_wrap_new_PyControl(PyObject *, PyObject *args, PyObject *kwarg
}
static PyObject *_wrap_new_PrePyControl(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxPyControl *result;
char *kwnames[] = {
NULL
};
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (wxPyControl *)new wxPyControl();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1);
return resultobj;
fail:
return NULL;
}
static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxPyControl *arg1 = (wxPyControl *) 0 ;
@@ -28340,6 +28364,66 @@ static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *, PyObject *args, Py
}
static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxPyControl *arg1 = (wxPyControl *) 0 ;
bool result;
PyObject * obj0 = 0 ;
char *kwnames[] = {
(char *) "self", NULL
};
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
result = (bool)(arg1)->base_ShouldInheritColours();
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
{
resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
}
return resultobj;
fail:
return NULL;
}
static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *, PyObject *args, PyObject *kwargs) {
PyObject *resultobj;
wxPyControl *arg1 = (wxPyControl *) 0 ;
wxColour *arg2 = 0 ;
wxColour temp2 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
char *kwnames[] = {
(char *) "self",(char *) "c", NULL
};
if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail;
if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl,
SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail;
{
arg2 = &temp2;
if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
}
{
PyThreadState* __tstate = wxPyBeginAllowThreads();
(arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2);
wxPyEndAllowThreads(__tstate);
if (PyErr_Occurred()) SWIG_fail;
}
Py_INCREF(Py_None); resultobj = Py_None;
return resultobj;
fail:
return NULL;
}
static PyObject * PyControl_swigregister(PyObject *, PyObject *args) {
PyObject *obj;
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
@@ -30517,6 +30601,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS, NULL },
{ (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS, NULL },
@@ -30536,6 +30621,8 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS, NULL },
{ (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS, NULL },
{ (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS, NULL },

View File

@@ -3105,6 +3105,14 @@ class PyWindow(core.Window):
"""base_RemoveChild(Window child)"""
return _windows.PyWindow_base_RemoveChild(*args, **kwargs)
def base_ShouldInheritColours(*args, **kwargs):
"""base_ShouldInheritColours() -> bool"""
return _windows.PyWindow_base_ShouldInheritColours(*args, **kwargs)
def base_ApplyParentThemeBackground(*args, **kwargs):
"""base_ApplyParentThemeBackground(Colour c)"""
return _windows.PyWindow_base_ApplyParentThemeBackground(*args, **kwargs)
class PyWindowPtr(PyWindow):
def __init__(self, this):
@@ -3113,6 +3121,12 @@ class PyWindowPtr(PyWindow):
self.__class__ = PyWindow
_windows.PyWindow_swigregister(PyWindowPtr)
def PrePyWindow(*args, **kwargs):
"""PrePyWindow() -> PyWindow"""
val = _windows.new_PrePyWindow(*args, **kwargs)
val.thisown = 1
return val
class PyPanel(Panel):
def __repr__(self):
return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
@@ -3203,6 +3217,14 @@ class PyPanel(Panel):
"""base_RemoveChild(Window child)"""
return _windows.PyPanel_base_RemoveChild(*args, **kwargs)
def base_ShouldInheritColours(*args, **kwargs):
"""base_ShouldInheritColours() -> bool"""
return _windows.PyPanel_base_ShouldInheritColours(*args, **kwargs)
def base_ApplyParentThemeBackground(*args, **kwargs):
"""base_ApplyParentThemeBackground(Colour c)"""
return _windows.PyPanel_base_ApplyParentThemeBackground(*args, **kwargs)
class PyPanelPtr(PyPanel):
def __init__(self, this):
@@ -3211,6 +3233,124 @@ class PyPanelPtr(PyPanel):
self.__class__ = PyPanel
_windows.PyPanel_swigregister(PyPanelPtr)
def PrePyPanel(*args, **kwargs):
"""PrePyPanel() -> PyPanel"""
val = _windows.new_PrePyPanel(*args, **kwargs)
val.thisown = 1
return val
class PyScrolledWindow(ScrolledWindow):
def __repr__(self):
return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
def __init__(self, *args, **kwargs):
"""
__init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
long style=0, String name=PanelNameStr) -> PyScrolledWindow
"""
newobj = _windows.new_PyScrolledWindow(*args, **kwargs)
self.this = newobj.this
self.thisown = 1
del newobj.thisown
self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)
def _setCallbackInfo(*args, **kwargs):
"""_setCallbackInfo(PyObject self, PyObject _class)"""
return _windows.PyScrolledWindow__setCallbackInfo(*args, **kwargs)
def base_DoMoveWindow(*args, **kwargs):
"""base_DoMoveWindow(int x, int y, int width, int height)"""
return _windows.PyScrolledWindow_base_DoMoveWindow(*args, **kwargs)
def base_DoSetSize(*args, **kwargs):
"""base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
return _windows.PyScrolledWindow_base_DoSetSize(*args, **kwargs)
def base_DoSetClientSize(*args, **kwargs):
"""base_DoSetClientSize(int width, int height)"""
return _windows.PyScrolledWindow_base_DoSetClientSize(*args, **kwargs)
def base_DoSetVirtualSize(*args, **kwargs):
"""base_DoSetVirtualSize(int x, int y)"""
return _windows.PyScrolledWindow_base_DoSetVirtualSize(*args, **kwargs)
def base_DoGetSize(*args, **kwargs):
"""base_DoGetSize() -> (width, height)"""
return _windows.PyScrolledWindow_base_DoGetSize(*args, **kwargs)
def base_DoGetClientSize(*args, **kwargs):
"""base_DoGetClientSize() -> (width, height)"""
return _windows.PyScrolledWindow_base_DoGetClientSize(*args, **kwargs)
def base_DoGetPosition(*args, **kwargs):
"""base_DoGetPosition() -> (x,y)"""
return _windows.PyScrolledWindow_base_DoGetPosition(*args, **kwargs)
def base_DoGetVirtualSize(*args, **kwargs):
"""base_DoGetVirtualSize() -> Size"""
return _windows.PyScrolledWindow_base_DoGetVirtualSize(*args, **kwargs)
def base_DoGetBestSize(*args, **kwargs):
"""base_DoGetBestSize() -> Size"""
return _windows.PyScrolledWindow_base_DoGetBestSize(*args, **kwargs)
def base_InitDialog(*args, **kwargs):
"""base_InitDialog()"""
return _windows.PyScrolledWindow_base_InitDialog(*args, **kwargs)
def base_TransferDataToWindow(*args, **kwargs):
"""base_TransferDataToWindow() -> bool"""
return _windows.PyScrolledWindow_base_TransferDataToWindow(*args, **kwargs)
def base_TransferDataFromWindow(*args, **kwargs):
"""base_TransferDataFromWindow() -> bool"""
return _windows.PyScrolledWindow_base_TransferDataFromWindow(*args, **kwargs)
def base_Validate(*args, **kwargs):
"""base_Validate() -> bool"""
return _windows.PyScrolledWindow_base_Validate(*args, **kwargs)
def base_AcceptsFocus(*args, **kwargs):
"""base_AcceptsFocus() -> bool"""
return _windows.PyScrolledWindow_base_AcceptsFocus(*args, **kwargs)
def base_AcceptsFocusFromKeyboard(*args, **kwargs):
"""base_AcceptsFocusFromKeyboard() -> bool"""
return _windows.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs)
def base_GetMaxSize(*args, **kwargs):
"""base_GetMaxSize() -> Size"""
return _windows.PyScrolledWindow_base_GetMaxSize(*args, **kwargs)
def base_AddChild(*args, **kwargs):
"""base_AddChild(Window child)"""
return _windows.PyScrolledWindow_base_AddChild(*args, **kwargs)
def base_RemoveChild(*args, **kwargs):
"""base_RemoveChild(Window child)"""
return _windows.PyScrolledWindow_base_RemoveChild(*args, **kwargs)
def base_ShouldInheritColours(*args, **kwargs):
"""base_ShouldInheritColours() -> bool"""
return _windows.PyScrolledWindow_base_ShouldInheritColours(*args, **kwargs)
def base_ApplyParentThemeBackground(*args, **kwargs):
"""base_ApplyParentThemeBackground(Colour c)"""
return _windows.PyScrolledWindow_base_ApplyParentThemeBackground(*args, **kwargs)
class PyScrolledWindowPtr(PyScrolledWindow):
def __init__(self, this):
self.this = this
if not hasattr(self,"thisown"): self.thisown = 0
self.__class__ = PyScrolledWindow
_windows.PyScrolledWindow_swigregister(PyScrolledWindowPtr)
def PrePyScrolledWindow(*args, **kwargs):
"""PrePyScrolledWindow() -> PyScrolledWindow"""
val = _windows.new_PrePyScrolledWindow(*args, **kwargs)
val.thisown = 1
return val
#---------------------------------------------------------------------------
PRINT_MODE_NONE = _windows.PRINT_MODE_NONE

File diff suppressed because one or more lines are too long