Mercurial > projects > mde
diff mde/gui/WidgetManager.d @ 86:79d816b3e2d2
New InitStage system, Screen & Screen.Drawable, separate testing and guiDemo binaries.
This (and the previous) commit are the result of several quite significant changes to mde. All the unittests run, but it hasn't had a huge amount of testing so don't be surprised if bugs show up.
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Fri, 12 Sep 2008 17:36:14 +0100 |
parents | 56c0ddd90193 |
children | b525ff28774b |
line wrap: on
line diff
--- a/mde/gui/WidgetManager.d Thu Sep 11 11:33:51 2008 +0100 +++ b/mde/gui/WidgetManager.d Fri Sep 12 17:36:14 2008 +0100 @@ -50,7 +50,7 @@ * * Aside from the IWidgetManager methods, this class should be thread-safe. *************************************************************************************************/ -class WidgetManager : WidgetLoader, Screen.Drawable { +class WidgetManager : WidgetLoader, Screen.IDrawable { /** Construct a new widget manager. * * params: @@ -74,7 +74,6 @@ /** Draw the gui. */ void draw() { - debug logger.trace ("drawing; w,h = {},{}",w,h); synchronized(mutex) if (child) child.draw; @@ -117,7 +116,7 @@ } - void sizeEvent (int nw, int nh) { // Drawable function + void sizeEvent (int nw, int nh) { // IDrawable function mutex.lock; scope(exit) mutex.unlock;