return GetImplementation(window).GetParent();
}
-Window DownCast(BaseHandle handle)
-{
- return Window(dynamic_cast<Dali::Internal::Adaptor::Window*>(handle.GetObjectPtr()));
-}
-
WindowOrientation GetCurrentOrientation(Window window)
{
return GetImplementation(window).GetCurrentOrientation();
*/
DALI_ADAPTOR_API Window GetParent(Window window);
-/**
- * @brief Downcast sceneHolder to window
- *
- * @param[in] handle The handle need to downcast
- * @return The window cast from SceneHolder
- */
-DALI_ADAPTOR_API Window DownCast(BaseHandle handle);
-
/**
* @brief Gets current orientation of the window.
*
*/
DALI_ADAPTOR_API MovedSignalType& MovedSignal(Window window);
-
} // namespace DevelWindow
} // namespace Dali
/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Window& Window::operator=(Window&& rhs) = default;
+Window Window::DownCast(BaseHandle handle)
+{
+ return Window(dynamic_cast<Dali::Internal::Adaptor::Window*>(handle.GetObjectPtr()));
+}
+
void Window::Add(Dali::Actor actor)
{
GetImplementation(*this).Add(actor);
*/
Window& operator=(Window&& rhs);
+ /**
+ * @brief Downcast sceneHolder to window
+ *
+ * @SINCE_2_1.46
+ * @param[in] handle The handle need to downcast
+ * @return Whether it's a valid window or not
+ */
+ static Window DownCast(BaseHandle handle);
+
/**
* @brief Adds a child Actor to the Window.
*