Added C# binding for properties in devel-api
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / SWIG / events / button-event.i
index f7e8f3f..7dbf6af 100644 (file)
@@ -312,183 +312,159 @@ public class StateChangedEventArgs : EventArgs
     return ret;
   }
 
-
-/* Properties earlier added by Ruby Script */
-
-  public bool Disabled
+  public Dali.Property.Map UnselectedVisual
   {
     get
     {
-      bool temp = false;
-      GetProperty( Button.Property.DISABLED).Get( ref temp );
+      Dali.Property.Map temp = new Dali.Property.Map();
+      GetProperty( Button.Property.UNSELECTED_VISUAL).Get(  temp );
       return temp;
     }
     set
     {
-      SetProperty( Button.Property.DISABLED, new Dali.Property.Value( value ) );
+      SetProperty( Button.Property.UNSELECTED_VISUAL, new Dali.Property.Value( value ) );
     }
   }
-  public bool AutoRepeating
+
+  public Dali.Property.Map SelectedVisual
   {
     get
     {
-      bool temp = false;
-      GetProperty( Button.Property.AUTO_REPEATING).Get( ref temp );
+      Dali.Property.Map temp = new Dali.Property.Map();
+      GetProperty( Button.Property.SELECTED_VISUAL).Get(  temp );
       return temp;
     }
     set
     {
-      SetProperty( Button.Property.AUTO_REPEATING, new Dali.Property.Value( value ) );
+      SetProperty( Button.Property.SELECTED_VISUAL, new Dali.Property.Value( value ) );
     }
   }
-  public float InitialAutoRepeatingDelay
+
+  public Dali.Property.Map DisabledSelectedVisual
   {
     get
     {
-      float temp = 0.0f;
-      GetProperty( Button.Property.INITIAL_AUTO_REPEATING_DELAY).Get( ref temp );
+      Dali.Property.Map temp = new Dali.Property.Map();
+      GetProperty( Button.Property.DISABLED_SELECTED_VISUAL).Get(  temp );
       return temp;
     }
     set
     {
-      SetProperty( Button.Property.INITIAL_AUTO_REPEATING_DELAY, new Dali.Property.Value( value ) );
+      SetProperty( Button.Property.DISABLED_SELECTED_VISUAL, new Dali.Property.Value( value ) );
     }
   }
-  public float NextAutoRepeatingDelay
+
+  public Dali.Property.Map DisabledUnselectedVisual
   {
     get
     {
-      float temp = 0.0f;
-      GetProperty( Button.Property.NEXT_AUTO_REPEATING_DELAY).Get( ref temp );
+      Dali.Property.Map temp = new Dali.Property.Map();
+      GetProperty( Button.Property.DISABLED_UNSELECTED_VISUAL).Get(  temp );
       return temp;
     }
     set
     {
-      SetProperty( Button.Property.NEXT_AUTO_REPEATING_DELAY, new Dali.Property.Value( value ) );
+      SetProperty( Button.Property.DISABLED_UNSELECTED_VISUAL, new Dali.Property.Value( value ) );
     }
   }
-  public bool Togglable
+
+  public Dali.Property.Map UnselectedBackgroundVisual
   {
     get
     {
-      bool temp = false;
-      GetProperty( Button.Property.TOGGLABLE).Get( ref temp );
+      Dali.Property.Map temp = new Dali.Property.Map();
+      GetProperty( Button.Property.UNSELECTED_BACKGROUND_VISUAL).Get(  temp );
       return temp;
     }
     set
     {
-      SetProperty( Button.Property.TOGGLABLE, new Dali.Property.Value( value ) );
+      SetProperty( Button.Property.UNSELECTED_BACKGROUND_VISUAL, new Dali.Property.Value( value ) );
     }
   }
-  public bool Selected
+
+  public Dali.Property.Map SelectedBackgroundVisual
   {
     get
     {
-      bool temp = false;
-      GetProperty( Button.Property.SELECTED).Get( ref temp );
+      Dali.Property.Map temp = new Dali.Property.Map();
+      GetProperty( Button.Property.SELECTED_BACKGROUND_VISUAL).Get(  temp );
       return temp;
     }
     set
     {
-      SetProperty( Button.Property.SELECTED, new Dali.Property.Value( value ) );
+      SetProperty( Button.Property.SELECTED_BACKGROUND_VISUAL, new Dali.Property.Value( value ) );
     }
   }
-  public string UnselectedStateImage
+
+  public Dali.Property.Map DisabledUnselectedBackgroundVisual
   {
     get
     {
-      string temp;
-      GetProperty( Button.Property.UNSELECTED_STATE_IMAGE).Get( out temp );
+      Dali.Property.Map temp = new Dali.Property.Map();
+      GetProperty( Button.Property.DISABLED_UNSELECTED_BACKGROUND_VISUAL).Get(  temp );
       return temp;
     }
     set
     {
-      SetProperty( Button.Property.UNSELECTED_STATE_IMAGE, new Dali.Property.Value( value ) );
+      SetProperty( Button.Property.DISABLED_UNSELECTED_BACKGROUND_VISUAL, new Dali.Property.Value( value ) );
     }
   }
-  public string SelectedStateImage
+
+  public Dali.Property.Map DisabledSelectedBackgroundVisual
   {
     get
     {
-      string temp;
-      GetProperty( Button.Property.SELECTED_STATE_IMAGE).Get( out temp );
+      Dali.Property.Map temp = new Dali.Property.Map();
+      GetProperty( Button.Property.DISABLED_SELECTED_BACKGROUND_VISUAL).Get(  temp );
       return temp;
     }
     set
     {
-      SetProperty( Button.Property.SELECTED_STATE_IMAGE, new Dali.Property.Value( value ) );
+      SetProperty( Button.Property.DISABLED_SELECTED_BACKGROUND_VISUAL, new Dali.Property.Value( value ) );
     }
   }
-  public string DisabledStateImage
+
+  public string LabelRelativeAlignment
   {
     get
     {
       string temp;
-      GetProperty( Button.Property.DISABLED_STATE_IMAGE).Get( out temp );
+      GetProperty( Button.Property.LABEL_RELATIVE_ALIGNMENT).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 ) );
+      SetProperty( Button.Property.LABEL_RELATIVE_ALIGNMENT, new Dali.Property.Value( value ) );
     }
   }
-  public Dali.CSharp.Color SelectedColor
+
+  public Vector4 LabelPadding
   {
     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 );
+      GetProperty( Button.Property.LABEL_PADDING).Get(  temp );
       return temp;
     }
     set
     {
-      SetProperty( Button.Property.LABEL, new Dali.Property.Value( value ) );
+      SetProperty( Button.Property.LABEL_PADDING, new Dali.Property.Value( value ) );
     }
   }
-  public string LabelText
+
+  public Vector4 VisualPadding
   {
     get
     {
-      string temp;
-      GetProperty( Button.Property.LABEL_TEXT).Get( out temp );
+      Vector4 temp = new Vector4(0.0f,0.0f,0.0f,0.0f);
+      GetProperty( Button.Property.VISUAL_PADDING).Get(  temp );
       return temp;
     }
     set
     {
-      SetProperty( Button.Property.LABEL_TEXT, new Dali.Property.Value( value ) );
+      SetProperty( Button.Property.VISUAL_PADDING, new Dali.Property.Value( value ) );
     }
   }
-
-/* Properties ends */
-
 %}
 %enddef