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
index 273ec47..fbf5a8e 100755 (executable)
@@ -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.
       }
     }
 
-   public Vector2 ScreenPosition
-   {
+    public Vector2 ScreenPosition
+    {
       get
       {
         Vector2 temp = new Vector2( 0.0f, 0.0f );
         GetProperty( Actor.Property.SCREEN_POSITION ).Get( temp );
         return temp;
       }
-   }
+    }
 
-    public bool StateFocusEnable
+    protected bool PositionUsesAnchorPoint
     {
+      get
+      {
+        bool temp = false;
+        GetProperty( Actor.Property.POSITION_USES_ANCHOR_POINT ).Get( ref temp );
+        return temp;
+      }
       set
       {
-        SetKeyboardFocusable(value);
+        SetProperty( Actor.Property.POSITION_USES_ANCHOR_POINT, new Dali.Property.Value( value ) );
       }
+    }
+
+    public bool StateFocusEnable
+    {
       get
       {
         return IsKeyboardFocusable();
       }
+      set
+      {
+        SetKeyboardFocusable(value);
+      }
     }
 
     public bool IsOnStage