]> O.S.I.I.S - jp/crow.git/commitdiff
add IBindable interface to base GraphicObject
authorjp <jp_bruyere@hotmail.com>
Fri, 1 Apr 2016 09:13:09 +0000 (11:13 +0200)
committerjp <jp_bruyere@hotmail.com>
Fri, 1 Apr 2016 09:13:09 +0000 (11:13 +0200)
src/GraphicObjects/GraphicObject.cs

index c526e9096e4aeebe128985885c57fa96b216cb03..a6ed78071fe8a34f2e3454317b9e15316f2104c2 100644 (file)
@@ -12,14 +12,22 @@ using System.IO;
 
 namespace Crow
 {
-       public class GraphicObject : IXmlSerializable, ILayoutable, IValueChange, ICloneable
+       public class GraphicObject : IXmlSerializable, ILayoutable, IValueChange, ICloneable, IBindable
        {
+               #region IBindable implementation
+               List<Binding> bindings = new List<Binding> ();
+               public List<Binding> Bindings {
+                       get { return bindings; }
+               }
+
+               #endregion
+
                #if DEBUG_LAYOUTING
                internal static ulong currentUid = 0;
                internal ulong uid = 0;
                #endif
 
-               internal List<Binding> Bindings = new List<Binding> ();
+
                internal int layoutingTries = 0;
 
                Rectangles clipping = new Rectangles();