diff mde/gui/widget/Ifaces.d @ 126:c9843fbaac88

Dynamic minimal size changing improved; works over layouts sharing alignment. EnumContent sub-contents use EnumValueContent instead of BoolContent; fixes a few small bugs. EnumContent substrings get translated (bug fixed). The widget manager no longer attempts to set widget sizes smaller than their minimals, even though some will not be shown. SwitchWidget: has fixed sizableness now.
author Diggory Hardy <diggory.hardy@gmail.com>
date Thu, 08 Jan 2009 13:05:44 +0000
parents 3e648bc53bde
children ad91de8867a0
line wrap: on
line diff
--- a/mde/gui/widget/Ifaces.d	Tue Jan 06 16:54:04 2009 +0000
+++ b/mde/gui/widget/Ifaces.d	Thu Jan 08 13:05:44 2009 +0000
@@ -46,16 +46,15 @@
     /** Child widgets should call this on their parent if their minimal size changes, since they
      * cannot resize themselves.
      * 
-     * Parents should resize children calling this when the size is increased, and when
-     * decreased and the widget is not resizable (but should not do so when it is).
+     * Children may depend on their parent resizing them if necessary to keep width valid.
+     * Widgets may also depend on setPosition being called afterwards.
      * 
      * Params:
      *	widget	= The child widget calling the function
      *	mw	= New minimal width
      *	mh	= New minimal height */
-    //FIXME: set rules for setting size: i.e. can widget rely on parent (ulimately mgr) setting
-    // a new size?
-    void minSizeChange (IChildWidget widget, wdim mw, wdim mh);
+    void minWChange (IChildWidget widget, wdim mw);
+    void minHChange (IChildWidget widget, wdim mh);	/// ditto
 }