]> git.saurik.com Git - wxWidgets.git/blame - wxPython/contrib/glcanvas/msw/glcanvas.py
fix text scrolling in GTK2 (patch 703988)
[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
68bc8549
RD
12from fonts import *
13
d2103cf2
RD
14from clip_dnd import *
15
325274bb
RD
16from events import *
17
dbbb98cd
RD
18from streams import *
19
c3819e4a
RD
20from utils import *
21
325274bb
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 *
d2103cf2
RD
41
42from sizers import *
dbbb98cd
RD
43
44from filesys import *
325274bb 45import wx
9416aa89 46class wxGLContextPtr(wxObjectPtr):
325274bb
RD
47 def __init__(self,this):
48 self.this = this
49 self.thisown = 0
7e50db3f
RD
50 def __del__(self, delfunc=glcanvasc.delete_wxGLContext):
51 if self.thisown == 1:
52 try:
53 delfunc(self)
54 except:
55 pass
325274bb 56 def SetCurrent(self, *_args, **_kwargs):
1fded56b 57 val = glcanvasc.wxGLContext_SetCurrent(self, *_args, **_kwargs)
325274bb
RD
58 return val
59 def SetColour(self, *_args, **_kwargs):
1fded56b 60 val = glcanvasc.wxGLContext_SetColour(self, *_args, **_kwargs)
325274bb
RD
61 return val
62 def SwapBuffers(self, *_args, **_kwargs):
1fded56b 63 val = glcanvasc.wxGLContext_SwapBuffers(self, *_args, **_kwargs)
325274bb
RD
64 return val
65 def GetWindow(self, *_args, **_kwargs):
1fded56b 66 val = glcanvasc.wxGLContext_GetWindow(self, *_args, **_kwargs)
325274bb
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)
325274bb
RD
70class wxGLContext(wxGLContextPtr):
71 def __init__(self,*_args,**_kwargs):
1fded56b 72 self.this = glcanvasc.new_wxGLContext(*_args,**_kwargs)
325274bb
RD
73 self.thisown = 1
74
75
76
77
ab11ebfa 78class wxGLCanvasPtr(wxWindowPtr):
325274bb
RD
79 def __init__(self,this):
80 self.this = this
81 self.thisown = 0
82 def SetCurrent(self, *_args, **_kwargs):
1fded56b 83 val = glcanvasc.wxGLCanvas_SetCurrent(self, *_args, **_kwargs)
325274bb
RD
84 return val
85 def SetColour(self, *_args, **_kwargs):
1fded56b 86 val = glcanvasc.wxGLCanvas_SetColour(self, *_args, **_kwargs)
325274bb
RD
87 return val
88 def SwapBuffers(self, *_args, **_kwargs):
1fded56b 89 val = glcanvasc.wxGLCanvas_SwapBuffers(self, *_args, **_kwargs)
325274bb
RD
90 return val
91 def GetContext(self, *_args, **_kwargs):
1fded56b 92 val = glcanvasc.wxGLCanvas_GetContext(self, *_args, **_kwargs)
325274bb
RD
93 if val: val = wxGLContextPtr(val)
94 return val
0122b7e3 95 def SetupPixelFormat(self, *_args, **_kwargs):
1fded56b 96 val = glcanvasc.wxGLCanvas_SetupPixelFormat(self, *_args, **_kwargs)
0122b7e3
RD
97 return val
98 def SetupPalette(self, *_args, **_kwargs):
1fded56b 99 val = glcanvasc.wxGLCanvas_SetupPalette(self, *_args, **_kwargs)
0122b7e3
RD
100 return val
101 def CreateDefaultPalette(self, *_args, **_kwargs):
1fded56b 102 val = glcanvasc.wxGLCanvas_CreateDefaultPalette(self, *_args, **_kwargs)
0122b7e3
RD
103 if val: val = wxPalettePtr(val) ; val.thisown = 1
104 return val
105 def GetPalette(self, *_args, **_kwargs):
1fded56b 106 val = glcanvasc.wxGLCanvas_GetPalette(self, *_args, **_kwargs)
0122b7e3
RD
107 if val: val = wxPalettePtr(val)
108 return val
325274bb 109 def __repr__(self):
1fded56b 110 return "<%s.%s instance; proxy of C++ wxGLCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this)
325274bb
RD
111class wxGLCanvas(wxGLCanvasPtr):
112 def __init__(self,*_args,**_kwargs):
1fded56b 113 self.this = glcanvasc.new_wxGLCanvas(*_args,**_kwargs)
325274bb 114 self.thisown = 1
0122b7e3
RD
115 self._setOORInfo(self)
116
325274bb
RD
117
118
0122b7e3 119def wxGLCanvasWithContext(*_args,**_kwargs):
1fded56b 120 val = wxGLCanvasPtr(glcanvasc.new_wxGLCanvasWithContext(*_args,**_kwargs))
0122b7e3
RD
121 val.thisown = 1
122 val._setOORInfo(self)
123 return val
325274bb
RD
124
125
126
127
128#-------------- FUNCTION WRAPPERS ------------------
129
325274bb
RD
130
131
132#-------------- VARIABLE WRAPPERS ------------------
133
c3819e4a
RD
134WX_GL_RGBA = glcanvasc.WX_GL_RGBA
135WX_GL_BUFFER_SIZE = glcanvasc.WX_GL_BUFFER_SIZE
136WX_GL_LEVEL = glcanvasc.WX_GL_LEVEL
137WX_GL_DOUBLEBUFFER = glcanvasc.WX_GL_DOUBLEBUFFER
138WX_GL_STEREO = glcanvasc.WX_GL_STEREO
139WX_GL_AUX_BUFFERS = glcanvasc.WX_GL_AUX_BUFFERS
140WX_GL_MIN_RED = glcanvasc.WX_GL_MIN_RED
141WX_GL_MIN_GREEN = glcanvasc.WX_GL_MIN_GREEN
142WX_GL_MIN_BLUE = glcanvasc.WX_GL_MIN_BLUE
143WX_GL_MIN_ALPHA = glcanvasc.WX_GL_MIN_ALPHA
144WX_GL_DEPTH_SIZE = glcanvasc.WX_GL_DEPTH_SIZE
145WX_GL_STENCIL_SIZE = glcanvasc.WX_GL_STENCIL_SIZE
146WX_GL_MIN_ACCUM_RED = glcanvasc.WX_GL_MIN_ACCUM_RED
147WX_GL_MIN_ACCUM_GREEN = glcanvasc.WX_GL_MIN_ACCUM_GREEN
148WX_GL_MIN_ACCUM_BLUE = glcanvasc.WX_GL_MIN_ACCUM_BLUE
149WX_GL_MIN_ACCUM_ALPHA = glcanvasc.WX_GL_MIN_ACCUM_ALPHA