]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/glcanvas/mac/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
):
66 """__init__(self, GLCanvas win, GLContext other=None) -> GLContext"""
67 _glcanvas
.GLContext_swiginit(self
,_glcanvas
.new_GLContext(*args
, **kwargs
))
68 __swig_destroy__
= _glcanvas
.delete_GLContext
69 __del__
= lambda self
: None;
70 _glcanvas
.GLContext_swigregister(GLContext
)
72 GLCanvasNameStr
= cvar
.GLCanvasNameStr
74 WX_GL_RGBA
= _glcanvas
.WX_GL_RGBA
75 WX_GL_BUFFER_SIZE
= _glcanvas
.WX_GL_BUFFER_SIZE
76 WX_GL_LEVEL
= _glcanvas
.WX_GL_LEVEL
77 WX_GL_DOUBLEBUFFER
= _glcanvas
.WX_GL_DOUBLEBUFFER
78 WX_GL_STEREO
= _glcanvas
.WX_GL_STEREO
79 WX_GL_AUX_BUFFERS
= _glcanvas
.WX_GL_AUX_BUFFERS
80 WX_GL_MIN_RED
= _glcanvas
.WX_GL_MIN_RED
81 WX_GL_MIN_GREEN
= _glcanvas
.WX_GL_MIN_GREEN
82 WX_GL_MIN_BLUE
= _glcanvas
.WX_GL_MIN_BLUE
83 WX_GL_MIN_ALPHA
= _glcanvas
.WX_GL_MIN_ALPHA
84 WX_GL_DEPTH_SIZE
= _glcanvas
.WX_GL_DEPTH_SIZE
85 WX_GL_STENCIL_SIZE
= _glcanvas
.WX_GL_STENCIL_SIZE
86 WX_GL_MIN_ACCUM_RED
= _glcanvas
.WX_GL_MIN_ACCUM_RED
87 WX_GL_MIN_ACCUM_GREEN
= _glcanvas
.WX_GL_MIN_ACCUM_GREEN
88 WX_GL_MIN_ACCUM_BLUE
= _glcanvas
.WX_GL_MIN_ACCUM_BLUE
89 WX_GL_MIN_ACCUM_ALPHA
= _glcanvas
.WX_GL_MIN_ACCUM_ALPHA
90 class GLCanvas(_core
.Window
):
91 """Proxy of C++ GLCanvas class"""
92 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
94 def __init__(self
, *args
, **kwargs
):
96 __init__(self, Window parent, int id=-1, int attribList=None, Point pos=DefaultPosition,
97 Size size=DefaultSize,
98 long style=0, String name=GLCanvasNameStr, Palette palette=wxNullPalette) -> GLCanvas
100 _glcanvas
.GLCanvas_swiginit(self
,_glcanvas
.new_GLCanvas(*args
, **kwargs
))
101 self
._setOORInfo
(self
)
103 def Create(*args
, **kwargs
):
105 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
106 Size size=DefaultSize, long style=0, String name=wxGLCanvasName,
108 Palette palette=wxNullPalette) -> bool
110 return _glcanvas
.GLCanvas_Create(*args
, **kwargs
)
112 def SetColour(*args
, **kwargs
):
113 """SetColour(self, String colour)"""
114 return _glcanvas
.GLCanvas_SetColour(*args
, **kwargs
)
116 def SwapBuffers(*args
, **kwargs
):
117 """SwapBuffers(self)"""
118 return _glcanvas
.GLCanvas_SwapBuffers(*args
, **kwargs
)
120 def GetContext(*args
, **kwargs
):
121 """GetContext(self) -> GLContext"""
122 return _glcanvas
.GLCanvas_GetContext(*args
, **kwargs
)
124 def SetCurrent(*args
):
126 SetCurrent(self, GLContext context)
129 return _glcanvas
.GLCanvas_SetCurrent(*args
)
131 Context
= property(GetContext
,doc
="See `GetContext`")
132 _glcanvas
.GLCanvas_swigregister(GLCanvas
)
134 def GLCanvasWithContext(*args
, **kwargs
):
136 GLCanvasWithContext(Window parent, GLContext shared=None, int id=-1, Point pos=DefaultPosition,
137 Size size=DefaultSize,
138 long style=0, String name=GLCanvasNameStr,
139 int attribList=None, Palette palette=wxNullPalette) -> GLCanvas
141 val
= _glcanvas
.new_GLCanvasWithContext(*args
, **kwargs
)