From: Eunki, Hong Date: Tue, 4 Jul 2023 04:13:37 +0000 (+0900) Subject: [NUI] Partial update feature enable/disable for window X-Git-Tag: accepted/tizen/unified/20231205.024657~262 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bcd4f31596b92249f9efe0df496ad50546ce1b77;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Partial update feature enable/disable for window Signed-off-by: Eunki, Hong --- diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs b/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs index a453cc6..26cf90f 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.Window.cs @@ -176,6 +176,13 @@ namespace Tizen.NUI [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_GetPosition")] public static extern global::System.IntPtr GetPosition(global::System.Runtime.InteropServices.HandleRef jarg1); + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_SetPartialUpdateEnabled")] + public static extern void SetPartialUpdateEnabled(global::System.Runtime.InteropServices.HandleRef window, bool enabled); + + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_IsPartialUpdateEnabled")] + [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] + public static extern bool IsPartialUpdateEnabled(global::System.Runtime.InteropServices.HandleRef window); + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_SetTransparency")] public static extern global::System.IntPtr SetTransparency(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); diff --git a/src/Tizen.NUI/src/public/Window/Window.cs b/src/Tizen.NUI/src/public/Window/Window.cs index a6c6c42..96e2950 100755 --- a/src/Tizen.NUI/src/public/Window/Window.cs +++ b/src/Tizen.NUI/src/public/Window/Window.cs @@ -566,6 +566,24 @@ namespace Tizen.NUI } } + /// + /// Gets or sets whether the window will update partial area or full area. + /// If this value is true, window will update and render partial area. + /// If false, full area updated. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public bool PartialUpdate + { + get + { + return IsPartialUpdate(); + } + set + { + SetPartialUpdate(value); + } + } + internal static Vector4 DEFAULT_BACKGROUND_COLOR { get @@ -1633,6 +1651,27 @@ namespace Tizen.NUI } /// + /// Set the window use partial update or not. + /// + /// If window enable partial update or disable. + internal void SetPartialUpdate(bool enabled) + { + Interop.Window.SetPartialUpdateEnabled(SwigCPtr, enabled); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + + /// + /// Returns whether the window is enabled partial update or not. + /// + /// True if the window is enabled partial update, false otherwise. + internal bool IsPartialUpdate() + { + bool ret = Interop.Window.IsPartialUpdateEnabled(SwigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + /// /// Enables the floating mode of window. /// The floating mode is to support window is moved or resized by display server. /// For example, if the video-player window sets the floating mode,