C# binding for Actor Opacity property
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / SWIG / events / actor-event.i
old mode 100644 (file)
new mode 100755 (executable)
index 72430cc..f4d6d1c
        return (IntPtr)swigCPtr;
     }
 
-    public Actor Parent
+    public Position CurrentPosition
     {
       get
       {
-        Actor parent = GetParent();
-        return parent;
+        return GetCurrentPosition();
       }
     }
 
-   public bool Visibility
-   {
+    public Size3D CurrentSize
+    {
       get
       {
-        bool visibility = IsVisible();
-        return visibility;
+        return GetCurrentSize();
       }
     }
 
-   public float Opacity
-   {
-      set
+    public Actor Parent
+    {
+      get
       {
-        SetOpacity(value);
+        return GetParent();
       }
     }
 
-   public float CurrentOpacity
+   public bool Visibility
    {
       get
       {
-        float ret = GetCurrentOpacity();
-        return ret;
+        return IsVisible();
+      }
+   }
+
+    public float Opacity
+    {
+      get
+      {
+        float temp = 0;
+        GetProperty( Actor.Property.OPACITY ).Get( ref temp );
+        return temp;
+      }
+      set
+      {
+        SetProperty( Actor.Property.OPACITY, new Dali.Property.Value( value ) );
       }
     }
 
       }
       get
       {
-        bool focusable = IsKeyboardFocusable();
-        return focusable;
+        return IsKeyboardFocusable();
+      }
+    }
+
+    public bool IsOnStage
+    {
+      get
+      {
+        return OnStage();
       }
     }
 
+    public int SiblingOrder
+    {
+      get
+      {
+        int temp = 0;
+        GetProperty( Actor.Property.SIBLING_ORDER ).Get( ref temp );
+        return temp;
+      }
+      set
+      {
+        SetProperty( Actor.Property.SIBLING_ORDER, new Dali.Property.Value( value ) );
+      }
+    }
+
+    public void Show()
+    {
+      SetVisible(true);
+    }
+
+    public void Hide()
+    {
+      SetVisible(false);
+    }
 %}
 
 %enddef