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