Add C# Bindings for Actor ScreenPosition 95/118095/3
authorAgnelo Vaz <agnelo.vaz@samsung.com>
Wed, 8 Mar 2017 18:02:37 +0000 (18:02 +0000)
committerAgnelo Vaz <agnelo.vaz@samsung.com>
Wed, 8 Mar 2017 18:15:13 +0000 (18:15 +0000)
Change-Id: I1ee5254998a258a2e8ca32e88533bd00daca6e59

plugins/dali-swig/SWIG/devel-properties.i
plugins/dali-swig/SWIG/events/actor-event.i
plugins/dali-swig/manual/cpp/devel-property-wrap.cpp
plugins/dali-swig/manual/csharp/ManualPINVOKE.cs

index 2b24a7c..ac9f032 100755 (executable)
@@ -29,6 +29,7 @@
 %typemap(cscode) Dali::Actor::Property %{
   public static readonly int SIBLING_ORDER = NDalicManualPINVOKE.Actor_Property_SIBLING_ORDER_get();
   public static readonly int OPACITY = NDalicManualPINVOKE.Actor_Property_OPACITY_get();
+  public static readonly int SCREEN_POSITION = NDalicManualPINVOKE.Actor_Property_SCREEN_POSITION_get();
 %}
 
 %typemap(cscode) Dali::Toolkit::Control::Property %{
index a2fa54e..273ec47 100755 (executable)
       }
     }
 
+   public Vector2 ScreenPosition
+   {
+      get
+      {
+        Vector2 temp = new Vector2( 0.0f, 0.0f );
+        GetProperty( Actor.Property.SCREEN_POSITION ).Get( temp );
+        return temp;
+      }
+   }
+
     public bool StateFocusEnable
     {
       set
index 4e96f02..89005b4 100755 (executable)
@@ -34,21 +34,18 @@ extern "C" {
 #endif
 
 SWIGEXPORT int SWIGSTDCALL CSharp_Actor_Property_SIBLING_ORDER_get() {
-  int jresult ;
-  int result;
 
-  result = (int)Dali::DevelActor::Property::SIBLING_ORDER;
-  jresult = (int)result;
-  return jresult;
+  return Dali::DevelActor::Property::SIBLING_ORDER;
 }
 
-SWIGEXPORT float SWIGSTDCALL CSharp_Actor_Property_OPACITY_get() {
-  int jresult ;
-  int result;
+SWIGEXPORT int SWIGSTDCALL CSharp_Actor_Property_OPACITY_get() {
 
-  result = (float)Dali::DevelActor::Property::OPACITY;
-  jresult = (int)result;
-  return jresult;
+  return Dali::DevelActor::Property::OPACITY;
+}
+
+SWIGEXPORT int SWIGSTDCALL CSharp_Actor_Property_SCREEN_POSITION_get() {
+
+  return Dali::DevelActor::Property::SCREEN_POSITION;
 }
 
 SWIGEXPORT int SWIGSTDCALL CSharp_View_Property_TOOLTIP_get() {
index ea80496..b627299 100755 (executable)
@@ -193,6 +193,9 @@ namespace Dali
         [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Actor_Property_OPACITY_get")]
         public static extern int Actor_Property_OPACITY_get();
 
+        [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Actor_Property_SCREEN_POSITION_get")]
+        public static extern int Actor_Property_SCREEN_POSITION_get();
+
         [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_View_Property_TOOLTIP_get")]
         public static extern int View_Property_TOOLTIP_get();