Mercurial > projects > mde
comparison mde/gui/widget/createWidget.d @ 45:0fd51d2c6c8a
Several changes to resising windows and layout widgets. This commit still has some bugs.
Moved the implementable widgets from mde.gui.widget.Widget to miscWidgets, leaving base widgets in Widget.
Rewrote some of GridLayoutWidget's implementation. Made many operations general to work for either columns or rows. Some optimisations were intended but ended up being removed due to problems.
Allowed layout's to resize from either direction (only with window resizes).
committer: Diggory Hardy <diggory.hardy@gmail.com>
author | Diggory Hardy <diggory.hardy@gmail.com> |
---|---|
date | Thu, 22 May 2008 11:34:09 +0100 |
parents | 07bd1a09e161 |
children | 672b6b162a36 |
comparison
equal
deleted
inserted
replaced
44:07bd1a09e161 | 45:0fd51d2c6c8a |
---|---|
14 along with this program. If not, see <http://www.gnu.org/licenses/>. */ | 14 along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
15 | 15 |
16 /// GUI Widget module. | 16 /// GUI Widget module. |
17 module mde.gui.widget.createWidget; | 17 module mde.gui.widget.createWidget; |
18 | 18 |
19 import mde.gui.widget.Ifaces; | |
20 import mde.gui.exception : WidgetDataException; | |
21 | |
19 // Widgets to create: | 22 // Widgets to create: |
20 import mde.gui.widget.layout; | 23 import mde.gui.widget.layout; |
21 import mde.gui.widget.Widget; | 24 import mde.gui.widget.miscWidgets; |
22 | |
23 import mde.gui.exception : WidgetDataException; | |
24 | 25 |
25 /** Create a widget of type data[0] (see enum WIDGET_TYPES) for _window window, with initialisation | 26 /** Create a widget of type data[0] (see enum WIDGET_TYPES) for _window window, with initialisation |
26 * data [1..$]. */ | 27 * data [1..$]. */ |
27 IWidget createWidget (IWindow window, int[] data) | 28 IWidget createWidget (IWindow window, int[] data) |
28 in { | 29 in { |