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