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