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