Manual binding for C# Actor APIs e.g. RaiseToTop, LowerBelow, etc.
[platform/core/uifw/dali-toolkit.git] / plugins / dali-swig / SWIG / events / actor-event.i
old mode 100644 (file)
new mode 100755 (executable)
index 1deccbc..a2fa54e
        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 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 ) );
+      }
+    }
+
     public bool StateFocusEnable
     {
       set
       }
       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 ) );
       }
     }
 
       SetVisible(false);
     }
 
+    public void Raise()
+    {
+      NDalicPINVOKE.Raise(swigCPtr);
+      if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    }
+
+    public void Lower()
+    {
+      NDalicPINVOKE.Lower(swigCPtr);
+      if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    }
+
+    public void RaiseToTop()
+    {
+      NDalicPINVOKE.RaiseToTop(swigCPtr);
+      if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    }
+
+    public void LowerToBottom()
+    {
+      NDalicPINVOKE.LowerToBottom(swigCPtr);
+      if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    }
+
+    public void RaiseAbove(Actor target)
+    {
+      NDalicPINVOKE.RaiseAbove(swigCPtr, Actor.getCPtr(target));
+      if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    }
+
+    public void LowerBelow(Actor target)
+    {
+      NDalicPINVOKE.RaiseAbove(swigCPtr, Actor.getCPtr(target));
+      if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+    }
+
 %}
 
 %enddef