diff mde/gui/types.d @ 166:55667d048c31

Made content displayable while being dragged.
author Diggory Hardy <diggory.hardy@gmail.com>
date Sun, 21 Jun 2009 12:19:18 +0200
parents 42e241e7be3e
children
line wrap: on
line diff
--- a/mde/gui/types.d	Sun Jun 07 16:20:16 2009 +0200
+++ b/mde/gui/types.d	Sun Jun 21 12:19:18 2009 +0200
@@ -60,6 +60,13 @@
     int[]    ints;      /// Integer data
     char[][] strings;   /// char[] data
     
+    static WidgetData opCall (int[] i = [], char[][] s = []) {
+	WidgetData ret;
+	ret.ints = i;
+	ret.strings = s;
+	return ret;
+    }
+    
     /** For creating a DebugWidget. */
     static WidgetData dbg = { ints : [0xF] };   // 0xf is current code for debug widget
 }