diff mde/content/IContent.d @ 162:2476790223b8

First drag and drop support: can drag from AStringContentWidget to any content editable. No visual feedback while dragging.
author Diggory Hardy <diggory.hardy@gmail.com>
date Fri, 22 May 2009 19:59:22 +0200
parents 9f035cd139c6
children 24d77c52243f
line wrap: on
line diff
--- a/mde/content/IContent.d	Thu May 21 22:15:40 2009 +0200
+++ b/mde/content/IContent.d	Fri May 22 19:59:22 2009 +0200
@@ -40,5 +40,12 @@
     *  $(TR $(TD other) $(TD null))
     *  ) */
     char[] toString (uint i);
+    
+    /** Generic way to set content value.
+     *
+     * If cont's type is compatible, the method should set its instance's
+     * value to that of cont and return true, otherwise it should return false.
+     */
+    bool setContent (IContent);
 }