[NUI] Add FrontBufferRendering in WindowData (#5725)
authorChihun Jeong <50663828+ANZ1217@users.noreply.github.com>
Tue, 7 Nov 2023 12:07:08 +0000 (21:07 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Wed, 15 Nov 2023 08:56:46 +0000 (17:56 +0900)
* [NUI] Add FrontBufferRendering in WindowData

* Add [EditorBrowsable(EditorBrowsableState.Never)] on every public value

---------

Co-authored-by: ANZ1217 <chihun.jeong@samsung.com>
src/Tizen.NUI/src/internal/Interop/Interop.WindowData.cs
src/Tizen.NUI/src/public/Application/WindowData.cs

index 204aba0..1eea631 100644 (file)
@@ -47,6 +47,13 @@ namespace Tizen.NUI
             [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WindowData_GetTransparency")]
             [return: MarshalAs(UnmanagedType.U1)]
             public static extern bool GetTransparency(HandleRef nuiWindowData);
+
+            [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WindowData_SetFrontBufferRendering")]
+            public static extern void SetFrontBufferRendering(HandleRef nuiWindowData, bool enable);
+
+            [DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WindowData_GetFrontBufferRendering")]
+            [return: MarshalAs(UnmanagedType.U1)]
+            public static extern bool GetFrontBufferRendering(HandleRef nuiWindowData);
         }
     }
 }
\ No newline at end of file
index a80993d..7c08a75 100644 (file)
@@ -30,6 +30,7 @@ namespace Tizen.NUI
     {
         private IBorderInterface borderInterface = null;
 
+        [EditorBrowsable(EditorBrowsableState.Never)]
         public WindowData() : this(Interop.WindowData.New(), true)
         {
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
@@ -44,6 +45,7 @@ namespace Tizen.NUI
         /// The default size of the position and size is X=0, Y=0, WIDTH=0, HEIGHT=0.
         /// </summary>
         /// <value>The position and size of the default window.</value>
+        [EditorBrowsable(EditorBrowsableState.Never)]
         public Rectangle PositionSize
         {
             set
@@ -64,6 +66,7 @@ namespace Tizen.NUI
         /// The default mode is WindowMode.Transparent.
         /// </summary>
         /// <value>The mode of the default window.</value>
+        [EditorBrowsable(EditorBrowsableState.Never)]
         public NUIApplication.WindowMode WindowMode
         {
             set
@@ -84,6 +87,7 @@ namespace Tizen.NUI
         /// The default type is WindowType.Normal.
         /// </summary>
         /// <value>The type of the default window.</value>
+        [EditorBrowsable(EditorBrowsableState.Never)]
         public WindowType WindowType
         {
             set
@@ -100,10 +104,32 @@ namespace Tizen.NUI
         }
 
         /// <summary>
+        /// Gets or sets the front buffer rendering of the default window.
+        /// The default value is false.
+        /// </summary>
+        /// <value>The front buffer rendering of the default window.</value>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public bool FrontBufferRendering
+        {
+            set
+            {
+                Interop.WindowData.SetFrontBufferRendering(SwigCPtr, value);
+                if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+            }
+            get
+            {
+                bool isFrontBufferRendering = Interop.WindowData.GetFrontBufferRendering(SwigCPtr);
+                if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
+                return isFrontBufferRendering;
+            }
+        }
+
+        /// <summary>
         /// Gets or sets the border interface of the default window.
         /// The default value is null.
         /// </summary>
         /// <value>The border interface of the default window.</value>
+        [EditorBrowsable(EditorBrowsableState.Never)]
         public IBorderInterface BorderInterface
         {
             set