]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/glcanvas/gtk/glcanvas.py
1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
5 `GLCanvas` provides an OpenGL Context on a `wx.Window`.
10 new_instancemethod
= new
.instancemethod
11 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
12 if (name
== "thisown"): return self
.this
.own(value
)
14 if type(value
).__name
__ == 'PySwigObject':
15 self
.__dict
__[name
] = value
17 method
= class_type
.__swig
_setmethods
__.get(name
,None)
18 if method
: return method(self
,value
)
19 if (not static
) or hasattr(self
,name
):
20 self
.__dict
__[name
] = value
22 raise AttributeError("You cannot add attributes to %s" % self
)
24 def _swig_setattr(self
,class_type
,name
,value
):
25 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
27 def _swig_getattr(self
,class_type
,name
):
28 if (name
== "thisown"): return self
.this
.own()
29 method
= class_type
.__swig
_getmethods
__.get(name
,None)
30 if method
: return method(self
)
31 raise AttributeError,name
34 try: strthis
= "proxy of " + self
.this
.__repr
__()
36 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
40 _object
= types
.ObjectType
42 except AttributeError:
48 def _swig_setattr_nondynamic_method(set):
49 def set_attr(self
,name
,value
):
50 if (name
== "thisown"): return self
.this
.own(value
)
51 if hasattr(self
,name
) or (name
== "this"):
54 raise AttributeError("You cannot add attributes to %s" % self
)
60 __docfilter__
= wx
.__DocFilter
(globals())
61 class GLContext(_core
.Object
):
62 """Proxy of C++ GLContext class"""
63 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
65 def __init__(self
, *args
, **kwargs
):
67 __init__(self, bool isRGB, GLCanvas win, wxPalette palette=wxNullPalette,
68 GLContext other=None) -> GLContext
70 _glcanvas
.GLContext_swiginit(self
,_glcanvas
.new_GLContext(*args
, **kwargs
))
71 __swig_destroy__
= _glcanvas
.delete_GLContext
72 __del__
= lambda self
: None;
73 def SetCurrent(*args
, **kwargs
):
74 """SetCurrent(self)"""
75 return _glcanvas
.GLContext_SetCurrent(*args
, **kwargs
)
77 def SetColour(*args
, **kwargs
):
78 """SetColour(self, String colour)"""
79 return _glcanvas
.GLContext_SetColour(*args
, **kwargs
)
81 def SwapBuffers(*args
, **kwargs
):
82 """SwapBuffers(self)"""
83 return _glcanvas
.GLContext_SwapBuffers(*args
, **kwargs
)
85 def SetupPixelFormat(*args
, **kwargs
):
86 """SetupPixelFormat(self)"""
87 return _glcanvas
.GLContext_SetupPixelFormat(*args
, **kwargs
)
89 def SetupPalette(*args
, **kwargs
):
90 """SetupPalette(self, wxPalette palette)"""
91 return _glcanvas
.GLContext_SetupPalette(*args
, **kwargs
)
93 def CreateDefaultPalette(*args
, **kwargs
):
94 """CreateDefaultPalette(self) -> wxPalette"""
95 return _glcanvas
.GLContext_CreateDefaultPalette(*args
, **kwargs
)
97 def GetPalette(*args
, **kwargs
):
98 """GetPalette(self) -> wxPalette"""
99 return _glcanvas
.GLContext_GetPalette(*args
, **kwargs
)
101 def GetWindow(*args
, **kwargs
):
102 """GetWindow(self) -> Window"""
103 return _glcanvas
.GLContext_GetWindow(*args
, **kwargs
)
105 GLContext_swigregister
= _glcanvas
.GLContext_swigregister
106 GLContext_swigregister(GLContext
)
107 cvar
= _glcanvas
.cvar
108 GLCanvasNameStr
= cvar
.GLCanvasNameStr
110 WX_GL_RGBA
= _glcanvas
.WX_GL_RGBA
111 WX_GL_BUFFER_SIZE
= _glcanvas
.WX_GL_BUFFER_SIZE
112 WX_GL_LEVEL
= _glcanvas
.WX_GL_LEVEL
113 WX_GL_DOUBLEBUFFER
= _glcanvas
.WX_GL_DOUBLEBUFFER
114 WX_GL_STEREO
= _glcanvas
.WX_GL_STEREO
115 WX_GL_AUX_BUFFERS
= _glcanvas
.WX_GL_AUX_BUFFERS
116 WX_GL_MIN_RED
= _glcanvas
.WX_GL_MIN_RED
117 WX_GL_MIN_GREEN
= _glcanvas
.WX_GL_MIN_GREEN
118 WX_GL_MIN_BLUE
= _glcanvas
.WX_GL_MIN_BLUE
119 WX_GL_MIN_ALPHA
= _glcanvas
.WX_GL_MIN_ALPHA
120 WX_GL_DEPTH_SIZE
= _glcanvas
.WX_GL_DEPTH_SIZE
121 WX_GL_STENCIL_SIZE
= _glcanvas
.WX_GL_STENCIL_SIZE
122 WX_GL_MIN_ACCUM_RED
= _glcanvas
.WX_GL_MIN_ACCUM_RED
123 WX_GL_MIN_ACCUM_GREEN
= _glcanvas
.WX_GL_MIN_ACCUM_GREEN
124 WX_GL_MIN_ACCUM_BLUE
= _glcanvas
.WX_GL_MIN_ACCUM_BLUE
125 WX_GL_MIN_ACCUM_ALPHA
= _glcanvas
.WX_GL_MIN_ACCUM_ALPHA
126 class GLCanvas(_core
.Window
):
127 """Proxy of C++ GLCanvas class"""
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
):
132 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
133 Size size=DefaultSize, long style=0, String name=GLCanvasNameStr,
134 int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas
136 _glcanvas
.GLCanvas_swiginit(self
,_glcanvas
.new_GLCanvas(*args
, **kwargs
))
137 self
._setOORInfo
(self
)
139 def SetCurrent(*args
, **kwargs
):
140 """SetCurrent(self)"""
141 return _glcanvas
.GLCanvas_SetCurrent(*args
, **kwargs
)
143 def SetColour(*args
, **kwargs
):
144 """SetColour(self, String colour)"""
145 return _glcanvas
.GLCanvas_SetColour(*args
, **kwargs
)
147 def SwapBuffers(*args
, **kwargs
):
148 """SwapBuffers(self)"""
149 return _glcanvas
.GLCanvas_SwapBuffers(*args
, **kwargs
)
151 def GetContext(*args
, **kwargs
):
152 """GetContext(self) -> GLContext"""
153 return _glcanvas
.GLCanvas_GetContext(*args
, **kwargs
)
155 GLCanvas_swigregister
= _glcanvas
.GLCanvas_swigregister
156 GLCanvas_swigregister(GLCanvas
)
158 def GLCanvasWithContext(*args
, **kwargs
):
160 GLCanvasWithContext(Window parent, GLContext shared=None, int id=-1, Point pos=DefaultPosition,
161 Size size=DefaultSize,
162 long style=0, String name=GLCanvasNameStr,
163 int attribList=None, wxPalette palette=wxNullPalette) -> GLCanvas
165 val
= _glcanvas
.new_GLCanvasWithContext(*args
, **kwargs
)