]>
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 | ||
54b96882 RD |
12 | from clip_dnd import * |
13 | ||
a29cd6c0 HH |
14 | from events import * |
15 | ||
2cd2fac8 RD |
16 | from streams import * |
17 | ||
a29cd6c0 HH |
18 | from mdi import * |
19 | ||
20 | from frames import * | |
21 | ||
22 | from stattool import * | |
23 | ||
24 | from controls import * | |
25 | ||
26 | from controls2 import * | |
27 | ||
28 | from windows2 import * | |
29 | ||
30 | from cmndlgs import * | |
31 | ||
32 | from windows3 import * | |
33 | ||
34 | from image import * | |
35 | ||
36 | from printfw import * | |
54b96882 RD |
37 | |
38 | from sizers import * | |
2cd2fac8 RD |
39 | |
40 | from filesys import * | |
41 | ||
42 | from utils import * | |
a29cd6c0 HH |
43 | import wx |
44 | class wxGLContextPtr : | |
45 | def __init__(self,this): | |
46 | self.this = this | |
47 | self.thisown = 0 | |
f786a3b2 | 48 | def __del__(self,glcanvasc=glcanvasc): |
a29cd6c0 | 49 | if self.thisown == 1 : |
f786a3b2 HH |
50 | glcanvasc.delete_wxGLContext(self) |
51 | def SetCurrent(self, *_args, **_kwargs): | |
52 | val = apply(glcanvasc.wxGLContext_SetCurrent,(self,) + _args, _kwargs) | |
a29cd6c0 | 53 | return val |
f786a3b2 HH |
54 | def SetColour(self, *_args, **_kwargs): |
55 | val = apply(glcanvasc.wxGLContext_SetColour,(self,) + _args, _kwargs) | |
a29cd6c0 | 56 | return val |
f786a3b2 HH |
57 | def SwapBuffers(self, *_args, **_kwargs): |
58 | val = apply(glcanvasc.wxGLContext_SwapBuffers,(self,) + _args, _kwargs) | |
a29cd6c0 | 59 | return val |
f786a3b2 HH |
60 | def SetupPixelFormat(self, *_args, **_kwargs): |
61 | val = apply(glcanvasc.wxGLContext_SetupPixelFormat,(self,) + _args, _kwargs) | |
a29cd6c0 | 62 | return val |
f786a3b2 HH |
63 | def SetupPalette(self, *_args, **_kwargs): |
64 | val = apply(glcanvasc.wxGLContext_SetupPalette,(self,) + _args, _kwargs) | |
a29cd6c0 | 65 | return val |
f786a3b2 HH |
66 | def CreateDefaultPalette(self, *_args, **_kwargs): |
67 | val = apply(glcanvasc.wxGLContext_CreateDefaultPalette,(self,) + _args, _kwargs) | |
68 | if val: val = wxPalettePtr(val) ; val.thisown = 1 | |
a29cd6c0 | 69 | return val |
f786a3b2 HH |
70 | def GetPalette(self, *_args, **_kwargs): |
71 | val = apply(glcanvasc.wxGLContext_GetPalette,(self,) + _args, _kwargs) | |
72 | if val: val = wxPalettePtr(val) | |
a29cd6c0 | 73 | return val |
f786a3b2 HH |
74 | def GetWindow(self, *_args, **_kwargs): |
75 | val = apply(glcanvasc.wxGLContext_GetWindow,(self,) + _args, _kwargs) | |
76 | if val: val = wxWindowPtr(val) | |
a29cd6c0 HH |
77 | return val |
78 | def __repr__(self): | |
f786a3b2 | 79 | return "<C wxGLContext instance at %s>" % (self.this,) |
a29cd6c0 | 80 | class wxGLContext(wxGLContextPtr): |
f786a3b2 HH |
81 | def __init__(self,*_args,**_kwargs): |
82 | self.this = apply(glcanvasc.new_wxGLContext,_args,_kwargs) | |
a29cd6c0 HH |
83 | self.thisown = 1 |
84 | ||
85 | ||
86 | ||
87 | ||
88 | class wxGLCanvasPtr(wxScrolledWindowPtr): | |
89 | def __init__(self,this): | |
90 | self.this = this | |
91 | self.thisown = 0 | |
f786a3b2 HH |
92 | def SetCurrent(self, *_args, **_kwargs): |
93 | val = apply(glcanvasc.wxGLCanvas_SetCurrent,(self,) + _args, _kwargs) | |
a29cd6c0 | 94 | return val |
f786a3b2 HH |
95 | def SetColour(self, *_args, **_kwargs): |
96 | val = apply(glcanvasc.wxGLCanvas_SetColour,(self,) + _args, _kwargs) | |
a29cd6c0 | 97 | return val |
f786a3b2 HH |
98 | def SwapBuffers(self, *_args, **_kwargs): |
99 | val = apply(glcanvasc.wxGLCanvas_SwapBuffers,(self,) + _args, _kwargs) | |
a29cd6c0 | 100 | return val |
f786a3b2 HH |
101 | def GetContext(self, *_args, **_kwargs): |
102 | val = apply(glcanvasc.wxGLCanvas_GetContext,(self,) + _args, _kwargs) | |
103 | if val: val = wxGLContextPtr(val) | |
a29cd6c0 HH |
104 | return val |
105 | def __repr__(self): | |
f786a3b2 | 106 | return "<C wxGLCanvas instance at %s>" % (self.this,) |
a29cd6c0 | 107 | class wxGLCanvas(wxGLCanvasPtr): |
f786a3b2 HH |
108 | def __init__(self,*_args,**_kwargs): |
109 | self.this = apply(glcanvasc.new_wxGLCanvas,_args,_kwargs) | |
a29cd6c0 | 110 | self.thisown = 1 |
f6bcfd97 | 111 | #wx._StdWindowCallbacks(self) |
a29cd6c0 HH |
112 | |
113 | ||
114 | ||
115 | ||
116 | ||
117 | ||
118 | #-------------- FUNCTION WRAPPERS ------------------ | |
119 | ||
a29cd6c0 HH |
120 | |
121 | ||
122 | #-------------- VARIABLE WRAPPERS ------------------ | |
123 |