From: Umar Date: Fri, 9 Jun 2017 16:23:39 +0000 (+0100) Subject: Added View Properties (Visibility and Opacity) to Layer X-Git-Tag: accepted/tizen/unified/20170614.141248~9^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8477d55b9648235317a202ee5ee543e3bc640be;p=platform%2Fcore%2Fcsapi%2Fnui.git Added View Properties (Visibility and Opacity) to Layer Change-Id: I5ee01fd9e3a9abf4cd9c5b43c710004c7e26d453 --- diff --git a/Tizen.NUI/src/public/Layer.cs b/Tizen.NUI/src/public/Layer.cs index 45c9c7a..c8a1bd5 100755 --- a/Tizen.NUI/src/public/Layer.cs +++ b/Tizen.NUI/src/public/Layer.cs @@ -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 } } - } + /// + /// Retrieves and sets the Layer's opacity.
+ ///
+ 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)); + } + } + /// + /// Retrieves and sets the Layer's visibility. + /// + 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)); + } + } + } }