[NUI] Add View.Color property and SetRenderRefreshRate method (#924)
authordongsug-song <35130733+dongsug-song@users.noreply.github.com>
Fri, 5 Jul 2019 07:28:19 +0000 (16:28 +0900)
committerGitHub <noreply@github.com>
Fri, 5 Jul 2019 07:28:19 +0000 (16:28 +0900)
src/Tizen.NUI/src/public/BaseComponents/View.cs
src/Tizen.NUI/src/public/NUIApplication.cs

index 57772e7..9eb46e0 100755 (executable)
@@ -3497,6 +3497,40 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
+        /// The Color of View. This is an RGBA value.
+        /// </summary>
+        /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public Color Color
+        {
+            set
+            {
+                SetColor(value);
+            }
+            get
+            {
+                return GetCurrentColor();
+            }
+        }
+
+        /// <summary>
+        /// The color mode of View.
+        /// This specifies whether the View uses its own color, or inherits its parent color.
+        /// The default is ColorMode.UseOwnMultiplyParentColor.
+        /// </summary>
+        internal ColorMode ColorMode
+        {
+            set
+            {
+                SetColorMode(value);
+            }
+            get
+            {
+                return GetColorMode();
+            }
+        }
+
+        /// <summary>
         /// Child property to specify desired width
         /// </summary>
         internal int LayoutWidthSpecificationFixed
index 3f82bd7..9e2a92e 100755 (executable)
@@ -263,6 +263,25 @@ namespace Tizen.NUI
         }
 
         /// <summary>
+        /// Sets the number of frames per render.
+        /// </summary>
+        /// <param name="numberOfVSyncsPerRender">The number of vsyncs between successive renders.</param>
+        /// <remarks>
+        /// Suggest this is a power of two:
+        /// 1 - render each vsync frame.
+        /// 2 - render every other vsync frame.
+        /// 4 - render every fourth vsync frame.
+        /// 8 - render every eighth vsync frame. <br />
+        /// For example, if an application runs on 60 FPS and SetRenderRefreshRate(2) is called, the frames per second will be changed to 30.
+        ///</remarks>
+        /// This will be public opened in tizen_5.5 after ACR done. Before ACR, need to be hidden as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public static void SetRenderRefreshRate(uint numberOfVSyncsPerRender)
+        {
+            Adaptor.Instance.SetRenderRefreshRate(numberOfVSyncsPerRender);
+        }
+
+        /// <summary>
         /// Overrides this method if you want to handle behavior.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>