DALi C# binding - Write pure C# Color & Position classes and use typemaps to do the...
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / SWIG / events / button-event.i
index bfef5ad..f7e8f3f 100644 (file)
@@ -312,6 +312,183 @@ public class StateChangedEventArgs : EventArgs
     return ret;
   }
 
+
+/* Properties earlier added by Ruby Script */
+
+  public bool Disabled
+  {
+    get
+    {
+      bool temp = false;
+      GetProperty( Button.Property.DISABLED).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Button.Property.DISABLED, new Dali.Property.Value( value ) );
+    }
+  }
+  public bool AutoRepeating
+  {
+    get
+    {
+      bool temp = false;
+      GetProperty( Button.Property.AUTO_REPEATING).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Button.Property.AUTO_REPEATING, new Dali.Property.Value( value ) );
+    }
+  }
+  public float InitialAutoRepeatingDelay
+  {
+    get
+    {
+      float temp = 0.0f;
+      GetProperty( Button.Property.INITIAL_AUTO_REPEATING_DELAY).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Button.Property.INITIAL_AUTO_REPEATING_DELAY, new Dali.Property.Value( value ) );
+    }
+  }
+  public float NextAutoRepeatingDelay
+  {
+    get
+    {
+      float temp = 0.0f;
+      GetProperty( Button.Property.NEXT_AUTO_REPEATING_DELAY).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Button.Property.NEXT_AUTO_REPEATING_DELAY, new Dali.Property.Value( value ) );
+    }
+  }
+  public bool Togglable
+  {
+    get
+    {
+      bool temp = false;
+      GetProperty( Button.Property.TOGGLABLE).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Button.Property.TOGGLABLE, new Dali.Property.Value( value ) );
+    }
+  }
+  public bool Selected
+  {
+    get
+    {
+      bool temp = false;
+      GetProperty( Button.Property.SELECTED).Get( ref temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Button.Property.SELECTED, new Dali.Property.Value( value ) );
+    }
+  }
+  public string UnselectedStateImage
+  {
+    get
+    {
+      string temp;
+      GetProperty( Button.Property.UNSELECTED_STATE_IMAGE).Get( out temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Button.Property.UNSELECTED_STATE_IMAGE, new Dali.Property.Value( value ) );
+    }
+  }
+  public string SelectedStateImage
+  {
+    get
+    {
+      string temp;
+      GetProperty( Button.Property.SELECTED_STATE_IMAGE).Get( out temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Button.Property.SELECTED_STATE_IMAGE, new Dali.Property.Value( value ) );
+    }
+  }
+  public string DisabledStateImage
+  {
+    get
+    {
+      string temp;
+      GetProperty( Button.Property.DISABLED_STATE_IMAGE).Get( out temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Button.Property.DISABLED_STATE_IMAGE, new Dali.Property.Value( value ) );
+    }
+  }
+  public Dali.CSharp.Color UnselectedColor
+  {
+    get
+    {
+      Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
+      GetProperty( Button.Property.UNSELECTED_COLOR).Get(  temp );
+      Dali.CSharp.Color ret = new Dali.CSharp.Color(temp.r, temp.g, temp.b, temp.a);
+      return ret;
+    }
+    set
+    {
+      SetProperty( Button.Property.UNSELECTED_COLOR, new Dali.Property.Value( value ) );
+    }
+  }
+  public Dali.CSharp.Color SelectedColor
+  {
+    get
+    {
+      Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
+      GetProperty( Button.Property.SELECTED_COLOR).Get(  temp );
+      Dali.CSharp.Color ret = new Dali.CSharp.Color(temp.r, temp.g, temp.b, temp.a);
+      return ret;
+    }
+    set
+    {
+      SetProperty( Button.Property.SELECTED_COLOR, new Dali.Property.Value( value ) );
+    }
+  }
+  public Dali.Property.Map Label
+  {
+    get
+    {
+      Dali.Property.Map temp = new Dali.Property.Map();
+      GetProperty( Button.Property.LABEL).Get(  temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Button.Property.LABEL, new Dali.Property.Value( value ) );
+    }
+  }
+  public string LabelText
+  {
+    get
+    {
+      string temp;
+      GetProperty( Button.Property.LABEL_TEXT).Get( out temp );
+      return temp;
+    }
+    set
+    {
+      SetProperty( Button.Property.LABEL_TEXT, new Dali.Property.Value( value ) );
+    }
+  }
+
+/* Properties ends */
+
 %}
 %enddef