comparison mde/gui/renderer/SimpleRenderer.d @ 80:ea58f277f487

Gui reorganization and changes; partial implementation of floating widgets. Moved contents of mde/gui/WidgetData.d elsewhere; new gui/WidgetDataSet.d and gui/types.d modules. Changes to widget/createWidget.d Partially implemented FloatingAreaWidget to provide an area for floating "window" widgets. New DebugWidget and some uses of it (e.g. bad widget data). Decoupled OptionChanges from Options.
author Diggory Hardy <diggory.hardy@gmail.com>
date Thu, 07 Aug 2008 11:25:27 +0100
parents d43523ed4b62
children 4d5d53e4f881
comparison
equal deleted inserted replaced
79:61ea26abe4dd 80:ea58f277f487
77 wdim layoutSpacing () { 77 wdim layoutSpacing () {
78 return 4; 78 return 4;
79 } 79 }
80 80
81 81
82 //FIXME - make these do something
83 void restrict (wdim x, wdim y, wdim w, wdim h) {}
84 void relax () {}
85
82 void drawWindow (wdim x, wdim y, wdim w, wdim h) { 86 void drawWindow (wdim x, wdim y, wdim w, wdim h) {
83 gl.setColor (0f, 0f, .7f); 87 gl.setColor (0f, 0f, .7f);
84 gl.drawBox (x,y, w,h); 88 gl.drawBox (x,y, w,h);
85 89
86 gl.setColor (0f, 0f, 1f); 90 gl.setColor (0f, 0f, 1f);