[NUI] Add GetWindowId() (#1547)
authordongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 19 May 2020 10:54:16 +0000 (19:54 +0900)
committerGitHub <noreply@github.com>
Tue, 19 May 2020 10:54:16 +0000 (19:54 +0900)
src/Tizen.NUI/src/internal/Interop/Interop.Window.cs
src/Tizen.NUI/src/public/Window.cs

index ecbb5fa..948e652 100755 (executable)
@@ -221,6 +221,10 @@ namespace Tizen.NUI
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_GetParent")]
             public static extern global::System.IntPtr GetParent(global::System.Runtime.InteropServices.HandleRef jarg1);
+
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Window_GetNativeId")]
+            public static extern int GetNativeId(global::System.Runtime.InteropServices.HandleRef jarg1);
+
         }
     }
 }
index b0886b2..f70cf31 100755 (executable)
@@ -1117,6 +1117,18 @@ namespace Tizen.NUI
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
         }
 
+        /// <summary>
+        /// Get native window ID
+        /// </summary>
+        /// <returns>native window ID</returns>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public int GetNativeId()
+        {
+            int ret = Interop.Window.GetNativeId(swigCPtr);
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+            return ret;
+        }
+
         internal Any GetNativeHandle()
         {
             Any ret = new Any(Interop.WindowInternal.Window_GetNativeHandle(swigCPtr), true);