]>
Commit | Line | Data |
---|---|---|
e91a9dfc RD |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: oglshapes2.i | |
3 | // Purpose: SWIG definitions for the wxWindows Object Graphics Library | |
4 | // | |
5 | // Author: Robin Dunn | |
6 | // | |
7 | // Created: 3-Sept-1999 | |
8 | // RCS-ID: $Id$ | |
9 | // Copyright: (c) 1998 by Total Control Software | |
10 | // Licence: wxWindows license | |
11 | ///////////////////////////////////////////////////////////////////////////// | |
12 | ||
13 | ||
d14a1e28 | 14 | // not a %module |
e91a9dfc RD |
15 | |
16 | ||
e91a9dfc | 17 | //--------------------------------------------------------------------------- |
137b5242 | 18 | |
e91a9dfc RD |
19 | %{ |
20 | WXSHAPE_IMP_CALLBACKS(wxPyEllipseShape, wxEllipseShape); | |
21 | %} | |
22 | ||
23 | class wxPyEllipseShape : public wxPyShape { | |
24 | public: | |
2b9048c5 | 25 | %pythonAppend wxPyEllipseShape "self._setOORandCallbackInfo(PyEllipseShape)" |
d14a1e28 | 26 | |
e91a9dfc RD |
27 | wxPyEllipseShape(double width = 0.0, double height = 0.0); |
28 | ||
0122b7e3 | 29 | void _setCallbackInfo(PyObject* self, PyObject* _class); |
e91a9dfc RD |
30 | |
31 | void base_OnDraw(wxDC& dc); | |
32 | void base_OnDrawContents(wxDC& dc); | |
33 | void base_OnDrawBranches(wxDC& dc, bool erase = FALSE); | |
34 | void base_OnMoveLinks(wxDC& dc); | |
35 | void base_OnErase(wxDC& dc); | |
36 | void base_OnEraseContents(wxDC& dc); | |
37 | void base_OnHighlight(wxDC& dc); | |
38 | void base_OnLeftClick(double x, double y, int keys = 0, int attachment = 0); | |
39 | void base_OnLeftDoubleClick(double x, double y, int keys = 0, int attachment = 0); | |
40 | void base_OnRightClick(double x, double y, int keys = 0, int attachment = 0); | |
41 | void base_OnSize(double x, double y); | |
dd9f7fea RD |
42 | bool base_OnMovePre(wxDC& dc, double x, double y, double old_x, double old_y, bool display = True); |
43 | void base_OnMovePost(wxDC& dc, double x, double y, double old_x, double old_y, bool display = True); | |
e91a9dfc RD |
44 | void base_OnDragLeft(bool draw, double x, double y, int keys=0, int attachment = 0); |
45 | void base_OnBeginDragLeft(double x, double y, int keys=0, int attachment = 0); | |
46 | void base_OnEndDragLeft(double x, double y, int keys=0, int attachment = 0); | |
47 | void base_OnDragRight(bool draw, double x, double y, int keys=0, int attachment = 0); | |
48 | void base_OnBeginDragRight(double x, double y, int keys=0, int attachment = 0); | |
49 | void base_OnEndDragRight(double x, double y, int keys=0, int attachment = 0); | |
50 | void base_OnDrawOutline(wxDC& dc, double x, double y, double w, double h); | |
51 | void base_OnDrawControlPoints(wxDC& dc); | |
52 | void base_OnEraseControlPoints(wxDC& dc); | |
dd9f7fea | 53 | void base_OnMoveLink(wxDC& dc, bool moveControlPoints = True); |
2348eaee RD |
54 | void base_OnSizingDragLeft(wxPyControlPoint* pt, bool draw, double x, double y, int keys=0, int attachment = 0); |
55 | void base_OnSizingBeginDragLeft(wxPyControlPoint* pt, double x, double y, int keys=0, int attachment = 0); | |
56 | void base_OnSizingEndDragLeft(wxPyControlPoint* pt, double x, double y, int keys=0, int attachment = 0); | |
e91a9dfc RD |
57 | void base_OnBeginSize(double w, double h); |
58 | void base_OnEndSize(double w, double h); | |
59 | // void base_OnChangeAttachment(int attachment, wxPyLineShape* line, wxList& ordering); | |
60 | }; | |
61 | ||
62 | //--------------------------------------------------------------------------- | |
63 | %{ | |
64 | WXSHAPE_IMP_CALLBACKS(wxPyCircleShape, wxCircleShape); | |
65 | %} | |
66 | ||
67 | class wxPyCircleShape : public wxPyEllipseShape { | |
68 | public: | |
2b9048c5 | 69 | %pythonAppend wxPyCircleShape "self._setOORandCallbackInfo(PyCircleShape)" |
d14a1e28 | 70 | |
e91a9dfc RD |
71 | wxPyCircleShape(double width = 0.0); |
72 | ||
0122b7e3 | 73 | void _setCallbackInfo(PyObject* self, PyObject* _class); |
e91a9dfc RD |
74 | |
75 | void base_OnDraw(wxDC& dc); | |
76 | void base_OnDrawContents(wxDC& dc); | |
77 | void base_OnDrawBranches(wxDC& dc, bool erase = FALSE); | |
78 | void base_OnMoveLinks(wxDC& dc); | |
79 | void base_OnErase(wxDC& dc); | |
80 | void base_OnEraseContents(wxDC& dc); | |
81 | void base_OnHighlight(wxDC& dc); | |
82 | void base_OnLeftClick(double x, double y, int keys = 0, int attachment = 0); | |
83 | void base_OnLeftDoubleClick(double x, double y, int keys = 0, int attachment = 0); | |
84 | void base_OnRightClick(double x, double y, int keys = 0, int attachment = 0); | |
85 | void base_OnSize(double x, double y); | |
dd9f7fea RD |
86 | bool base_OnMovePre(wxDC& dc, double x, double y, double old_x, double old_y, bool display = True); |
87 | void base_OnMovePost(wxDC& dc, double x, double y, double old_x, double old_y, bool display = True); | |
e91a9dfc RD |
88 | void base_OnDragLeft(bool draw, double x, double y, int keys=0, int attachment = 0); |
89 | void base_OnBeginDragLeft(double x, double y, int keys=0, int attachment = 0); | |
90 | void base_OnEndDragLeft(double x, double y, int keys=0, int attachment = 0); | |
91 | void base_OnDragRight(bool draw, double x, double y, int keys=0, int attachment = 0); | |
92 | void base_OnBeginDragRight(double x, double y, int keys=0, int attachment = 0); | |
93 | void base_OnEndDragRight(double x, double y, int keys=0, int attachment = 0); | |
94 | void base_OnDrawOutline(wxDC& dc, double x, double y, double w, double h); | |
95 | void base_OnDrawControlPoints(wxDC& dc); | |
96 | void base_OnEraseControlPoints(wxDC& dc); | |
dd9f7fea | 97 | void base_OnMoveLink(wxDC& dc, bool moveControlPoints = True); |
2348eaee RD |
98 | void base_OnSizingDragLeft(wxPyControlPoint* pt, bool draw, double x, double y, int keys=0, int attachment = 0); |
99 | void base_OnSizingBeginDragLeft(wxPyControlPoint* pt, double x, double y, int keys=0, int attachment = 0); | |
100 | void base_OnSizingEndDragLeft(wxPyControlPoint* pt, double x, double y, int keys=0, int attachment = 0); | |
e91a9dfc RD |
101 | void base_OnBeginSize(double w, double h); |
102 | void base_OnEndSize(double w, double h); | |
103 | // void base_OnChangeAttachment(int attachment, wxPyLineShape* line, wxList& ordering); | |
104 | }; | |
d14a1e28 | 105 | |
e91a9dfc RD |
106 | //--------------------------------------------------------------------------- |
107 | //--------------------------------------------------------------------------- | |
d14a1e28 | 108 | |
9416aa89 | 109 | class wxArrowHead : public wxObject { |
e91a9dfc RD |
110 | public: |
111 | wxArrowHead(int type = 0, | |
112 | int end = 0, | |
113 | double size = 0.0, | |
114 | double dist = 0.0, | |
137b5242 | 115 | const wxString& name = wxPyEmptyString, |
e91a9dfc RD |
116 | wxPseudoMetaFile *mf = NULL, |
117 | long arrowId = -1); | |
118 | ~wxArrowHead(); | |
119 | ||
120 | int _GetType(); | |
121 | int GetPosition(); | |
122 | void SetPosition(int pos); | |
123 | double GetXOffset(); | |
124 | double GetYOffset(); | |
125 | double GetSpacing(); | |
126 | double GetSize(); | |
127 | wxString GetName(); | |
128 | void SetXOffset(double x); | |
129 | void SetYOffset(double y); | |
130 | wxPseudoMetaFile *GetMetaFile(); | |
131 | long GetId(); | |
132 | int GetArrowEnd(); | |
133 | double GetArrowSize(); | |
134 | void SetSize(double size); | |
135 | void SetSpacing(double sp); | |
136 | }; | |
137 | //--------------------------------------------------------------------------- | |
138 | %{ | |
139 | WXSHAPE_IMP_CALLBACKS(wxPyLineShape, wxLineShape); | |
140 | %} | |
141 | ||
142 | class wxPyLineShape : public wxPyShape { | |
143 | public: | |
2b9048c5 | 144 | %pythonAppend wxPyLineShape "self._setOORandCallbackInfo(PyLineShape)" |
d14a1e28 | 145 | |
e91a9dfc RD |
146 | wxPyLineShape(); |
147 | ||
0122b7e3 | 148 | void _setCallbackInfo(PyObject* self, PyObject* _class); |
e91a9dfc RD |
149 | |
150 | void AddArrow(int type, int end = ARROW_POSITION_END, | |
151 | double arrowSize = 10.0, double xOffset = 0.0, | |
137b5242 | 152 | const wxString& name = wxPyEmptyString, wxPseudoMetaFile *mf = NULL, |
e91a9dfc RD |
153 | long arrowId = -1); |
154 | ||
155 | //void AddArrowOrdered(wxArrowHead *arrow, wxList& referenceList, int end); | |
d14a1e28 | 156 | %extend { |
e91a9dfc | 157 | void AddArrowOrdered(wxArrowHead *arrow, PyObject* referenceList, int end) { |
d14a1e28 | 158 | wxList* list = wxPy_wxListHelper(referenceList, wxT("wxArrowHead")); |
e91a9dfc RD |
159 | self->AddArrowOrdered(arrow, *list, end); |
160 | delete list; | |
161 | } | |
162 | } | |
163 | bool ClearArrow(const wxString& name); | |
164 | void ClearArrowsAtPosition(int position = -1); | |
165 | void DrawArrow(wxDC& dc, wxArrowHead *arrow, double xOffset, bool proportionalOffset); | |
166 | %name(DeleteArrowHeadId)bool DeleteArrowHead(long arrowId); | |
167 | bool DeleteArrowHead(int position, const wxString& name); | |
168 | bool DeleteLineControlPoint(); | |
169 | void DrawArrows(wxDC& dc); | |
170 | void DrawRegion(wxDC& dc, wxShapeRegion *region, double x, double y); | |
171 | void EraseRegion(wxDC& dc, wxShapeRegion *region, double x, double y); | |
172 | %name(FindArrowHeadId)wxArrowHead * FindArrowHead(long arrowId); | |
173 | wxArrowHead * FindArrowHead(int position, const wxString& name); | |
174 | void FindLineEndPoints(double *OUTPUT, double *OUTPUT, | |
175 | double *OUTPUT, double *OUTPUT); | |
176 | int FindLinePosition(double x, double y); | |
177 | double FindMinimumWidth(); | |
178 | void FindNth(wxPyShape *image, int *OUTPUT, int *OUTPUT, bool incoming); | |
179 | int GetAttachmentFrom(); | |
180 | int GetAttachmentTo(); | |
181 | void GetEnds(double *OUTPUT, double *OUTPUT, double *OUTPUT, double *OUTPUT); | |
182 | wxPyShape * GetFrom(); | |
183 | void GetLabelPosition(int position, double *OUTPUT, double *OUTPUT); | |
1e4a197e | 184 | wxRealPoint * GetNextControlPoint(wxPyShape *shape); |
e91a9dfc RD |
185 | wxPyShape * GetTo(); |
186 | void Initialise(); | |
187 | void InsertLineControlPoint(wxDC* dc); | |
188 | bool IsEnd(wxPyShape *shape); | |
189 | bool IsSpline(); | |
190 | void MakeLineControlPoints(int n); | |
191 | ||
211a46cf | 192 | // inline wxList *GetLineControlPoints() { return m_lineControlPoints; } |
d14a1e28 | 193 | %extend { |
9416aa89 RD |
194 | PyObject* GetLineControlPoints() { |
195 | wxList* list = self->GetLineControlPoints(); | |
d14a1e28 | 196 | return wxPy_ConvertShapeList(list); |
9416aa89 RD |
197 | } |
198 | } | |
211a46cf | 199 | |
e91a9dfc RD |
200 | void SetAttachmentFrom(int fromAttach); |
201 | void SetAttachments(int fromAttach, int toAttach); | |
202 | void SetAttachmentTo(int toAttach); | |
203 | void SetEnds(double x1, double y1, double x2, double y2); | |
204 | void SetFrom(wxPyShape *object); | |
205 | void SetIgnoreOffsets(bool ignore); | |
206 | void SetSpline(bool spline); | |
207 | void SetTo(wxPyShape *object); | |
208 | void Straighten(wxDC* dc = NULL); | |
209 | void Unlink(); | |
210 | ||
211 | ||
e7726f5e RD |
212 | void SetAlignmentOrientation(bool isEnd, bool isHoriz); |
213 | void SetAlignmentType(bool isEnd, int alignType); | |
214 | bool GetAlignmentOrientation(bool isEnd); | |
215 | int GetAlignmentType(bool isEnd); | |
216 | int GetAlignmentStart() const; | |
217 | int GetAlignmentEnd() const; | |
218 | ||
e91a9dfc RD |
219 | void base_OnDraw(wxDC& dc); |
220 | void base_OnDrawContents(wxDC& dc); | |
221 | void base_OnDrawBranches(wxDC& dc, bool erase = FALSE); | |
222 | void base_OnMoveLinks(wxDC& dc); | |
223 | void base_OnErase(wxDC& dc); | |
224 | void base_OnEraseContents(wxDC& dc); | |
225 | void base_OnHighlight(wxDC& dc); | |
226 | void base_OnLeftClick(double x, double y, int keys = 0, int attachment = 0); | |
227 | void base_OnLeftDoubleClick(double x, double y, int keys = 0, int attachment = 0); | |
228 | void base_OnRightClick(double x, double y, int keys = 0, int attachment = 0); | |
229 | void base_OnSize(double x, double y); | |
dd9f7fea RD |
230 | bool base_OnMovePre(wxDC& dc, double x, double y, double old_x, double old_y, bool display = True); |
231 | void base_OnMovePost(wxDC& dc, double x, double y, double old_x, double old_y, bool display = True); | |
e91a9dfc RD |
232 | void base_OnDragLeft(bool draw, double x, double y, int keys=0, int attachment = 0); |
233 | void base_OnBeginDragLeft(double x, double y, int keys=0, int attachment = 0); | |
234 | void base_OnEndDragLeft(double x, double y, int keys=0, int attachment = 0); | |
235 | void base_OnDragRight(bool draw, double x, double y, int keys=0, int attachment = 0); | |
236 | void base_OnBeginDragRight(double x, double y, int keys=0, int attachment = 0); | |
237 | void base_OnEndDragRight(double x, double y, int keys=0, int attachment = 0); | |
238 | void base_OnDrawOutline(wxDC& dc, double x, double y, double w, double h); | |
239 | void base_OnDrawControlPoints(wxDC& dc); | |
240 | void base_OnEraseControlPoints(wxDC& dc); | |
dd9f7fea | 241 | void base_OnMoveLink(wxDC& dc, bool moveControlPoints = True); |
2348eaee RD |
242 | void base_OnSizingDragLeft(wxPyControlPoint* pt, bool draw, double x, double y, int keys=0, int attachment = 0); |
243 | void base_OnSizingBeginDragLeft(wxPyControlPoint* pt, double x, double y, int keys=0, int attachment = 0); | |
244 | void base_OnSizingEndDragLeft(wxPyControlPoint* pt, double x, double y, int keys=0, int attachment = 0); | |
e91a9dfc RD |
245 | void base_OnBeginSize(double w, double h); |
246 | void base_OnEndSize(double w, double h); | |
247 | // void base_OnChangeAttachment(int attachment, wxPyLineShape* line, wxList& ordering); | |
248 | }; | |
249 | ||
250 | //--------------------------------------------------------------------------- | |
251 | %{ | |
252 | WXSHAPE_IMP_CALLBACKS(wxPyPolygonShape, wxPolygonShape); | |
253 | %} | |
254 | ||
255 | class wxPyPolygonShape : public wxPyShape { | |
256 | public: | |
2b9048c5 | 257 | %pythonAppend wxPyPolygonShape "self._setOORandCallbackInfo(PyPolygonShape)" |
d14a1e28 | 258 | |
e91a9dfc RD |
259 | wxPyPolygonShape(); |
260 | ||
0122b7e3 | 261 | void _setCallbackInfo(PyObject* self, PyObject* _class); |
e91a9dfc RD |
262 | |
263 | ||
264 | // void Create(wxList* points); | |
d14a1e28 | 265 | %extend { |
e91a9dfc RD |
266 | PyObject* Create(PyObject* points) { |
267 | wxList* list = wxPy_wxRealPoint_ListHelper(points); | |
268 | if (list) { | |
269 | self->Create(list); | |
270 | Py_INCREF(Py_None); | |
271 | return Py_None; | |
272 | } | |
273 | else return NULL; | |
274 | } | |
275 | } | |
276 | ||
277 | void AddPolygonPoint(int pos = 0); | |
278 | void CalculatePolygonCentre(); | |
279 | void DeletePolygonPoint(int pos = 0); | |
280 | ||
281 | // wxList* GetPoints(); | |
d14a1e28 | 282 | %extend { |
e91a9dfc RD |
283 | PyObject* GetPoints() { |
284 | wxList* list = self->GetPoints(); | |
7b443969 RD |
285 | PyObject* pyList; |
286 | PyObject* pyObj; | |
287 | wxObject* wxObj; | |
288 | wxNode* node = list->GetFirst(); | |
289 | ||
da32eb53 | 290 | bool blocked = wxPyBeginBlockThreads(); |
7b443969 RD |
291 | pyList = PyList_New(0); |
292 | while (node) { | |
293 | wxObj = node->GetData(); | |
294 | pyObj = wxPyConstructObject(wxObj, wxT("wxRealPoint"), 0); | |
295 | PyList_Append(pyList, pyObj); | |
296 | node = node->GetNext(); | |
297 | } | |
da32eb53 | 298 | wxPyEndBlockThreads(blocked); |
7b443969 | 299 | return pyList; |
e91a9dfc | 300 | } |
e7726f5e RD |
301 | |
302 | PyObject* GetOriginalPoints() { | |
303 | wxList* list = self->GetOriginalPoints(); | |
304 | PyObject* pyList; | |
305 | PyObject* pyObj; | |
306 | wxObject* wxObj; | |
307 | wxNode* node = list->GetFirst(); | |
308 | ||
da32eb53 | 309 | bool blocked = wxPyBeginBlockThreads(); |
e7726f5e RD |
310 | pyList = PyList_New(0); |
311 | while (node) { | |
312 | wxObj = node->GetData(); | |
313 | pyObj = wxPyConstructObject(wxObj, wxT("wxRealPoint"), 0); | |
314 | PyList_Append(pyList, pyObj); | |
315 | node = node->GetNext(); | |
316 | } | |
da32eb53 | 317 | wxPyEndBlockThreads(blocked); |
e7726f5e RD |
318 | return pyList; |
319 | } | |
e91a9dfc RD |
320 | } |
321 | ||
e7726f5e RD |
322 | double GetOriginalWidth() const; |
323 | double GetOriginalHeight() const; | |
324 | ||
325 | void SetOriginalWidth(double w); | |
326 | void SetOriginalHeight(double h); | |
327 | ||
e91a9dfc RD |
328 | void UpdateOriginalPoints(); |
329 | ||
e91a9dfc RD |
330 | void base_OnDraw(wxDC& dc); |
331 | void base_OnDrawContents(wxDC& dc); | |
332 | void base_OnDrawBranches(wxDC& dc, bool erase = FALSE); | |
333 | void base_OnMoveLinks(wxDC& dc); | |
334 | void base_OnErase(wxDC& dc); | |
335 | void base_OnEraseContents(wxDC& dc); | |
336 | void base_OnHighlight(wxDC& dc); | |
337 | void base_OnLeftClick(double x, double y, int keys = 0, int attachment = 0); | |
338 | void base_OnLeftDoubleClick(double x, double y, int keys = 0, int attachment = 0); | |
339 | void base_OnRightClick(double x, double y, int keys = 0, int attachment = 0); | |
340 | void base_OnSize(double x, double y); | |
dd9f7fea RD |
341 | bool base_OnMovePre(wxDC& dc, double x, double y, double old_x, double old_y, bool display = True); |
342 | void base_OnMovePost(wxDC& dc, double x, double y, double old_x, double old_y, bool display = True); | |
e91a9dfc RD |
343 | void base_OnDragLeft(bool draw, double x, double y, int keys=0, int attachment = 0); |
344 | void base_OnBeginDragLeft(double x, double y, int keys=0, int attachment = 0); | |
345 | void base_OnEndDragLeft(double x, double y, int keys=0, int attachment = 0); | |
346 | void base_OnDragRight(bool draw, double x, double y, int keys=0, int attachment = 0); | |
347 | void base_OnBeginDragRight(double x, double y, int keys=0, int attachment = 0); | |
348 | void base_OnEndDragRight(double x, double y, int keys=0, int attachment = 0); | |
349 | void base_OnDrawOutline(wxDC& dc, double x, double y, double w, double h); | |
350 | void base_OnDrawControlPoints(wxDC& dc); | |
351 | void base_OnEraseControlPoints(wxDC& dc); | |
dd9f7fea | 352 | void base_OnMoveLink(wxDC& dc, bool moveControlPoints = True); |
2348eaee RD |
353 | void base_OnSizingDragLeft(wxPyControlPoint* pt, bool draw, double x, double y, int keys=0, int attachment = 0); |
354 | void base_OnSizingBeginDragLeft(wxPyControlPoint* pt, double x, double y, int keys=0, int attachment = 0); | |
355 | void base_OnSizingEndDragLeft(wxPyControlPoint* pt, double x, double y, int keys=0, int attachment = 0); | |
e91a9dfc RD |
356 | void base_OnBeginSize(double w, double h); |
357 | void base_OnEndSize(double w, double h); | |
358 | // void base_OnChangeAttachment(int attachment, wxPyLineShape* line, wxList& ordering); | |
359 | }; | |
360 | //--------------------------------------------------------------------------- | |
361 | %{ | |
362 | WXSHAPE_IMP_CALLBACKS(wxPyTextShape, wxTextShape); | |
363 | %} | |
364 | ||
365 | class wxPyTextShape : public wxPyRectangleShape { | |
366 | public: | |
2b9048c5 | 367 | %pythonAppend wxPyTextShape "self._setOORandCallbackInfo(PyTextShape)" |
d14a1e28 | 368 | |
e91a9dfc RD |
369 | wxPyTextShape(double width = 0.0, double height = 0.0); |
370 | ||
0122b7e3 | 371 | void _setCallbackInfo(PyObject* self, PyObject* _class); |
e91a9dfc RD |
372 | |
373 | void base_OnDelete(); | |
374 | void base_OnDraw(wxDC& dc); | |
375 | void base_OnDrawContents(wxDC& dc); | |
376 | void base_OnDrawBranches(wxDC& dc, bool erase = FALSE); | |
377 | void base_OnMoveLinks(wxDC& dc); | |
378 | void base_OnErase(wxDC& dc); | |
379 | void base_OnEraseContents(wxDC& dc); | |
380 | void base_OnHighlight(wxDC& dc); | |
381 | void base_OnLeftClick(double x, double y, int keys = 0, int attachment = 0); | |
382 | void base_OnLeftDoubleClick(double x, double y, int keys = 0, int attachment = 0); | |
383 | void base_OnRightClick(double x, double y, int keys = 0, int attachment = 0); | |
384 | void base_OnSize(double x, double y); | |
dd9f7fea RD |
385 | bool base_OnMovePre(wxDC& dc, double x, double y, double old_x, double old_y, bool display = True); |
386 | void base_OnMovePost(wxDC& dc, double x, double y, double old_x, double old_y, bool display = True); | |
e91a9dfc RD |
387 | void base_OnDragLeft(bool draw, double x, double y, int keys=0, int attachment = 0); |
388 | void base_OnBeginDragLeft(double x, double y, int keys=0, int attachment = 0); | |
389 | void base_OnEndDragLeft(double x, double y, int keys=0, int attachment = 0); | |
390 | void base_OnDragRight(bool draw, double x, double y, int keys=0, int attachment = 0); | |
391 | void base_OnBeginDragRight(double x, double y, int keys=0, int attachment = 0); | |
392 | void base_OnEndDragRight(double x, double y, int keys=0, int attachment = 0); | |
393 | void base_OnDrawOutline(wxDC& dc, double x, double y, double w, double h); | |
394 | void base_OnDrawControlPoints(wxDC& dc); | |
395 | void base_OnEraseControlPoints(wxDC& dc); | |
dd9f7fea | 396 | void base_OnMoveLink(wxDC& dc, bool moveControlPoints = True); |
2348eaee RD |
397 | void base_OnSizingDragLeft(wxPyControlPoint* pt, bool draw, double x, double y, int keys=0, int attachment = 0); |
398 | void base_OnSizingBeginDragLeft(wxPyControlPoint* pt, double x, double y, int keys=0, int attachment = 0); | |
399 | void base_OnSizingEndDragLeft(wxPyControlPoint* pt, double x, double y, int keys=0, int attachment = 0); | |
e91a9dfc RD |
400 | void base_OnBeginSize(double w, double h); |
401 | void base_OnEndSize(double w, double h); | |
402 | // void base_OnChangeAttachment(int attachment, wxPyLineShape* line, wxList& ordering); | |
403 | ||
404 | }; | |
405 | //--------------------------------------------------------------------------- |