- def SetCurrent(*args, **kwargs): return _glcanvas.GLCanvas_SetCurrent(*args, **kwargs)
- def SetColour(*args, **kwargs): return _glcanvas.GLCanvas_SetColour(*args, **kwargs)
- def SwapBuffers(*args, **kwargs): return _glcanvas.GLCanvas_SwapBuffers(*args, **kwargs)
- def GetContext(*args, **kwargs): return _glcanvas.GLCanvas_GetContext(*args, **kwargs)
- def SetupPixelFormat(*args, **kwargs): return _glcanvas.GLCanvas_SetupPixelFormat(*args, **kwargs)
- def SetupPalette(*args, **kwargs): return _glcanvas.GLCanvas_SetupPalette(*args, **kwargs)
- def CreateDefaultPalette(*args, **kwargs): return _glcanvas.GLCanvas_CreateDefaultPalette(*args, **kwargs)
- def GetPalette(*args, **kwargs): return _glcanvas.GLCanvas_GetPalette(*args, **kwargs)
- def __repr__(self):
- return "<%s.%s; proxy of C++ wxGLCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
-
-class GLCanvasPtr(GLCanvas):
- def __init__(self, this):
- self.this = this
- if not hasattr(self,"thisown"): self.thisown = 0
- self.__class__ = GLCanvas
-_glcanvas.GLCanvas_swigregister(GLCanvasPtr)
-
-def wxGLCanvasWithContext(*args, **kwargs):
- val = _glcanvas.new_wxGLCanvasWithContext(*args, **kwargs)
- val.thisown = 1
+
+ def SetCurrent(*args):
+ """
+ SetCurrent(self)
+ SetCurrent(self, GLContext RC)
+ """
+ return _glcanvas.GLCanvas_SetCurrent(*args)
+
+ def SetColour(*args, **kwargs):
+ """SetColour(self, String colour)"""
+ return _glcanvas.GLCanvas_SetColour(*args, **kwargs)
+
+ def SwapBuffers(*args, **kwargs):
+ """SwapBuffers(self)"""
+ return _glcanvas.GLCanvas_SwapBuffers(*args, **kwargs)
+
+ def GetContext(*args, **kwargs):
+ """GetContext(self) -> GLContext"""
+ return _glcanvas.GLCanvas_GetContext(*args, **kwargs)
+
+ def SetupPixelFormat(*args, **kwargs):
+ """SetupPixelFormat(self, int attribList=None)"""
+ return _glcanvas.GLCanvas_SetupPixelFormat(*args, **kwargs)
+
+ def SetupPalette(*args, **kwargs):
+ """SetupPalette(self, Palette palette)"""
+ return _glcanvas.GLCanvas_SetupPalette(*args, **kwargs)
+
+ def CreateDefaultPalette(*args, **kwargs):
+ """CreateDefaultPalette(self) -> Palette"""
+ return _glcanvas.GLCanvas_CreateDefaultPalette(*args, **kwargs)
+
+ def GetPalette(*args, **kwargs):
+ """GetPalette(self) -> Palette"""
+ return _glcanvas.GLCanvas_GetPalette(*args, **kwargs)
+
+ Context = property(GetContext,doc="See `GetContext`")
+_glcanvas.GLCanvas_swigregister(GLCanvas)
+
+def GLCanvasWithContext(*args, **kwargs):
+ """
+ GLCanvasWithContext(Window parent, GLContext shared=None, int id=-1, Point pos=DefaultPosition,
+ Size size=DefaultSize,
+ long style=0, String name=GLCanvasNameStr,
+ int attribList=None, Palette palette=wxNullPalette) -> GLCanvas
+ """
+ val = _glcanvas.new_GLCanvasWithContext(*args, **kwargs)