Re: [Vala] GBinding support?



Am 21.06.2010 05:51, Matias De la Puente wrote:
This stuff is great! very helpful for my project :)

My suggestions:

public class foo : Object
{
      public int x { set; get; }
      public int y { set; get; }
}

public class bar : Object
{
      private Foo foo = new Foo ();
      
      //One possibility
      public int x { set; get; } as foo.x;
      public int y { private set; get; } as foo.y;    //one direction
      
      //Another possibility
      public int x { set; get; } bind foo.x;
      public int y { private set; get; } bind foo.y;  //one direction
}

Matias

And what if you want to bind to a property of an object not yet instantiated
at construction time?


Best regards,

Frederik



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]