]> git.saurik.com Git - wxWidgets.git/blob - wxPython/contrib/ogl/oglcanvas.py
Copied/merged from the 2.2 branch.
[wxWidgets.git] / wxPython / contrib / ogl / oglcanvas.py
1 # This file was created automatically by SWIG.
2 import oglcanvasc
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 streams import *
17
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 *
37
38 from sizers import *
39
40 from filesys import *
41
42 from utils import *
43 import wx
44 class wxDiagramPtr :
45 def __init__(self,this):
46 self.this = this
47 self.thisown = 0
48 def __del__(self,oglcanvasc=oglcanvasc):
49 if self.thisown == 1 :
50 oglcanvasc.delete_wxDiagram(self)
51 def AddShape(self, *_args, **_kwargs):
52 val = apply(oglcanvasc.wxDiagram_AddShape,(self,) + _args, _kwargs)
53 return val
54 def Clear(self, *_args, **_kwargs):
55 val = apply(oglcanvasc.wxDiagram_Clear,(self,) + _args, _kwargs)
56 return val
57 def DeleteAllShapes(self, *_args, **_kwargs):
58 val = apply(oglcanvasc.wxDiagram_DeleteAllShapes,(self,) + _args, _kwargs)
59 return val
60 def DrawOutline(self, *_args, **_kwargs):
61 val = apply(oglcanvasc.wxDiagram_DrawOutline,(self,) + _args, _kwargs)
62 return val
63 def FindShape(self, *_args, **_kwargs):
64 val = apply(oglcanvasc.wxDiagram_FindShape,(self,) + _args, _kwargs)
65 if val: val = wxPyShapePtr(val)
66 return val
67 def GetCanvas(self, *_args, **_kwargs):
68 val = apply(oglcanvasc.wxDiagram_GetCanvas,(self,) + _args, _kwargs)
69 if val: val = wxPyShapeCanvasPtr(val)
70 return val
71 def GetCount(self, *_args, **_kwargs):
72 val = apply(oglcanvasc.wxDiagram_GetCount,(self,) + _args, _kwargs)
73 return val
74 def GetGridSpacing(self, *_args, **_kwargs):
75 val = apply(oglcanvasc.wxDiagram_GetGridSpacing,(self,) + _args, _kwargs)
76 return val
77 def GetMouseTolerance(self, *_args, **_kwargs):
78 val = apply(oglcanvasc.wxDiagram_GetMouseTolerance,(self,) + _args, _kwargs)
79 return val
80 def GetShapeList(self, *_args, **_kwargs):
81 val = apply(oglcanvasc.wxDiagram_GetShapeList,(self,) + _args, _kwargs)
82 return val
83 def GetQuickEditMode(self, *_args, **_kwargs):
84 val = apply(oglcanvasc.wxDiagram_GetQuickEditMode,(self,) + _args, _kwargs)
85 return val
86 def GetSnapToGrid(self, *_args, **_kwargs):
87 val = apply(oglcanvasc.wxDiagram_GetSnapToGrid,(self,) + _args, _kwargs)
88 return val
89 def InsertShape(self, *_args, **_kwargs):
90 val = apply(oglcanvasc.wxDiagram_InsertShape,(self,) + _args, _kwargs)
91 return val
92 def LoadFile(self, *_args, **_kwargs):
93 val = apply(oglcanvasc.wxDiagram_LoadFile,(self,) + _args, _kwargs)
94 return val
95 def ReadContainerGeometry(self, *_args, **_kwargs):
96 val = apply(oglcanvasc.wxDiagram_ReadContainerGeometry,(self,) + _args, _kwargs)
97 return val
98 def ReadLines(self, *_args, **_kwargs):
99 val = apply(oglcanvasc.wxDiagram_ReadLines,(self,) + _args, _kwargs)
100 return val
101 def ReadNodes(self, *_args, **_kwargs):
102 val = apply(oglcanvasc.wxDiagram_ReadNodes,(self,) + _args, _kwargs)
103 return val
104 def RecentreAll(self, *_args, **_kwargs):
105 val = apply(oglcanvasc.wxDiagram_RecentreAll,(self,) + _args, _kwargs)
106 return val
107 def Redraw(self, *_args, **_kwargs):
108 val = apply(oglcanvasc.wxDiagram_Redraw,(self,) + _args, _kwargs)
109 return val
110 def RemoveAllShapes(self, *_args, **_kwargs):
111 val = apply(oglcanvasc.wxDiagram_RemoveAllShapes,(self,) + _args, _kwargs)
112 return val
113 def RemoveShape(self, *_args, **_kwargs):
114 val = apply(oglcanvasc.wxDiagram_RemoveShape,(self,) + _args, _kwargs)
115 return val
116 def SaveFile(self, *_args, **_kwargs):
117 val = apply(oglcanvasc.wxDiagram_SaveFile,(self,) + _args, _kwargs)
118 return val
119 def SetCanvas(self, *_args, **_kwargs):
120 val = apply(oglcanvasc.wxDiagram_SetCanvas,(self,) + _args, _kwargs)
121 return val
122 def SetGridSpacing(self, *_args, **_kwargs):
123 val = apply(oglcanvasc.wxDiagram_SetGridSpacing,(self,) + _args, _kwargs)
124 return val
125 def SetMouseTolerance(self, *_args, **_kwargs):
126 val = apply(oglcanvasc.wxDiagram_SetMouseTolerance,(self,) + _args, _kwargs)
127 return val
128 def SetQuickEditMode(self, *_args, **_kwargs):
129 val = apply(oglcanvasc.wxDiagram_SetQuickEditMode,(self,) + _args, _kwargs)
130 return val
131 def SetSnapToGrid(self, *_args, **_kwargs):
132 val = apply(oglcanvasc.wxDiagram_SetSnapToGrid,(self,) + _args, _kwargs)
133 return val
134 def ShowAll(self, *_args, **_kwargs):
135 val = apply(oglcanvasc.wxDiagram_ShowAll,(self,) + _args, _kwargs)
136 return val
137 def Snap(self, *_args, **_kwargs):
138 val = apply(oglcanvasc.wxDiagram_Snap,(self,) + _args, _kwargs)
139 return val
140 def __repr__(self):
141 return "<C wxDiagram instance at %s>" % (self.this,)
142 class wxDiagram(wxDiagramPtr):
143 def __init__(self,*_args,**_kwargs):
144 self.this = apply(oglcanvasc.new_wxDiagram,_args,_kwargs)
145 self.thisown = 1
146
147
148
149
150 class wxPyShapeCanvasPtr(wxScrolledWindowPtr):
151 def __init__(self,this):
152 self.this = this
153 self.thisown = 0
154 def _setSelf(self, *_args, **_kwargs):
155 val = apply(oglcanvasc.wxPyShapeCanvas__setSelf,(self,) + _args, _kwargs)
156 return val
157 def AddShape(self, *_args, **_kwargs):
158 val = apply(oglcanvasc.wxPyShapeCanvas_AddShape,(self,) + _args, _kwargs)
159 return val
160 def FindShape(self, *_args, **_kwargs):
161 val = apply(oglcanvasc.wxPyShapeCanvas_FindShape,(self,) + _args, _kwargs)
162 return val
163 def FindFirstSensitiveShape(self, *_args, **_kwargs):
164 val = apply(oglcanvasc.wxPyShapeCanvas_FindFirstSensitiveShape,(self,) + _args, _kwargs)
165 return val
166 def GetDiagram(self, *_args, **_kwargs):
167 val = apply(oglcanvasc.wxPyShapeCanvas_GetDiagram,(self,) + _args, _kwargs)
168 if val: val = wxDiagramPtr(val)
169 return val
170 def GetQuickEditMode(self, *_args, **_kwargs):
171 val = apply(oglcanvasc.wxPyShapeCanvas_GetQuickEditMode,(self,) + _args, _kwargs)
172 return val
173 def InsertShape(self, *_args, **_kwargs):
174 val = apply(oglcanvasc.wxPyShapeCanvas_InsertShape,(self,) + _args, _kwargs)
175 return val
176 def base_OnBeginDragLeft(self, *_args, **_kwargs):
177 val = apply(oglcanvasc.wxPyShapeCanvas_base_OnBeginDragLeft,(self,) + _args, _kwargs)
178 return val
179 def base_OnBeginDragRight(self, *_args, **_kwargs):
180 val = apply(oglcanvasc.wxPyShapeCanvas_base_OnBeginDragRight,(self,) + _args, _kwargs)
181 return val
182 def base_OnEndDragLeft(self, *_args, **_kwargs):
183 val = apply(oglcanvasc.wxPyShapeCanvas_base_OnEndDragLeft,(self,) + _args, _kwargs)
184 return val
185 def base_OnEndDragRight(self, *_args, **_kwargs):
186 val = apply(oglcanvasc.wxPyShapeCanvas_base_OnEndDragRight,(self,) + _args, _kwargs)
187 return val
188 def base_OnDragLeft(self, *_args, **_kwargs):
189 val = apply(oglcanvasc.wxPyShapeCanvas_base_OnDragLeft,(self,) + _args, _kwargs)
190 return val
191 def base_OnDragRight(self, *_args, **_kwargs):
192 val = apply(oglcanvasc.wxPyShapeCanvas_base_OnDragRight,(self,) + _args, _kwargs)
193 return val
194 def base_OnLeftClick(self, *_args, **_kwargs):
195 val = apply(oglcanvasc.wxPyShapeCanvas_base_OnLeftClick,(self,) + _args, _kwargs)
196 return val
197 def base_OnRightClick(self, *_args, **_kwargs):
198 val = apply(oglcanvasc.wxPyShapeCanvas_base_OnRightClick,(self,) + _args, _kwargs)
199 return val
200 def Redraw(self, *_args, **_kwargs):
201 val = apply(oglcanvasc.wxPyShapeCanvas_Redraw,(self,) + _args, _kwargs)
202 return val
203 def RemoveShape(self, *_args, **_kwargs):
204 val = apply(oglcanvasc.wxPyShapeCanvas_RemoveShape,(self,) + _args, _kwargs)
205 return val
206 def SetDiagram(self, *_args, **_kwargs):
207 val = apply(oglcanvasc.wxPyShapeCanvas_SetDiagram,(self,) + _args, _kwargs)
208 return val
209 def Snap(self, *_args, **_kwargs):
210 val = apply(oglcanvasc.wxPyShapeCanvas_Snap,(self,) + _args, _kwargs)
211 return val
212 def __repr__(self):
213 return "<C wxPyShapeCanvas instance at %s>" % (self.this,)
214 class wxPyShapeCanvas(wxPyShapeCanvasPtr):
215 def __init__(self,*_args,**_kwargs):
216 self.this = apply(oglcanvasc.new_wxPyShapeCanvas,_args,_kwargs)
217 self.thisown = 1
218 self._setSelf(self, wxPyShapeCanvas)
219 #wx._StdWindowCallbacks(self)
220 #wx._StdOnScrollCallbacks(self)
221
222
223
224
225
226
227 #-------------- FUNCTION WRAPPERS ------------------
228
229
230
231 #-------------- VARIABLE WRAPPERS ------------------
232