comparison mde/gui/widget/Widget.d @ 123:d3b2cefd46c9

minSizeChange() allows run-time changes to widgets' minimal size (except for shrinking in a GridLayoutWidget). FloatingAreaWidget: correct resize limiters AStringContent: allows space and ignores modifier keys
author Diggory Hardy <diggory.hardy@gmail.com>
date Sun, 04 Jan 2009 17:35:15 +0000
parents 5b37d0400732
children c9843fbaac88
comparison
equal deleted inserted replaced
122:f96e8d18c00a 123:d3b2cefd46c9
54 debug assert (id !is null && parent !is null, "recursionCheck called before parent and id set"); 54 debug assert (id !is null && parent !is null, "recursionCheck called before parent and id set");
55 if (a is id) 55 if (a is id)
56 throw new GuiException ("Infite recursion of "~a); 56 throw new GuiException ("Infite recursion of "~a);
57 parent.recursionCheck (a); 57 parent.recursionCheck (a);
58 } 58 }
59
60 // Parent widgets need to implement this.
61 override void minSizeChange (IChildWidget widget, wdim mw, wdim mh) {}
59 //END IParentWidget methods 62 //END IParentWidget methods
60 63
61 //BEGIN Load and save 64 //BEGIN Load and save
62 // Base this() for child Widgets. 65 // Base this() for child Widgets.
63 protected this (IWidgetManager mgr, IParentWidget parent, widgetID id) { 66 protected this (IWidgetManager mgr, IParentWidget parent, widgetID id) {