comparison 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
comparison
equal deleted inserted replaced
33:6886402c1545 34:6b4116e6355c
67 if (b) { 67 if (b) {
68 logger.info ("Quiting..."); 68 logger.info ("Quiting...");
69 global.run = false; 69 global.run = false;
70 } 70 }
71 } ); 71 } );
72
73 // Aught to be added by the gui, but it doesn't know if input exists then.
72 global.input.addMouseClickCallback(&gui.clickEvent); 74 global.input.addMouseClickCallback(&gui.clickEvent);
75 global.input.addMouseMotionCallback(&gui.motionEvent);
73 } catch (Exception e) { 76 } catch (Exception e) {
74 logger.fatal ("initInput failed: " ~ e.msg); 77 logger.fatal ("initInput failed: " ~ e.msg);
75 setInitFailure; 78 setInitFailure;
76 } 79 }
77 } 80 }