reSWIGged
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26944 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -5,12 +5,13 @@ import _glcanvas
|
||||
|
||||
import core
|
||||
wx = core
|
||||
__docfilter__ = wx.__docfilter__
|
||||
class GLContext(core.Object):
|
||||
def __repr__(self):
|
||||
return "<%s.%s; proxy of C++ wxGLContext instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(bool isRGB, GLCanvas win, wxPalette palette=wxNullPalette,
|
||||
__init__(self, bool isRGB, GLCanvas win, wxPalette palette=wxNullPalette,
|
||||
GLContext other=None) -> GLContext
|
||||
"""
|
||||
newobj = _glcanvas.new_GLContext(*args, **kwargs)
|
||||
@@ -18,25 +19,25 @@ class GLContext(core.Object):
|
||||
self.thisown = 1
|
||||
del newobj.thisown
|
||||
def __del__(self, destroy=_glcanvas.delete_GLContext):
|
||||
"""__del__()"""
|
||||
"""__del__(self)"""
|
||||
try:
|
||||
if self.thisown: destroy(self)
|
||||
except: pass
|
||||
|
||||
def SetCurrent(*args, **kwargs):
|
||||
"""SetCurrent()"""
|
||||
"""SetCurrent(self)"""
|
||||
return _glcanvas.GLContext_SetCurrent(*args, **kwargs)
|
||||
|
||||
def SetColour(*args, **kwargs):
|
||||
"""SetColour(String colour)"""
|
||||
"""SetColour(self, String colour)"""
|
||||
return _glcanvas.GLContext_SetColour(*args, **kwargs)
|
||||
|
||||
def SwapBuffers(*args, **kwargs):
|
||||
"""SwapBuffers()"""
|
||||
"""SwapBuffers(self)"""
|
||||
return _glcanvas.GLContext_SwapBuffers(*args, **kwargs)
|
||||
|
||||
def GetWindow(*args, **kwargs):
|
||||
"""GetWindow() -> Window"""
|
||||
"""GetWindow(self) -> Window"""
|
||||
return _glcanvas.GLContext_GetWindow(*args, **kwargs)
|
||||
|
||||
|
||||
@@ -70,7 +71,7 @@ class GLCanvas(core.Window):
|
||||
return "<%s.%s; proxy of C++ wxGLCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
|
||||
def __init__(self, *args, **kwargs):
|
||||
"""
|
||||
__init__(Window parent, int id=-1, Point pos=DefaultPosition,
|
||||
__init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
|
||||
Size size=DefaultSize, long style=0, String name=GLCanvasNameStr,
|
||||
int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas
|
||||
"""
|
||||
@@ -81,19 +82,19 @@ class GLCanvas(core.Window):
|
||||
self._setOORInfo(self)
|
||||
|
||||
def SetCurrent(*args, **kwargs):
|
||||
"""SetCurrent()"""
|
||||
"""SetCurrent(self)"""
|
||||
return _glcanvas.GLCanvas_SetCurrent(*args, **kwargs)
|
||||
|
||||
def SetColour(*args, **kwargs):
|
||||
"""SetColour(String colour)"""
|
||||
"""SetColour(self, String colour)"""
|
||||
return _glcanvas.GLCanvas_SetColour(*args, **kwargs)
|
||||
|
||||
def SwapBuffers(*args, **kwargs):
|
||||
"""SwapBuffers()"""
|
||||
"""SwapBuffers(self)"""
|
||||
return _glcanvas.GLCanvas_SwapBuffers(*args, **kwargs)
|
||||
|
||||
def GetContext(*args, **kwargs):
|
||||
"""GetContext() -> GLContext"""
|
||||
"""GetContext(self) -> GLContext"""
|
||||
return _glcanvas.GLCanvas_GetContext(*args, **kwargs)
|
||||
|
||||
|
||||
|
@@ -385,7 +385,7 @@ SWIG_CheckLong(PyObject* obj)
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
static int _wrap_GLCanvasNameStr_set(PyObject *) {
|
||||
static int _wrap_GLCanvasNameStr_set(PyObject *_val) {
|
||||
PyErr_SetString(PyExc_TypeError,"Variable GLCanvasNameStr is read-only.");
|
||||
return 1;
|
||||
}
|
||||
@@ -405,7 +405,7 @@ static PyObject *_wrap_GLCanvasNameStr_get() {
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_GLContext(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
static PyObject *_wrap_new_GLContext(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
bool arg1 ;
|
||||
wxGLCanvas *arg2 = (wxGLCanvas *) 0 ;
|
||||
@@ -453,7 +453,7 @@ static PyObject *_wrap_new_GLContext(PyObject *, PyObject *args, PyObject *kwarg
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_delete_GLContext(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
static PyObject *_wrap_delete_GLContext(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxGLContext *arg1 = (wxGLContext *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
@@ -478,7 +478,7 @@ static PyObject *_wrap_delete_GLContext(PyObject *, PyObject *args, PyObject *kw
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_GLContext_SetCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
static PyObject *_wrap_GLContext_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxGLContext *arg1 = (wxGLContext *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
@@ -503,7 +503,7 @@ static PyObject *_wrap_GLContext_SetCurrent(PyObject *, PyObject *args, PyObject
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_GLContext_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
static PyObject *_wrap_GLContext_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxGLContext *arg1 = (wxGLContext *) 0 ;
|
||||
wxString *arg2 = 0 ;
|
||||
@@ -544,7 +544,7 @@ static PyObject *_wrap_GLContext_SetColour(PyObject *, PyObject *args, PyObject
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_GLContext_SwapBuffers(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
static PyObject *_wrap_GLContext_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxGLContext *arg1 = (wxGLContext *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
@@ -569,7 +569,7 @@ static PyObject *_wrap_GLContext_SwapBuffers(PyObject *, PyObject *args, PyObjec
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_GLContext_GetWindow(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
static PyObject *_wrap_GLContext_GetWindow(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxGLContext *arg1 = (wxGLContext *) 0 ;
|
||||
wxWindow *result;
|
||||
@@ -597,14 +597,14 @@ static PyObject *_wrap_GLContext_GetWindow(PyObject *, PyObject *args, PyObject
|
||||
}
|
||||
|
||||
|
||||
static PyObject * GLContext_swigregister(PyObject *, PyObject *args) {
|
||||
static PyObject * GLContext_swigregister(PyObject *self, PyObject *args) {
|
||||
PyObject *obj;
|
||||
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
|
||||
SWIG_TypeClientData(SWIGTYPE_p_wxGLContext, obj);
|
||||
Py_INCREF(obj);
|
||||
return Py_BuildValue((char *)"");
|
||||
}
|
||||
static PyObject *_wrap_new_GLCanvas(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
static PyObject *_wrap_new_GLCanvas(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
int arg2 = (int) -1 ;
|
||||
@@ -716,7 +716,7 @@ static PyObject *_wrap_new_GLCanvas(PyObject *, PyObject *args, PyObject *kwargs
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_new_GLCanvasWithContext(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
static PyObject *_wrap_new_GLCanvasWithContext(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxWindow *arg1 = (wxWindow *) 0 ;
|
||||
wxGLContext *arg2 = (wxGLContext *) NULL ;
|
||||
@@ -834,7 +834,7 @@ static PyObject *_wrap_new_GLCanvasWithContext(PyObject *, PyObject *args, PyObj
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_GLCanvas_SetCurrent(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
static PyObject *_wrap_GLCanvas_SetCurrent(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
@@ -859,7 +859,7 @@ static PyObject *_wrap_GLCanvas_SetCurrent(PyObject *, PyObject *args, PyObject
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_GLCanvas_SetColour(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
static PyObject *_wrap_GLCanvas_SetColour(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
|
||||
wxString *arg2 = 0 ;
|
||||
@@ -900,7 +900,7 @@ static PyObject *_wrap_GLCanvas_SetColour(PyObject *, PyObject *args, PyObject *
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_GLCanvas_SwapBuffers(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
static PyObject *_wrap_GLCanvas_SwapBuffers(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
|
||||
PyObject * obj0 = 0 ;
|
||||
@@ -925,7 +925,7 @@ static PyObject *_wrap_GLCanvas_SwapBuffers(PyObject *, PyObject *args, PyObject
|
||||
}
|
||||
|
||||
|
||||
static PyObject *_wrap_GLCanvas_GetContext(PyObject *, PyObject *args, PyObject *kwargs) {
|
||||
static PyObject *_wrap_GLCanvas_GetContext(PyObject *self, PyObject *args, PyObject *kwargs) {
|
||||
PyObject *resultobj;
|
||||
wxGLCanvas *arg1 = (wxGLCanvas *) 0 ;
|
||||
wxGLContext *result;
|
||||
@@ -951,7 +951,7 @@ static PyObject *_wrap_GLCanvas_GetContext(PyObject *, PyObject *args, PyObject
|
||||
}
|
||||
|
||||
|
||||
static PyObject * GLCanvas_swigregister(PyObject *, PyObject *args) {
|
||||
static PyObject * GLCanvas_swigregister(PyObject *self, PyObject *args) {
|
||||
PyObject *obj;
|
||||
if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL;
|
||||
SWIG_TypeClientData(SWIGTYPE_p_wxGLCanvas, obj);
|
||||
@@ -959,21 +959,21 @@ static PyObject * GLCanvas_swigregister(PyObject *, PyObject *args) {
|
||||
return Py_BuildValue((char *)"");
|
||||
}
|
||||
static PyMethodDef SwigMethods[] = {
|
||||
{ (char *)"new_GLContext", (PyCFunction) _wrap_new_GLContext, METH_VARARGS | METH_KEYWORDS, NULL },
|
||||
{ (char *)"delete_GLContext", (PyCFunction) _wrap_delete_GLContext, METH_VARARGS | METH_KEYWORDS, NULL },
|
||||
{ (char *)"GLContext_SetCurrent", (PyCFunction) _wrap_GLContext_SetCurrent, METH_VARARGS | METH_KEYWORDS, NULL },
|
||||
{ (char *)"GLContext_SetColour", (PyCFunction) _wrap_GLContext_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
|
||||
{ (char *)"GLContext_SwapBuffers", (PyCFunction) _wrap_GLContext_SwapBuffers, METH_VARARGS | METH_KEYWORDS, NULL },
|
||||
{ (char *)"GLContext_GetWindow", (PyCFunction) _wrap_GLContext_GetWindow, METH_VARARGS | METH_KEYWORDS, NULL },
|
||||
{ (char *)"GLContext_swigregister", GLContext_swigregister, METH_VARARGS, NULL },
|
||||
{ (char *)"new_GLCanvas", (PyCFunction) _wrap_new_GLCanvas, METH_VARARGS | METH_KEYWORDS, NULL },
|
||||
{ (char *)"new_GLCanvasWithContext", (PyCFunction) _wrap_new_GLCanvasWithContext, METH_VARARGS | METH_KEYWORDS, NULL },
|
||||
{ (char *)"GLCanvas_SetCurrent", (PyCFunction) _wrap_GLCanvas_SetCurrent, METH_VARARGS | METH_KEYWORDS, NULL },
|
||||
{ (char *)"GLCanvas_SetColour", (PyCFunction) _wrap_GLCanvas_SetColour, METH_VARARGS | METH_KEYWORDS, NULL },
|
||||
{ (char *)"GLCanvas_SwapBuffers", (PyCFunction) _wrap_GLCanvas_SwapBuffers, METH_VARARGS | METH_KEYWORDS, NULL },
|
||||
{ (char *)"GLCanvas_GetContext", (PyCFunction) _wrap_GLCanvas_GetContext, METH_VARARGS | METH_KEYWORDS, NULL },
|
||||
{ (char *)"GLCanvas_swigregister", GLCanvas_swigregister, METH_VARARGS, NULL },
|
||||
{ NULL, NULL, 0, NULL }
|
||||
{ (char *)"new_GLContext", (PyCFunction) _wrap_new_GLContext, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"delete_GLContext", (PyCFunction) _wrap_delete_GLContext, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"GLContext_SetCurrent", (PyCFunction) _wrap_GLContext_SetCurrent, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"GLContext_SetColour", (PyCFunction) _wrap_GLContext_SetColour, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"GLContext_SwapBuffers", (PyCFunction) _wrap_GLContext_SwapBuffers, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"GLContext_GetWindow", (PyCFunction) _wrap_GLContext_GetWindow, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"GLContext_swigregister", GLContext_swigregister, METH_VARARGS },
|
||||
{ (char *)"new_GLCanvas", (PyCFunction) _wrap_new_GLCanvas, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"new_GLCanvasWithContext", (PyCFunction) _wrap_new_GLCanvasWithContext, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"GLCanvas_SetCurrent", (PyCFunction) _wrap_GLCanvas_SetCurrent, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"GLCanvas_SetColour", (PyCFunction) _wrap_GLCanvas_SetColour, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"GLCanvas_SwapBuffers", (PyCFunction) _wrap_GLCanvas_SwapBuffers, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"GLCanvas_GetContext", (PyCFunction) _wrap_GLCanvas_GetContext, METH_VARARGS | METH_KEYWORDS },
|
||||
{ (char *)"GLCanvas_swigregister", GLCanvas_swigregister, METH_VARARGS },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
|
||||
@@ -1268,7 +1268,7 @@ _swigt__p_int,
|
||||
/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
|
||||
|
||||
static swig_const_info swig_const_table[] = {
|
||||
{0, 0, 0, 0.0, 0, 0}};
|
||||
{0}};
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
Reference in New Issue
Block a user