From: dongsug-song <35130733+dongsug-song@users.noreply.github.com> Date: Fri, 5 Jul 2019 07:28:19 +0000 (+0900) Subject: [NUI] Add View.Color property and SetRenderRefreshRate method (#924) X-Git-Tag: submit/tizen/20190706.005350~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=821ccc19f998d7c1b7217e6a262d29e3a011e663;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Add View.Color property and SetRenderRefreshRate method (#924) --- diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index 57772e785..9eb46e005 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -3496,6 +3496,40 @@ namespace Tizen.NUI.BaseComponents } } + /// + /// The Color of View. This is an RGBA value. + /// + /// 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(); + } + } + + /// + /// The color mode of View. + /// This specifies whether the View uses its own color, or inherits its parent color. + /// The default is ColorMode.UseOwnMultiplyParentColor. + /// + internal ColorMode ColorMode + { + set + { + SetColorMode(value); + } + get + { + return GetColorMode(); + } + } + /// /// Child property to specify desired width /// diff --git a/src/Tizen.NUI/src/public/NUIApplication.cs b/src/Tizen.NUI/src/public/NUIApplication.cs index 3f82bd7ac..9e2a92ea2 100755 --- a/src/Tizen.NUI/src/public/NUIApplication.cs +++ b/src/Tizen.NUI/src/public/NUIApplication.cs @@ -262,6 +262,25 @@ namespace Tizen.NUI return ((NUICoreBackend)this.Backend).AddIdle(func); } + /// + /// Sets the number of frames per render. + /// + /// The number of vsyncs between successive renders. + /// + /// 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.
+ /// For example, if an application runs on 60 FPS and SetRenderRefreshRate(2) is called, the frames per second will be changed to 30. + ///
+ /// 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); + } + /// /// Overrides this method if you want to handle behavior. ///