Mercurial > projects > mde
comparison mde/gui/widget/Floating.d @ 174:3d58adc17d20
Temporary commit to allow backup
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Mon, 31 Aug 2009 13:54:23 +0200 |
parents | a1ba9157510e |
children | af40e9679436 |
comparison
equal
deleted
inserted
replaced
173:a1ba9157510e | 174:3d58adc17d20 |
---|---|
224 } | 224 } |
225 } | 225 } |
226 } | 226 } |
227 return 0; | 227 return 0; |
228 } | 228 } |
229 void dragMotion (wdabs cx, wdabs cy, IChildWidget) { | 229 override void dragMotion (wdabs cx, wdabs cy, IChildWidget) { |
230 if (resizeType == RESIZE.NONE) { | 230 if (resizeType == RESIZE.NONE) { |
231 with (sWData[active]) { | 231 with (sWData[active]) { |
232 x = cx-xDrag; | 232 x = cx-xDrag; |
233 y = cy-yDrag; | 233 y = cy-yDrag; |
234 | 234 |
286 subWidgets[active].setPosition (this.x + x + border.x1, this.y + y + border.y1); | 286 subWidgets[active].setPosition (this.x + x + border.x1, this.y + y + border.y1); |
287 } | 287 } |
288 mgr.requestRedraw; | 288 mgr.requestRedraw; |
289 } | 289 } |
290 } | 290 } |
291 bool dragRelease (wdabs, wdabs, IChildWidget) { | 291 override bool dragRelease (wdabs, wdabs, IChildWidget) { |
292 return true; // we've handled the up-click | 292 return true; // we've handled the up-click |
293 } | 293 } |
294 | 294 |
295 protected: | 295 protected: |
296 /** Return the index of the floating object under (cx,cy). If no widget is, | 296 /** Return the index of the floating object under (cx,cy). If no widget is, |