Mercurial > projects > mde
comparison mde/gui/widget/Widget.d @ 76:65780e0e48e6
Re-enabled click event passing in the gui to make ButtonWidget work.
Bugfix (pass void* not class reference).
Change to allow compilation with dmd 1.027 (don't use DefaultData's Arg!() template).
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Mon, 28 Jul 2008 18:49:18 +0100 |
parents | 25cb7420dc91 |
children | 3dfd934100f7 |
comparison
equal
deleted
inserted
replaced
75:25cb7420dc91 | 76:65780e0e48e6 |
---|---|
75 //END Size and position | 75 //END Size and position |
76 | 76 |
77 //BEGIN Events | 77 //BEGIN Events |
78 /* This method is only called when the location is over this widget; hence for all widgets | 78 /* This method is only called when the location is over this widget; hence for all widgets |
79 * without children this method is valid. */ | 79 * without children this method is valid. */ |
80 IWidget getWidget (wdim,wdim) { | 80 IChildWidget getWidget (wdim,wdim) { |
81 return this; | 81 return this; |
82 } | 82 } |
83 | 83 |
84 /* Dummy event method (suitable for all widgets which don't respond to events). */ | 84 /* Dummy event method (suitable for all widgets which don't respond to events). */ |
85 void clickEvent (wdabs cx, wdabs cy, ubyte b, bool state) {} | 85 void clickEvent (wdabs cx, wdabs cy, ubyte b, bool state) {} |