Add C# bindings for Actor's POSITION_USES_ANCHOR_POINT 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..fbf5a8e
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2017 Samsung Electronics Co., Ltd.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
        return (IntPtr)swigCPtr;
     }
 
+    public Position CurrentPosition
+    {
+      get
+      {
+        return GetCurrentPosition();
+      }
+    }
+
+    public Size3D CurrentSize
+    {
+      get
+      {
+        return GetCurrentSize();
+      }
+    }
+
     public Actor Parent
     {
       get
       {
-        Actor parent = GetParent();
-        return parent;
+        return GetParent();
       }
     }
 
    {
       get
       {
-        bool visibility = IsVisible();
-        return visibility;
+        return IsVisible();
       }
-    }
+   }
 
-   public float Opacity
-   {
+    public float Opacity
+    {
+      get
+      {
+        float temp = 0;
+        GetProperty( Actor.Property.OPACITY ).Get( ref temp );
+        return temp;
+      }
       set
       {
-        SetOpacity(value);
+        SetProperty( Actor.Property.OPACITY, new Dali.Property.Value( value ) );
       }
     }
 
-   public float CurrentOpacity
-   {
+    public Vector2 ScreenPosition
+    {
       get
       {
-        float ret = GetCurrentOpacity();
-        return ret;
+        Vector2 temp = new Vector2( 0.0f, 0.0f );
+        GetProperty( Actor.Property.SCREEN_POSITION ).Get( temp );
+        return temp;
+      }
+    }
+
+    protected bool PositionUsesAnchorPoint
+    {
+      get
+      {
+        bool temp = false;
+        GetProperty( Actor.Property.POSITION_USES_ANCHOR_POINT ).Get( ref temp );
+        return temp;
+      }
+      set
+      {
+        SetProperty( Actor.Property.POSITION_USES_ANCHOR_POINT, new Dali.Property.Value( value ) );
       }
     }
 
     public bool StateFocusEnable
     {
+      get
+      {
+        return IsKeyboardFocusable();
+      }
       set
       {
         SetKeyboardFocusable(value);
       }
+    }
+
+    public bool IsOnStage
+    {
+      get
+      {
+        return OnStage();
+      }
+    }
+
+    public int SiblingOrder
+    {
       get
       {
-        bool focusable = IsKeyboardFocusable();
-        return focusable;
+        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);
+    }
+
+    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