C# binding for Actor Opacity property 41/115841/2
authorRichard Huang <r.huang@samsung.com>
Tue, 21 Feb 2017 11:59:23 +0000 (11:59 +0000)
committerRichard Huang <r.huang@samsung.com>
Wed, 22 Feb 2017 11:03:32 +0000 (03:03 -0800)
Change-Id: I955ccd248dc67a409b736f6ce724da11f02908d6

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 4d277de..2b24a7c 100755 (executable)
@@ -28,6 +28,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();
 %}
 
 %typemap(cscode) Dali::Toolkit::Control::Property %{
index 93b5c15..f4d6d1c 100755 (executable)
       {
         return IsVisible();
       }
-    }
+   }
 
-   public float Opacity
-   {
-      set
+    public float Opacity
+    {
+      get
       {
-        SetOpacity(value);
+        float temp = 0;
+        GetProperty( Actor.Property.OPACITY ).Get( ref temp );
+        return temp;
       }
-      get
+      set
       {
-        return GetCurrentOpacity();
+        SetProperty( Actor.Property.OPACITY, new Dali.Property.Value( value ) );
       }
-   }
+    }
 
     public bool StateFocusEnable
     {
       get
       {
         int temp = 0;
-        GetProperty( Actor.Property.SIBLING_ORDER).Get( ref temp );
+        GetProperty( Actor.Property.SIBLING_ORDER ).Get( ref temp );
         return temp;
       }
       set
index bbadec9..4e96f02 100755 (executable)
@@ -42,6 +42,15 @@ SWIGEXPORT int SWIGSTDCALL CSharp_Actor_Property_SIBLING_ORDER_get() {
   return jresult;
 }
 
+SWIGEXPORT float SWIGSTDCALL CSharp_Actor_Property_OPACITY_get() {
+  int jresult ;
+  int result;
+
+  result = (float)Dali::DevelActor::Property::OPACITY;
+  jresult = (int)result;
+  return jresult;
+}
+
 SWIGEXPORT int SWIGSTDCALL CSharp_View_Property_TOOLTIP_get() {
   int jresult ;
   int result;
index 82c2f2f..ea80496 100755 (executable)
@@ -190,6 +190,9 @@ namespace Dali
         [global::System.Runtime.InteropServices.DllImport("NDalic", EntryPoint="CSharp_Actor_Property_SIBLING_ORDER_get")]
         public static extern int Actor_Property_SIBLING_ORDER_get();
 
+        [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_View_Property_TOOLTIP_get")]
         public static extern int View_Property_TOOLTIP_get();