Add implemantation.
authorWonsik Jung <sidein@samsung.com>
Thu, 12 Aug 2021 11:17:24 +0000 (20:17 +0900)
committerSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Mon, 13 Sep 2021 07:33:23 +0000 (16:33 +0900)
src/Tizen.NUI/src/internal/Application/Application.cs
src/Tizen.NUI/src/internal/Application/NUICoreBackend.cs
src/Tizen.NUI/src/internal/Interop/Interop.Window.cs

index 11533dd4bd4be8ee19fde456321c3c9e13ae0284..326b79ece88b10b0052dcab3eb77160d01f2e4a2 100755 (executable)
@@ -1090,13 +1090,13 @@ namespace Tizen.NUI
             return instance;
         }
 
-        public static Application NewApplication(string stylesheet, NUIApplication.WindowMode windowMode, Rectangle positionSize, WindowType type)
+        public static Application NewApplication(string stylesheet, NUIApplication.WindowMode windowMode, WindowType type)
         {
             if (instance)
             {
                 return instance;
             }
-            Application ret = New(1, stylesheet, windowMode, positionSize, type);
+            Application ret = New(1, stylesheet, windowMode, type);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
 
             instance = ret;
@@ -1206,9 +1206,12 @@ namespace Tizen.NUI
             return ret;
         }
 
-        public static Application New(int argc, string stylesheet, NUIApplication.WindowMode windowMode, Rectangle positionSize, WindowType type)
+        public static Application New(int argc, string stylesheet, NUIApplication.WindowMode windowMode, WindowType type)
         {
-            Application ret = new Application(Interop.Application.New(argc, stylesheet, (int)windowMode, Rectangle.getCPtr(positionSize), (int)type), true);
+            // It will be removed until dali APIs are prepared.
+            Rectangle initRectangle = new Rectangle(0, 0, 0, 0);
+
+            Application ret = new Application(Interop.Application.New(argc, stylesheet, (int)windowMode, Rectangle.getCPtr(initRectangle), (int)type), true);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return ret;
         }
index 61fa96034a6c1b0924080149587b2e1a7414c2bc..8af5985e373173cf7762454cb2171f9e560a65b4 100755 (executable)
@@ -81,14 +81,10 @@ namespace Tizen.NUI
         /// This will be hidden as inhouse API. Because it is only for internal IME window.
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public NUICoreBackend(string stylesheet, NUIApplication.WindowMode windowMode, Size2D windowSize, Position2D windowPosition, WindowType type)
+        public NUICoreBackend(string stylesheet, NUIApplication.WindowMode windowMode, WindowType type)
         {
             this.stylesheet = stylesheet;
             this.windowMode = windowMode;
-            if (windowSize != null && windowPosition != null)
-            {
-                this.windowRectangle = new Rectangle(windowPosition.X, windowPosition.Y, windowSize.Width, windowSize.Height);
-            }
             this.defaultWindowType = type;
         }
 
@@ -167,7 +163,7 @@ namespace Tizen.NUI
 
             if(defaultWindowType != WindowType.Normal)
             {
-                application = Application.NewApplication(stylesheet, windowMode, windowRectangle, defaultWindowType);
+                application = Application.NewApplication(stylesheet, windowMode, defaultWindowType);
             }
             else
             {
index e670c46395d39b1886bb4bc878ff014cb22c2627..8c379aadc7de0173ed23271ef40a257e4c619184 100755 (executable)
@@ -245,9 +245,6 @@ namespace Tizen.NUI
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_GetNativeId")]
             public static extern int GetNativeId(global::System.Runtime.InteropServices.HandleRef jarg1);
 
-            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_SetPositionSizeWithOrientation")]
-            public static extern void SetPositionSizeWithOrientation(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3);
-
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_EnableFloatingMode")]
             public static extern void EnableFloatingMode(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2);