Mercurial > projects > mde
comparison 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 |
comparison
equal
deleted
inserted
replaced
165:bb2f1a76346d | 166:55667d048c31 |
---|---|
58 struct WidgetData | 58 struct WidgetData |
59 { | 59 { |
60 int[] ints; /// Integer data | 60 int[] ints; /// Integer data |
61 char[][] strings; /// char[] data | 61 char[][] strings; /// char[] data |
62 | 62 |
63 static WidgetData opCall (int[] i = [], char[][] s = []) { | |
64 WidgetData ret; | |
65 ret.ints = i; | |
66 ret.strings = s; | |
67 return ret; | |
68 } | |
69 | |
63 /** For creating a DebugWidget. */ | 70 /** For creating a DebugWidget. */ |
64 static WidgetData dbg = { ints : [0xF] }; // 0xf is current code for debug widget | 71 static WidgetData dbg = { ints : [0xF] }; // 0xf is current code for debug widget |
65 } | 72 } |