]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/glcanvas/msw/glcanvas.py
Added patch to wxPoint_LIST_helper from Tim Hochberg that should make
[wxWidgets.git] / wxPython / contrib / glcanvas / msw / glcanvas.py
CommitLineData
325274bb
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
d2103cf2
RD
12from clip_dnd import *
13
325274bb
RD
14from events import *
15
dbbb98cd
RD
16from streams import *
17
325274bb
RD
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 *
d2103cf2
RD
37
38from sizers import *
dbbb98cd
RD
39
40from filesys import *
41
42from utils import *
325274bb
RD
43import wx
44class wxGLContextPtr :
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 if val: val = wxWindowPtr(val)
63 return val
64 def __repr__(self):
65 return "<C wxGLContext instance at %s>" % (self.this,)
66class wxGLContext(wxGLContextPtr):
67 def __init__(self,*_args,**_kwargs):
68 self.this = apply(glcanvasc.new_wxGLContext,_args,_kwargs)
69 self.thisown = 1
70
71
72
73
74class wxGLCanvasPtr(wxScrolledWindowPtr):
75 def __init__(self,this):
76 self.this = this
77 self.thisown = 0
78 def SetCurrent(self, *_args, **_kwargs):
79 val = apply(glcanvasc.wxGLCanvas_SetCurrent,(self,) + _args, _kwargs)
80 return val
81 def SetColour(self, *_args, **_kwargs):
82 val = apply(glcanvasc.wxGLCanvas_SetColour,(self,) + _args, _kwargs)
83 return val
84 def SwapBuffers(self, *_args, **_kwargs):
85 val = apply(glcanvasc.wxGLCanvas_SwapBuffers,(self,) + _args, _kwargs)
86 return val
87 def GetContext(self, *_args, **_kwargs):
88 val = apply(glcanvasc.wxGLCanvas_GetContext,(self,) + _args, _kwargs)
89 if val: val = wxGLContextPtr(val)
90 return val
91 def __repr__(self):
92 return "<C wxGLCanvas instance at %s>" % (self.this,)
93class wxGLCanvas(wxGLCanvasPtr):
94 def __init__(self,*_args,**_kwargs):
95 self.this = apply(glcanvasc.new_wxGLCanvas,_args,_kwargs)
96 self.thisown = 1
f6bcfd97 97 #wx._StdWindowCallbacks(self)
325274bb
RD
98
99
100
101
102
103
104#-------------- FUNCTION WRAPPERS ------------------
105
325274bb
RD
106
107
108#-------------- VARIABLE WRAPPERS ------------------
109