diff mde/scheduler/init2.d @ 34:6b4116e6355c

Work on the Gui: some of the framework for drag & drop. Also made Window an IWidget. Implemented getWidget(x,y) to find the widget under this location for IWidgets (but not Gui). Made Window an IWidget and made it work a little more similarly to widgets. Implemented callbacks on the Gui for mouse events (enabling drag & drop, etc.). committer: Diggory Hardy <diggory.hardy@gmail.com>
author Diggory Hardy <diggory.hardy@gmail.com>
date Fri, 02 May 2008 16:03:52 +0100
parents 6886402c1545
children 57d000574d75
line wrap: on
line diff
--- a/mde/scheduler/init2.d	Thu May 01 10:55:04 2008 +0100
+++ b/mde/scheduler/init2.d	Fri May 02 16:03:52 2008 +0100
@@ -69,7 +69,10 @@
                 global.run = false;
             }
         } );
+        
+        // Aught to be added by the gui, but it doesn't know if input exists then.
         global.input.addMouseClickCallback(&gui.clickEvent);
+        global.input.addMouseMotionCallback(&gui.motionEvent);
     } catch (Exception e) {
         logger.fatal ("initInput failed: " ~ e.msg);
         setInitFailure;