]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/glcanvas/mac/glcanvas.py
signed/unsigned comparison warnings fixed
[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
12from clip_dnd import *
13
14from events import *
15
16from streams import *
17
18from mdi import *
19
20from frames import *
21
22from stattool import *
23
24from controls import *
25
26from controls2 import *
27
28from windows2 import *
29
30from cmndlgs import *
31
32from windows3 import *
33
34from image import *
35
36from printfw import *
37
38from sizers import *
39
40from filesys import *
41
42from utils import *
43import wx
44class wxGLContextPtr(wxObjectPtr):
45 def __init__(self,this):
46 self.this = this
47 self.thisown = 0
48 def __del__(self,glcanvasc=glcanvasc):
49 if self.thisown == 1 :
50 glcanvasc.delete_wxGLContext(self)
51 def SetCurrent(self, *_args, **_kwargs):
52 val = apply(glcanvasc.wxGLContext_SetCurrent,(self,) + _args, _kwargs)
53 return val
54 def SetColour(self, *_args, **_kwargs):
55 val = apply(glcanvasc.wxGLContext_SetColour,(self,) + _args, _kwargs)
56 return val
57 def SwapBuffers(self, *_args, **_kwargs):
58 val = apply(glcanvasc.wxGLContext_SwapBuffers,(self,) + _args, _kwargs)
59 return val
60 def GetWindow(self, *_args, **_kwargs):
61 val = apply(glcanvasc.wxGLContext_GetWindow,(self,) + _args, _kwargs)
62 return val
63 def __repr__(self):
64 return "<C wxGLContext instance at %s>" % (self.this,)
65class wxGLContext(wxGLContextPtr):
66 def __init__(self,*_args,**_kwargs):
67 self.this = apply(glcanvasc.new_wxGLContext,_args,_kwargs)
68 self.thisown = 1
69
70
71
72
73class wxGLCanvasPtr(wxScrolledWindowPtr):
74 def __init__(self,this):
75 self.this = this
76 self.thisown = 0
77 def SetCurrent(self, *_args, **_kwargs):
78 val = apply(glcanvasc.wxGLCanvas_SetCurrent,(self,) + _args, _kwargs)
79 return val
80 def SetColour(self, *_args, **_kwargs):
81 val = apply(glcanvasc.wxGLCanvas_SetColour,(self,) + _args, _kwargs)
82 return val
83 def SwapBuffers(self, *_args, **_kwargs):
84 val = apply(glcanvasc.wxGLCanvas_SwapBuffers,(self,) + _args, _kwargs)
85 return val
86 def GetContext(self, *_args, **_kwargs):
87 val = apply(glcanvasc.wxGLCanvas_GetContext,(self,) + _args, _kwargs)
88 if val: val = wxGLContextPtr(val)
89 return val
90 def __repr__(self):
91 return "<C wxGLCanvas instance at %s>" % (self.this,)
92class wxGLCanvas(wxGLCanvasPtr):
93 def __init__(self,*_args,**_kwargs):
94 self.this = apply(glcanvasc.new_wxGLCanvas,_args,_kwargs)
95 self.thisown = 1
96 self._setOORInfo(self)
97
98
99
100def wxGLCanvasWithContext(*_args,**_kwargs):
101 val = wxGLCanvasPtr(apply(glcanvasc.new_wxGLCanvasWithContext,_args,_kwargs))
102 val.thisown = 1
103 val._setOORInfo(self)
104 return val
105
106
107
108
109#-------------- FUNCTION WRAPPERS ------------------
110
111
112
113#-------------- VARIABLE WRAPPERS ------------------
114