Added View Properties (Visibility and Opacity) to Layer 13/133313/1
authorUmar <m.umar@partner.samsung.com>
Fri, 9 Jun 2017 16:23:39 +0000 (17:23 +0100)
committerUmar <m.umar@partner.samsung.com>
Fri, 9 Jun 2017 16:23:39 +0000 (17:23 +0100)
Change-Id: I5ee01fd9e3a9abf4cd9c5b43c710004c7e26d453

Tizen.NUI/src/public/Layer.cs

index 45c9c7a..c8a1bd5 100755 (executable)
@@ -69,8 +69,6 @@ namespace Tizen.NUI
 
         internal class Property
         {
-            internal static readonly int CLIPPING_ENABLE = NDalicPINVOKE.Layer_Property_CLIPPING_ENABLE_get();
-            internal static readonly int CLIPPING_BOX = NDalicPINVOKE.Layer_Property_CLIPPING_BOX_get();
             internal static readonly int BEHAVIOR = NDalicPINVOKE.Layer_Property_BEHAVIOR_get();
         }
 
@@ -323,6 +321,38 @@ namespace Tizen.NUI
             }
         }
 
-    }
+        /// <summary>
+        /// Retrieves and sets the Layer's opacity.<br>
+        /// </summary>
+        public float Opacity
+        {
+            get
+            {
+                float temp = 0.0f;
+                GetProperty(View.Property.OPACITY).Get(out temp);
+                return temp;
+            }
+            set
+            {
+                SetProperty(View.Property.OPACITY, new Tizen.NUI.PropertyValue(value));
+            }
+        }
 
+        /// <summary>
+        /// Retrieves and sets the Layer's visibility.
+        /// </summary>
+        public bool Visibility
+        {
+            get
+            {
+                bool temp = false;
+                GetProperty(View.Property.VISIBLE).Get(out temp);
+                return temp;
+            }
+            set
+            {
+                SetProperty(View.Property.VISIBLE, new Tizen.NUI.PropertyValue(value));
+            }
+        }
+    }
 }