]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/glcanvas/gtk/glcanvas.py
buttonbar.cpp/.h must be in GUI_CMN_SRC/HDR as toolbkg.cpp which is in common depends...
[wxWidgets.git] / wxPython / contrib / glcanvas / gtk / glcanvas.py
CommitLineData
0085ce49 1# This file was created automatically by SWIG 1.3.29.
d14a1e28 2# Don't modify this file, modify the SWIG interface instead.
a29cd6c0 3
db3e571a
RD
4"""
5`GLCanvas` provides an OpenGL Context on a `wx.Window`.
6"""
7
d14a1e28 8import _glcanvas
0085ce49
RD
9import new
10new_instancemethod = new.instancemethod
3004cfd8 11def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
0085ce49 12 if (name == "thisown"): return self.this.own(value)
3004cfd8 13 if (name == "this"):
0085ce49
RD
14 if type(value).__name__ == 'PySwigObject':
15 self.__dict__[name] = value
3004cfd8
RD
16 return
17 method = class_type.__swig_setmethods__.get(name,None)
18 if method: return method(self,value)
0085ce49 19 if (not static) or hasattr(self,name):
3004cfd8
RD
20 self.__dict__[name] = value
21 else:
22 raise AttributeError("You cannot add attributes to %s" % self)
23
24def _swig_setattr(self,class_type,name,value):
25 return _swig_setattr_nondynamic(self,class_type,name,value,0)
26
27def _swig_getattr(self,class_type,name):
0085ce49 28 if (name == "thisown"): return self.this.own()
3004cfd8
RD
29 method = class_type.__swig_getmethods__.get(name,None)
30 if method: return method(self)
31 raise AttributeError,name
32
0085ce49
RD
33def _swig_repr(self):
34 try: strthis = "proxy of " + self.this.__repr__()
35 except: strthis = ""
36 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
37
3004cfd8
RD
38import types
39try:
40 _object = types.ObjectType
41 _newclass = 1
42except AttributeError:
43 class _object : pass
44 _newclass = 0
45del types
46
47
48def _swig_setattr_nondynamic_method(set):
49 def set_attr(self,name,value):
0085ce49
RD
50 if (name == "thisown"): return self.this.own(value)
51 if hasattr(self,name) or (name == "this"):
3004cfd8
RD
52 set(self,name,value)
53 else:
54 raise AttributeError("You cannot add attributes to %s" % self)
55 return set_attr
56
57
54f9ee45
RD
58import _core
59wx = _core
66c033b4 60__docfilter__ = wx.__DocFilter(globals())
54f9ee45 61class GLContext(_core.Object):
3004cfd8 62 """Proxy of C++ GLContext class"""
0085ce49
RD
63 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
64 __repr__ = _swig_repr
65 def __init__(self, *args, **kwargs):
0df68c9f 66 """
a95a7133 67 __init__(self, bool isRGB, GLCanvas win, wxPalette palette=wxNullPalette,
0df68c9f
RD
68 GLContext other=None) -> GLContext
69 """
0085ce49
RD
70 _glcanvas.GLContext_swiginit(self,_glcanvas.new_GLContext(*args, **kwargs))
71 __swig_destroy__ = _glcanvas.delete_GLContext
72 __del__ = lambda self : None;
e811c8ce 73 def SetCurrent(*args, **kwargs):
a95a7133 74 """SetCurrent(self)"""
e811c8ce
RD
75 return _glcanvas.GLContext_SetCurrent(*args, **kwargs)
76
77 def SetColour(*args, **kwargs):
a95a7133 78 """SetColour(self, String colour)"""
e811c8ce
RD
79 return _glcanvas.GLContext_SetColour(*args, **kwargs)
80
81 def SwapBuffers(*args, **kwargs):
a95a7133 82 """SwapBuffers(self)"""
e811c8ce
RD
83 return _glcanvas.GLContext_SwapBuffers(*args, **kwargs)
84
85 def SetupPixelFormat(*args, **kwargs):
a95a7133 86 """SetupPixelFormat(self)"""
e811c8ce
RD
87 return _glcanvas.GLContext_SetupPixelFormat(*args, **kwargs)
88
89 def SetupPalette(*args, **kwargs):
a95a7133 90 """SetupPalette(self, wxPalette palette)"""
e811c8ce
RD
91 return _glcanvas.GLContext_SetupPalette(*args, **kwargs)
92
93 def CreateDefaultPalette(*args, **kwargs):
a95a7133 94 """CreateDefaultPalette(self) -> wxPalette"""
e811c8ce
RD
95 return _glcanvas.GLContext_CreateDefaultPalette(*args, **kwargs)
96
97 def GetPalette(*args, **kwargs):
a95a7133 98 """GetPalette(self) -> wxPalette"""
e811c8ce
RD
99 return _glcanvas.GLContext_GetPalette(*args, **kwargs)
100
101 def GetWindow(*args, **kwargs):
a95a7133 102 """GetWindow(self) -> Window"""
e811c8ce
RD
103 return _glcanvas.GLContext_GetWindow(*args, **kwargs)
104
0085ce49
RD
105GLContext_swigregister = _glcanvas.GLContext_swigregister
106GLContext_swigregister(GLContext)
b2dc1044
RD
107cvar = _glcanvas.cvar
108GLCanvasNameStr = cvar.GLCanvasNameStr
d14a1e28
RD
109
110WX_GL_RGBA = _glcanvas.WX_GL_RGBA
111WX_GL_BUFFER_SIZE = _glcanvas.WX_GL_BUFFER_SIZE
112WX_GL_LEVEL = _glcanvas.WX_GL_LEVEL
113WX_GL_DOUBLEBUFFER = _glcanvas.WX_GL_DOUBLEBUFFER
114WX_GL_STEREO = _glcanvas.WX_GL_STEREO
115WX_GL_AUX_BUFFERS = _glcanvas.WX_GL_AUX_BUFFERS
116WX_GL_MIN_RED = _glcanvas.WX_GL_MIN_RED
117WX_GL_MIN_GREEN = _glcanvas.WX_GL_MIN_GREEN
118WX_GL_MIN_BLUE = _glcanvas.WX_GL_MIN_BLUE
119WX_GL_MIN_ALPHA = _glcanvas.WX_GL_MIN_ALPHA
120WX_GL_DEPTH_SIZE = _glcanvas.WX_GL_DEPTH_SIZE
121WX_GL_STENCIL_SIZE = _glcanvas.WX_GL_STENCIL_SIZE
122WX_GL_MIN_ACCUM_RED = _glcanvas.WX_GL_MIN_ACCUM_RED
123WX_GL_MIN_ACCUM_GREEN = _glcanvas.WX_GL_MIN_ACCUM_GREEN
124WX_GL_MIN_ACCUM_BLUE = _glcanvas.WX_GL_MIN_ACCUM_BLUE
125WX_GL_MIN_ACCUM_ALPHA = _glcanvas.WX_GL_MIN_ACCUM_ALPHA
54f9ee45 126class GLCanvas(_core.Window):
3004cfd8 127 """Proxy of C++ GLCanvas class"""
0085ce49
RD
128 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
129 __repr__ = _swig_repr
130 def __init__(self, *args, **kwargs):
0df68c9f 131 """
a95a7133 132 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
b2dc1044
RD
133 Size size=DefaultSize, long style=0, String name=GLCanvasNameStr,
134 int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas
0df68c9f 135 """
0085ce49 136 _glcanvas.GLCanvas_swiginit(self,_glcanvas.new_GLCanvas(*args, **kwargs))
0220cbc1 137 self._setOORInfo(self)
e811c8ce
RD
138
139 def SetCurrent(*args, **kwargs):
a95a7133 140 """SetCurrent(self)"""
e811c8ce
RD
141 return _glcanvas.GLCanvas_SetCurrent(*args, **kwargs)
142
143 def SetColour(*args, **kwargs):
a95a7133 144 """SetColour(self, String colour)"""
e811c8ce
RD
145 return _glcanvas.GLCanvas_SetColour(*args, **kwargs)
146
147 def SwapBuffers(*args, **kwargs):
a95a7133 148 """SwapBuffers(self)"""
e811c8ce
RD
149 return _glcanvas.GLCanvas_SwapBuffers(*args, **kwargs)
150
151 def GetContext(*args, **kwargs):
a95a7133 152 """GetContext(self) -> GLContext"""
e811c8ce
RD
153 return _glcanvas.GLCanvas_GetContext(*args, **kwargs)
154
0085ce49
RD
155GLCanvas_swigregister = _glcanvas.GLCanvas_swigregister
156GLCanvas_swigregister(GLCanvas)
a29cd6c0 157
58203fa6 158def GLCanvasWithContext(*args, **kwargs):
0df68c9f 159 """
58203fa6 160 GLCanvasWithContext(Window parent, GLContext shared=None, int id=-1, Point pos=DefaultPosition,
0df68c9f 161 Size size=DefaultSize,
b2dc1044 162 long style=0, String name=GLCanvasNameStr,
0df68c9f
RD
163 int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas
164 """
58203fa6 165 val = _glcanvas.new_GLCanvasWithContext(*args, **kwargs)
d14a1e28 166 val._setOORInfo(val)
0220cbc1
RD
167 return val
168
a29cd6c0 169
32fe5131 170