]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/glcanvas/mac/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 / mac / glcanvas.py
CommitLineData
1bd55598 1# This file was created automatically by SWIG 1.3.29.
d14a1e28 2# Don't modify this file, modify the SWIG interface instead.
e6056257 3
a5ee0656
RD
4"""
5`GLCanvas` provides an OpenGL Context on a `wx.Window`.
6"""
7
d14a1e28 8import _glcanvas
1bd55598
RD
9import new
10new_instancemethod = new.instancemethod
36ed4f51 11def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
1bd55598 12 if (name == "thisown"): return self.this.own(value)
36ed4f51 13 if (name == "this"):
1bd55598
RD
14 if type(value).__name__ == 'PySwigObject':
15 self.__dict__[name] = value
36ed4f51
RD
16 return
17 method = class_type.__swig_setmethods__.get(name,None)
18 if method: return method(self,value)
1bd55598 19 if (not static) or hasattr(self,name):
36ed4f51
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):
1bd55598 28 if (name == "thisown"): return self.this.own()
36ed4f51
RD
29 method = class_type.__swig_getmethods__.get(name,None)
30 if method: return method(self)
31 raise AttributeError,name
32
1bd55598
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
36ed4f51
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):
1bd55598
RD
50 if (name == "thisown"): return self.this.own(value)
51 if hasattr(self,name) or (name == "this"):
36ed4f51
RD
52 set(self,name,value)
53 else:
54 raise AttributeError("You cannot add attributes to %s" % self)
55 return set_attr
56
57
d55e5bfc
RD
58import _core
59wx = _core
d6c14a4c 60__docfilter__ = wx.__DocFilter(globals())
d55e5bfc 61class GLContext(_core.Object):
36ed4f51 62 """Proxy of C++ GLContext class"""
1bd55598
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):
41f1cec7 66 """
a95a7133 67 __init__(self, bool isRGB, GLCanvas win, wxPalette palette=wxNullPalette,
41f1cec7
RD
68 GLContext other=None) -> GLContext
69 """
1bd55598
RD
70 _glcanvas.GLContext_swiginit(self,_glcanvas.new_GLContext(*args, **kwargs))
71 __swig_destroy__ = _glcanvas.delete_GLContext
72 __del__ = lambda self : None;
423f194a 73 def SetCurrent(*args, **kwargs):
a95a7133 74 """SetCurrent(self)"""
423f194a
RD
75 return _glcanvas.GLContext_SetCurrent(*args, **kwargs)
76
77 def SetColour(*args, **kwargs):
a95a7133 78 """SetColour(self, String colour)"""
423f194a
RD
79 return _glcanvas.GLContext_SetColour(*args, **kwargs)
80
81 def SwapBuffers(*args, **kwargs):
a95a7133 82 """SwapBuffers(self)"""
423f194a
RD
83 return _glcanvas.GLContext_SwapBuffers(*args, **kwargs)
84
85 def GetWindow(*args, **kwargs):
a95a7133 86 """GetWindow(self) -> Window"""
423f194a
RD
87 return _glcanvas.GLContext_GetWindow(*args, **kwargs)
88
1bd55598
RD
89GLContext_swigregister = _glcanvas.GLContext_swigregister
90GLContext_swigregister(GLContext)
cbd72d4f
RD
91cvar = _glcanvas.cvar
92GLCanvasNameStr = cvar.GLCanvasNameStr
d14a1e28
RD
93
94WX_GL_RGBA = _glcanvas.WX_GL_RGBA
95WX_GL_BUFFER_SIZE = _glcanvas.WX_GL_BUFFER_SIZE
96WX_GL_LEVEL = _glcanvas.WX_GL_LEVEL
97WX_GL_DOUBLEBUFFER = _glcanvas.WX_GL_DOUBLEBUFFER
98WX_GL_STEREO = _glcanvas.WX_GL_STEREO
99WX_GL_AUX_BUFFERS = _glcanvas.WX_GL_AUX_BUFFERS
100WX_GL_MIN_RED = _glcanvas.WX_GL_MIN_RED
101WX_GL_MIN_GREEN = _glcanvas.WX_GL_MIN_GREEN
102WX_GL_MIN_BLUE = _glcanvas.WX_GL_MIN_BLUE
103WX_GL_MIN_ALPHA = _glcanvas.WX_GL_MIN_ALPHA
104WX_GL_DEPTH_SIZE = _glcanvas.WX_GL_DEPTH_SIZE
105WX_GL_STENCIL_SIZE = _glcanvas.WX_GL_STENCIL_SIZE
106WX_GL_MIN_ACCUM_RED = _glcanvas.WX_GL_MIN_ACCUM_RED
107WX_GL_MIN_ACCUM_GREEN = _glcanvas.WX_GL_MIN_ACCUM_GREEN
108WX_GL_MIN_ACCUM_BLUE = _glcanvas.WX_GL_MIN_ACCUM_BLUE
109WX_GL_MIN_ACCUM_ALPHA = _glcanvas.WX_GL_MIN_ACCUM_ALPHA
d55e5bfc 110class GLCanvas(_core.Window):
36ed4f51 111 """Proxy of C++ GLCanvas class"""
1bd55598
RD
112 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
113 __repr__ = _swig_repr
114 def __init__(self, *args, **kwargs):
41f1cec7 115 """
a95a7133 116 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
cbd72d4f
RD
117 Size size=DefaultSize, long style=0, String name=GLCanvasNameStr,
118 int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas
41f1cec7 119 """
1bd55598 120 _glcanvas.GLCanvas_swiginit(self,_glcanvas.new_GLCanvas(*args, **kwargs))
e6056257 121 self._setOORInfo(self)
423f194a
RD
122
123 def SetCurrent(*args, **kwargs):
a95a7133 124 """SetCurrent(self)"""
423f194a
RD
125 return _glcanvas.GLCanvas_SetCurrent(*args, **kwargs)
126
127 def SetColour(*args, **kwargs):
a95a7133 128 """SetColour(self, String colour)"""
423f194a
RD
129 return _glcanvas.GLCanvas_SetColour(*args, **kwargs)
130
131 def SwapBuffers(*args, **kwargs):
a95a7133 132 """SwapBuffers(self)"""
423f194a
RD
133 return _glcanvas.GLCanvas_SwapBuffers(*args, **kwargs)
134
135 def GetContext(*args, **kwargs):
a95a7133 136 """GetContext(self) -> GLContext"""
423f194a
RD
137 return _glcanvas.GLCanvas_GetContext(*args, **kwargs)
138
1bd55598
RD
139GLCanvas_swigregister = _glcanvas.GLCanvas_swigregister
140GLCanvas_swigregister(GLCanvas)
e6056257 141
58203fa6 142def GLCanvasWithContext(*args, **kwargs):
41f1cec7 143 """
58203fa6 144 GLCanvasWithContext(Window parent, GLContext shared=None, int id=-1, Point pos=DefaultPosition,
41f1cec7 145 Size size=DefaultSize,
cbd72d4f 146 long style=0, String name=GLCanvasNameStr,
41f1cec7
RD
147 int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas
148 """
58203fa6 149 val = _glcanvas.new_GLCanvasWithContext(*args, **kwargs)
d14a1e28 150 val._setOORInfo(val)
e6056257
RD
151 return val
152
153
32fe5131 154