diff mde/gui/widget/layout.d @ 65:891211f034f2

Changes to widgets: widgets may now get strings as creation data. Strings for TextWidgets can be set in files (in a temporary mannor).
author Diggory Hardy <diggory.hardy@gmail.com>
date Sun, 29 Jun 2008 15:40:37 +0100
parents d43523ed4b62
children f54ae4fc2b2f
line wrap: on
line diff
--- a/mde/gui/widget/layout.d	Sun Jun 29 11:55:55 2008 +0100
+++ b/mde/gui/widget/layout.d	Sun Jun 29 15:40:37 2008 +0100
@@ -38,6 +38,12 @@
 class GridLayoutWidget : Widget
 {
     //BEGIN Creation & saving
+    /** Constructor for a grid layout widget.
+     *
+     * Widget uses the initialisation data:
+     * [widgetID, r, c, w11, w12, ..., w1c, ..., wr1, ..., wrc]
+     * where r and c are the number of rows and columns, and wij is the ID (from parent Window's
+     * list) for the widget in row i and column j. The number of parameters must be r*c + 3. */
     this (IWindow wind, int[] data) {
         // Get grid size and check data
         // Check sufficient data for rows, cols, and at least one widget: