]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/glcanvas/mac/glcanvas.py
reSWIGged
[wxWidgets.git] / wxPython / contrib / glcanvas / mac / glcanvas.py
1 # This file was created automatically by SWIG.
2 import glcanvasc
3
4 from misc import *
5
6 from misc2 import *
7
8 from windows import *
9
10 from gdi import *
11
12 from fonts import *
13
14 from clip_dnd import *
15
16 from events import *
17
18 from streams import *
19
20 from utils import *
21
22 from mdi import *
23
24 from frames import *
25
26 from stattool import *
27
28 from controls import *
29
30 from controls2 import *
31
32 from windows2 import *
33
34 from cmndlgs import *
35
36 from windows3 import *
37
38 from image import *
39
40 from printfw import *
41
42 from sizers import *
43
44 from filesys import *
45 import wx
46 class wxGLContextPtr(wxObjectPtr):
47 def __init__(self,this):
48 self.this = this
49 self.thisown = 0
50 def __del__(self, delfunc=glcanvasc.delete_wxGLContext):
51 if self.thisown == 1:
52 try:
53 delfunc(self)
54 except:
55 pass
56 def SetCurrent(self, *_args, **_kwargs):
57 val = glcanvasc.wxGLContext_SetCurrent(self, *_args, **_kwargs)
58 return val
59 def SetColour(self, *_args, **_kwargs):
60 val = glcanvasc.wxGLContext_SetColour(self, *_args, **_kwargs)
61 return val
62 def SwapBuffers(self, *_args, **_kwargs):
63 val = glcanvasc.wxGLContext_SwapBuffers(self, *_args, **_kwargs)
64 return val
65 def GetWindow(self, *_args, **_kwargs):
66 val = glcanvasc.wxGLContext_GetWindow(self, *_args, **_kwargs)
67 return val
68 def __repr__(self):
69 return "<%s.%s instance; proxy of C++ wxGLContext instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
70 class wxGLContext(wxGLContextPtr):
71 def __init__(self,this):
72 self.this = this
73
74
75
76
77 class wxGLCanvasPtr(wxWindowPtr):
78 def __init__(self,this):
79 self.this = this
80 self.thisown = 0
81 def SetCurrent(self, *_args, **_kwargs):
82 val = glcanvasc.wxGLCanvas_SetCurrent(self, *_args, **_kwargs)
83 return val
84 def SetColour(self, *_args, **_kwargs):
85 val = glcanvasc.wxGLCanvas_SetColour(self, *_args, **_kwargs)
86 return val
87 def SwapBuffers(self, *_args, **_kwargs):
88 val = glcanvasc.wxGLCanvas_SwapBuffers(self, *_args, **_kwargs)
89 return val
90 def GetContext(self, *_args, **_kwargs):
91 val = glcanvasc.wxGLCanvas_GetContext(self, *_args, **_kwargs)
92 if val: val = wxGLContextPtr(val)
93 return val
94 def __repr__(self):
95 return "<%s.%s instance; proxy of C++ wxGLCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
96 class wxGLCanvas(wxGLCanvasPtr):
97 def __init__(self,*_args,**_kwargs):
98 self.this = glcanvasc.new_wxGLCanvas(*_args,**_kwargs)
99 self.thisown = 1
100 self._setOORInfo(self)
101
102
103
104 def wxGLCanvasWithContext(*_args,**_kwargs):
105 val = wxGLCanvasPtr(glcanvasc.new_wxGLCanvasWithContext(*_args,**_kwargs))
106 val.thisown = 1
107 val._setOORInfo(self)
108 return val
109
110
111
112
113 #-------------- FUNCTION WRAPPERS ------------------
114
115
116
117 #-------------- VARIABLE WRAPPERS ------------------
118
119 WX_GL_RGBA = glcanvasc.WX_GL_RGBA
120 WX_GL_BUFFER_SIZE = glcanvasc.WX_GL_BUFFER_SIZE
121 WX_GL_LEVEL = glcanvasc.WX_GL_LEVEL
122 WX_GL_DOUBLEBUFFER = glcanvasc.WX_GL_DOUBLEBUFFER
123 WX_GL_STEREO = glcanvasc.WX_GL_STEREO
124 WX_GL_AUX_BUFFERS = glcanvasc.WX_GL_AUX_BUFFERS
125 WX_GL_MIN_RED = glcanvasc.WX_GL_MIN_RED
126 WX_GL_MIN_GREEN = glcanvasc.WX_GL_MIN_GREEN
127 WX_GL_MIN_BLUE = glcanvasc.WX_GL_MIN_BLUE
128 WX_GL_MIN_ALPHA = glcanvasc.WX_GL_MIN_ALPHA
129 WX_GL_DEPTH_SIZE = glcanvasc.WX_GL_DEPTH_SIZE
130 WX_GL_STENCIL_SIZE = glcanvasc.WX_GL_STENCIL_SIZE
131 WX_GL_MIN_ACCUM_RED = glcanvasc.WX_GL_MIN_ACCUM_RED
132 WX_GL_MIN_ACCUM_GREEN = glcanvasc.WX_GL_MIN_ACCUM_GREEN
133 WX_GL_MIN_ACCUM_BLUE = glcanvasc.WX_GL_MIN_ACCUM_BLUE
134 WX_GL_MIN_ACCUM_ALPHA = glcanvasc.WX_GL_MIN_ACCUM_ALPHA