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