Add public APIs and the relasted test case.
authorWonsik Jung <sidein@samsung.com>
Thu, 12 Aug 2021 07:24:35 +0000 (16:24 +0900)
committerSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Mon, 13 Sep 2021 07:33:23 +0000 (16:33 +0900)
src/Tizen.NUI/src/public/Application/NUIApplication.cs
src/Tizen.NUI/src/public/Common/NUIConstants.cs
src/Tizen.NUI/src/public/Window/Window.cs
test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Application/TSNUIApplication.cs

index 75f11ec..d952f37 100755 (executable)
@@ -158,17 +158,14 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// The constructor with a stylesheet, window mode, window size, position and default window type.
+        /// The constructor with a stylesheet, window mode and default window type.
+        /// Especially, It is for IME window.
         /// </summary>
         /// <param name="styleSheet">The styleSheet URL.</param>
         /// <param name="windowMode">The windowMode.</param>
-        /// <param name="windowSize">The window size.</param>
-        /// <param name="windowPosition">The window position.</param>
         /// <param name="type">The default window type.</param>
         /// <since_tizen> 9 </since_tizen>
-        /// This should be hidden. Because the major purpose is to support IME window as keyboard application.
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public NUIApplication(string styleSheet, WindowMode windowMode, Size2D windowSize, Position2D windowPosition, WindowType type) : base(new NUICoreBackend(styleSheet, windowMode, windowSize, windowPosition, type))
+        public NUIApplication(string styleSheet, WindowMode windowMode, WindowType type) : base(new NUICoreBackend(styleSheet, windowMode, type))
         {
             ExternalThemeManager.Initialize();
         }
index fc0f3aa..be1e164 100755 (executable)
@@ -767,10 +767,9 @@ namespace Tizen.NUI
         /// <summary>
         /// Used for IME window that is used for keyboard window.
         /// It should be set in Application's New input param when application is created.
-        /// In addition, it is only for internal keyboard application.
-        /// This should be hidden.
+        /// Because IME window type can not change in runtime.
+        /// So, It does not work with Window.Type.
         /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
         Ime
     }
 
index 29253d3..6c36f1e 100644 (file)
@@ -357,6 +357,8 @@ namespace Tizen.NUI
 
         /// <summary>
         /// Gets or sets a window type.
+        /// Most of window type can be set to use WindowType, except for IME type.
+        /// IME type can be set to use one of NUIApplication's constrcutors.
         /// </summary>
         /// <since_tizen> 3 </since_tizen>
         public WindowType Type
@@ -1267,24 +1269,6 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Sets window position and size for specific orientation.
-        /// This api reserves the position and size per orientation to display server.
-        /// When the device is rotated, the window is moved/resized with the reserved position/size by display server.
-        /// Currently, it only works when the window's type is WindowType::Ime.
-        /// It means this function is only for IME window of internal keyboard application.
-        /// It is only for internal keyboard application.
-        /// This should be hidden.
-        /// </summary>
-        /// <param name="positionSize">The reserved position and size for the orientation.</param>
-        /// <param name="orientation">The orientation.</param>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public void SetPositionSizeWithOrientation(Rectangle positionSize, Window.WindowOrientation orientation)
-        {
-            Interop.Window.SetPositionSizeWithOrientation(SwigCPtr, Rectangle.getCPtr(positionSize), (int)orientation);
-            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-        }
-
-        /// <summary>
         /// Get native window ID
         /// </summary>
         /// <returns>native window ID</returns>
index 803f2e8..5e8bfde 100755 (executable)
@@ -240,10 +240,8 @@ namespace Tizen.NUI.Devel.Tests
         {
             tlog.Debug(tag, $"NUIApplicationConstructorForImeWindow START");
 
-            Size2D windowSize = new Size2D(100, 50);
-            Position2D windowPosition = new Position2D(20, 30);
-            var testingTarget = new NUIApplication("", NUIApplication.WindowMode.Opaque, windowSize, windowPosition, WindowType.Dialog);
-            Assert.IsNotNull(testingTarget, "Should be not null.");
+            var application = new NUIApplication("stylesheet", NUIApplication.WindowMode.Opaque, WindowType.Ime);
+            Assert.IsNotNull(application, "NUIApplication Should return NUIApplication instance.");
             Assert.IsInstanceOf<NUIApplication>(testingTarget, "Should be an instance of NUIApplication type.");
 
             windowSize.Dispose();