]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/glcanvas/gtk/glcanvas.py
It's now wx._core
[wxWidgets.git] / wxPython / contrib / glcanvas / gtk / glcanvas.py
1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
3
4 import _glcanvas
5
6 import _core
7 wx = _core
8 __docfilter__ = wx.__docfilter__
9 class GLContext(_core.Object):
10 def __repr__(self):
11 return "<%s.%s; proxy of C++ wxGLContext instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
12 def __init__(self, *args, **kwargs):
13 """
14 __init__(self, bool isRGB, GLCanvas win, wxPalette palette=wxNullPalette,
15 GLContext other=None) -> GLContext
16 """
17 newobj = _glcanvas.new_GLContext(*args, **kwargs)
18 self.this = newobj.this
19 self.thisown = 1
20 del newobj.thisown
21 def __del__(self, destroy=_glcanvas.delete_GLContext):
22 """__del__(self)"""
23 try:
24 if self.thisown: destroy(self)
25 except: pass
26
27 def SetCurrent(*args, **kwargs):
28 """SetCurrent(self)"""
29 return _glcanvas.GLContext_SetCurrent(*args, **kwargs)
30
31 def SetColour(*args, **kwargs):
32 """SetColour(self, String colour)"""
33 return _glcanvas.GLContext_SetColour(*args, **kwargs)
34
35 def SwapBuffers(*args, **kwargs):
36 """SwapBuffers(self)"""
37 return _glcanvas.GLContext_SwapBuffers(*args, **kwargs)
38
39 def SetupPixelFormat(*args, **kwargs):
40 """SetupPixelFormat(self)"""
41 return _glcanvas.GLContext_SetupPixelFormat(*args, **kwargs)
42
43 def SetupPalette(*args, **kwargs):
44 """SetupPalette(self, wxPalette palette)"""
45 return _glcanvas.GLContext_SetupPalette(*args, **kwargs)
46
47 def CreateDefaultPalette(*args, **kwargs):
48 """CreateDefaultPalette(self) -> wxPalette"""
49 return _glcanvas.GLContext_CreateDefaultPalette(*args, **kwargs)
50
51 def GetPalette(*args, **kwargs):
52 """GetPalette(self) -> wxPalette"""
53 return _glcanvas.GLContext_GetPalette(*args, **kwargs)
54
55 def GetWindow(*args, **kwargs):
56 """GetWindow(self) -> Window"""
57 return _glcanvas.GLContext_GetWindow(*args, **kwargs)
58
59
60 class GLContextPtr(GLContext):
61 def __init__(self, this):
62 self.this = this
63 if not hasattr(self,"thisown"): self.thisown = 0
64 self.__class__ = GLContext
65 _glcanvas.GLContext_swigregister(GLContextPtr)
66 cvar = _glcanvas.cvar
67 GLCanvasNameStr = cvar.GLCanvasNameStr
68
69 WX_GL_RGBA = _glcanvas.WX_GL_RGBA
70 WX_GL_BUFFER_SIZE = _glcanvas.WX_GL_BUFFER_SIZE
71 WX_GL_LEVEL = _glcanvas.WX_GL_LEVEL
72 WX_GL_DOUBLEBUFFER = _glcanvas.WX_GL_DOUBLEBUFFER
73 WX_GL_STEREO = _glcanvas.WX_GL_STEREO
74 WX_GL_AUX_BUFFERS = _glcanvas.WX_GL_AUX_BUFFERS
75 WX_GL_MIN_RED = _glcanvas.WX_GL_MIN_RED
76 WX_GL_MIN_GREEN = _glcanvas.WX_GL_MIN_GREEN
77 WX_GL_MIN_BLUE = _glcanvas.WX_GL_MIN_BLUE
78 WX_GL_MIN_ALPHA = _glcanvas.WX_GL_MIN_ALPHA
79 WX_GL_DEPTH_SIZE = _glcanvas.WX_GL_DEPTH_SIZE
80 WX_GL_STENCIL_SIZE = _glcanvas.WX_GL_STENCIL_SIZE
81 WX_GL_MIN_ACCUM_RED = _glcanvas.WX_GL_MIN_ACCUM_RED
82 WX_GL_MIN_ACCUM_GREEN = _glcanvas.WX_GL_MIN_ACCUM_GREEN
83 WX_GL_MIN_ACCUM_BLUE = _glcanvas.WX_GL_MIN_ACCUM_BLUE
84 WX_GL_MIN_ACCUM_ALPHA = _glcanvas.WX_GL_MIN_ACCUM_ALPHA
85 class GLCanvas(_core.Window):
86 def __repr__(self):
87 return "<%s.%s; proxy of C++ wxGLCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
88 def __init__(self, *args, **kwargs):
89 """
90 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
91 Size size=DefaultSize, long style=0, String name=GLCanvasNameStr,
92 int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas
93 """
94 newobj = _glcanvas.new_GLCanvas(*args, **kwargs)
95 self.this = newobj.this
96 self.thisown = 1
97 del newobj.thisown
98 self._setOORInfo(self)
99
100 def SetCurrent(*args, **kwargs):
101 """SetCurrent(self)"""
102 return _glcanvas.GLCanvas_SetCurrent(*args, **kwargs)
103
104 def SetColour(*args, **kwargs):
105 """SetColour(self, String colour)"""
106 return _glcanvas.GLCanvas_SetColour(*args, **kwargs)
107
108 def SwapBuffers(*args, **kwargs):
109 """SwapBuffers(self)"""
110 return _glcanvas.GLCanvas_SwapBuffers(*args, **kwargs)
111
112 def GetContext(*args, **kwargs):
113 """GetContext(self) -> GLContext"""
114 return _glcanvas.GLCanvas_GetContext(*args, **kwargs)
115
116
117 class GLCanvasPtr(GLCanvas):
118 def __init__(self, this):
119 self.this = this
120 if not hasattr(self,"thisown"): self.thisown = 0
121 self.__class__ = GLCanvas
122 _glcanvas.GLCanvas_swigregister(GLCanvasPtr)
123
124 def GLCanvasWithContext(*args, **kwargs):
125 """
126 GLCanvasWithContext(Window parent, GLContext shared=None, int id=-1, Point pos=DefaultPosition,
127 Size size=DefaultSize,
128 long style=0, String name=GLCanvasNameStr,
129 int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas
130 """
131 val = _glcanvas.new_GLCanvasWithContext(*args, **kwargs)
132 val.thisown = 1
133 val._setOORInfo(val)
134 return val
135
136