]>
Commit | Line | Data |
---|---|---|
a29cd6c0 HH |
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 | ||
a323d3bd RD |
12 | from fonts import * |
13 | ||
54b96882 RD |
14 | from clip_dnd import * |
15 | ||
a29cd6c0 HH |
16 | from events import * |
17 | ||
2cd2fac8 RD |
18 | from streams import * |
19 | ||
08da19d7 RD |
20 | from utils import * |
21 | ||
a29cd6c0 HH |
22 | from mdi import * |
23 | ||
24 | from frames import * | |
25 | ||
26 | from stattool import * | |
27 | ||
28 | from controls import * | |
29 | ||
30 | from controls2 import * | |
31 | ||
32 | from windows2 import * | |
33 | ||
34 | from cmndlgs import * | |
35 | ||
36 | from windows3 import * | |
37 | ||
38 | from image import * | |
39 | ||
40 | from printfw import * | |
54b96882 RD |
41 | |
42 | from sizers import * | |
2cd2fac8 RD |
43 | |
44 | from filesys import * | |
a29cd6c0 | 45 | import wx |
9df61a29 | 46 | class wxGLContextPtr(wxObjectPtr): |
a29cd6c0 HH |
47 | def __init__(self,this): |
48 | self.this = this | |
49 | self.thisown = 0 | |
b67a9327 RD |
50 | def __del__(self, delfunc=glcanvasc.delete_wxGLContext): |
51 | if self.thisown == 1: | |
52 | try: | |
53 | delfunc(self) | |
54 | except: | |
55 | pass | |
f786a3b2 | 56 | def SetCurrent(self, *_args, **_kwargs): |
1fded56b | 57 | val = glcanvasc.wxGLContext_SetCurrent(self, *_args, **_kwargs) |
a29cd6c0 | 58 | return val |
f786a3b2 | 59 | def SetColour(self, *_args, **_kwargs): |
1fded56b | 60 | val = glcanvasc.wxGLContext_SetColour(self, *_args, **_kwargs) |
a29cd6c0 | 61 | return val |
f786a3b2 | 62 | def SwapBuffers(self, *_args, **_kwargs): |
1fded56b | 63 | val = glcanvasc.wxGLContext_SwapBuffers(self, *_args, **_kwargs) |
a29cd6c0 | 64 | return val |
f786a3b2 | 65 | def SetupPixelFormat(self, *_args, **_kwargs): |
1fded56b | 66 | val = glcanvasc.wxGLContext_SetupPixelFormat(self, *_args, **_kwargs) |
a29cd6c0 | 67 | return val |
f786a3b2 | 68 | def SetupPalette(self, *_args, **_kwargs): |
1fded56b | 69 | val = glcanvasc.wxGLContext_SetupPalette(self, *_args, **_kwargs) |
a29cd6c0 | 70 | return val |
f786a3b2 | 71 | def CreateDefaultPalette(self, *_args, **_kwargs): |
1fded56b | 72 | val = glcanvasc.wxGLContext_CreateDefaultPalette(self, *_args, **_kwargs) |
f786a3b2 | 73 | if val: val = wxPalettePtr(val) ; val.thisown = 1 |
a29cd6c0 | 74 | return val |
f786a3b2 | 75 | def GetPalette(self, *_args, **_kwargs): |
1fded56b | 76 | val = glcanvasc.wxGLContext_GetPalette(self, *_args, **_kwargs) |
f786a3b2 | 77 | if val: val = wxPalettePtr(val) |
a29cd6c0 | 78 | return val |
f786a3b2 | 79 | def GetWindow(self, *_args, **_kwargs): |
1fded56b | 80 | val = glcanvasc.wxGLContext_GetWindow(self, *_args, **_kwargs) |
a29cd6c0 HH |
81 | return val |
82 | def __repr__(self): | |
1fded56b | 83 | return "<%s.%s instance; proxy of C++ wxGLContext instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this) |
a29cd6c0 | 84 | class wxGLContext(wxGLContextPtr): |
f786a3b2 | 85 | def __init__(self,*_args,**_kwargs): |
1fded56b | 86 | self.this = glcanvasc.new_wxGLContext(*_args,**_kwargs) |
a29cd6c0 HH |
87 | self.thisown = 1 |
88 | ||
89 | ||
90 | ||
91 | ||
b66824a5 | 92 | class wxGLCanvasPtr(wxWindowPtr): |
a29cd6c0 HH |
93 | def __init__(self,this): |
94 | self.this = this | |
95 | self.thisown = 0 | |
f786a3b2 | 96 | def SetCurrent(self, *_args, **_kwargs): |
1fded56b | 97 | val = glcanvasc.wxGLCanvas_SetCurrent(self, *_args, **_kwargs) |
a29cd6c0 | 98 | return val |
f786a3b2 | 99 | def SetColour(self, *_args, **_kwargs): |
1fded56b | 100 | val = glcanvasc.wxGLCanvas_SetColour(self, *_args, **_kwargs) |
a29cd6c0 | 101 | return val |
f786a3b2 | 102 | def SwapBuffers(self, *_args, **_kwargs): |
1fded56b | 103 | val = glcanvasc.wxGLCanvas_SwapBuffers(self, *_args, **_kwargs) |
a29cd6c0 | 104 | return val |
f786a3b2 | 105 | def GetContext(self, *_args, **_kwargs): |
1fded56b | 106 | val = glcanvasc.wxGLCanvas_GetContext(self, *_args, **_kwargs) |
f786a3b2 | 107 | if val: val = wxGLContextPtr(val) |
a29cd6c0 HH |
108 | return val |
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) |
a29cd6c0 | 111 | class wxGLCanvas(wxGLCanvasPtr): |
f786a3b2 | 112 | def __init__(self,*_args,**_kwargs): |
1fded56b | 113 | self.this = glcanvasc.new_wxGLCanvas(*_args,**_kwargs) |
a29cd6c0 | 114 | self.thisown = 1 |
0220cbc1 | 115 | self._setOORInfo(self) |
a29cd6c0 HH |
116 | |
117 | ||
118 | ||
0220cbc1 | 119 | def wxGLCanvasWithContext(*_args,**_kwargs): |
1fded56b | 120 | val = wxGLCanvasPtr(glcanvasc.new_wxGLCanvasWithContext(*_args,**_kwargs)) |
0220cbc1 RD |
121 | val.thisown = 1 |
122 | val._setOORInfo(self) | |
123 | return val | |
124 | ||
a29cd6c0 HH |
125 | |
126 | ||
127 | ||
128 | #-------------- FUNCTION WRAPPERS ------------------ | |
129 | ||
a29cd6c0 HH |
130 | |
131 | ||
132 | #-------------- VARIABLE WRAPPERS ------------------ | |
133 | ||
262e41eb RD |
134 | WX_GL_RGBA = glcanvasc.WX_GL_RGBA |
135 | WX_GL_BUFFER_SIZE = glcanvasc.WX_GL_BUFFER_SIZE | |
136 | WX_GL_LEVEL = glcanvasc.WX_GL_LEVEL | |
137 | WX_GL_DOUBLEBUFFER = glcanvasc.WX_GL_DOUBLEBUFFER | |
138 | WX_GL_STEREO = glcanvasc.WX_GL_STEREO | |
139 | WX_GL_AUX_BUFFERS = glcanvasc.WX_GL_AUX_BUFFERS | |
140 | WX_GL_MIN_RED = glcanvasc.WX_GL_MIN_RED | |
141 | WX_GL_MIN_GREEN = glcanvasc.WX_GL_MIN_GREEN | |
142 | WX_GL_MIN_BLUE = glcanvasc.WX_GL_MIN_BLUE | |
143 | WX_GL_MIN_ALPHA = glcanvasc.WX_GL_MIN_ALPHA | |
144 | WX_GL_DEPTH_SIZE = glcanvasc.WX_GL_DEPTH_SIZE | |
145 | WX_GL_STENCIL_SIZE = glcanvasc.WX_GL_STENCIL_SIZE | |
146 | WX_GL_MIN_ACCUM_RED = glcanvasc.WX_GL_MIN_ACCUM_RED | |
147 | WX_GL_MIN_ACCUM_GREEN = glcanvasc.WX_GL_MIN_ACCUM_GREEN | |
148 | WX_GL_MIN_ACCUM_BLUE = glcanvasc.WX_GL_MIN_ACCUM_BLUE | |
149 | WX_GL_MIN_ACCUM_ALPHA = glcanvasc.WX_GL_MIN_ACCUM_ALPHA |