Add GetNativeId() in Window 99/230999/4
authorDongsug Song <dongsug.song@samsung.com>
Thu, 16 Apr 2020 11:39:32 +0000 (20:39 +0900)
committerDongsug Song <dongsug.song@samsung.com>
Tue, 19 May 2020 03:41:35 +0000 (12:41 +0900)
Change-Id: I9724842abf0f84f0633a19bb173993357081feee

dali/devel-api/adaptor-framework/window-devel.cpp [changed mode: 0644->0755]
dali/devel-api/adaptor-framework/window-devel.h [changed mode: 0644->0755]
dali/internal/window-system/common/window-impl.cpp [changed mode: 0644->0755]
dali/internal/window-system/common/window-impl.h [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index e2f503e..b9fadbb
@@ -143,6 +143,11 @@ void SetAvailableOrientations( Window window, const Dali::Vector<Dali::Window::W
   GetImplementation( window ).SetAvailableOrientations( orientations );
 }
 
+int32_t GetNativeId( Window window )
+{
+  return GetImplementation( window ).GetNativeId();
+}
+
 } // namespace DevelWindow
 
 } // namespace Dali
old mode 100644 (file)
new mode 100755 (executable)
index 4687503..958b940
@@ -243,6 +243,13 @@ DALI_ADAPTOR_API Dali::Window::WindowOrientation GetCurrentOrientation( Window w
  */
 DALI_ADAPTOR_API void SetAvailableOrientations( Window window, const Dali::Vector<Dali::Window::WindowOrientation>& orientations );
 
+/**
+ * @brief Gets current window ID.
+ *
+ * @param[in] window The window instance
+ */
+DALI_ADAPTOR_API int32_t GetNativeId( Window window );
+
 } // namespace DevelWindow
 
 } // namespace Dali
old mode 100644 (file)
new mode 100755 (executable)
index a0fd809..69ba1d9
@@ -917,6 +917,11 @@ void Window::SetAvailableOrientations( const Dali::Vector<Dali::Window::WindowOr
   SetAvailableAnlges( mAvailableAngles );
 }
 
+int32_t Window::GetNativeId() const
+{
+  return mWindowBase->GetNativeWindowId();
+}
+
 } // Adaptor
 
 } // Internal
old mode 100644 (file)
new mode 100755 (executable)
index 0d4a4e1..ca1d3bf
@@ -371,6 +371,11 @@ public: // Dali::Internal::Adaptor::SceneHolder
    */
   bool IsVisible() const override;
 
+  /**
+   * @copydoc Dali::DevelWindow::GetNativeId()
+   */
+  int32_t GetNativeId() const;
+
 private:
 
   /**