Add Window::SetLayout method
[platform/core/uifw/dali-adaptor.git] / dali / public-api / adaptor-framework / window.cpp
index e1f2642..4e834a6 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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.
@@ -79,9 +79,14 @@ Window::Window(const Window& copy) = default;
 
 Window& Window::operator=(const Window& rhs) = default;
 
-Window::Window(Window&& rhs) = default;
+Window::Window(Window&& rhs) noexcept = default;
 
-Window& Window::operator=(Window&& rhs) = default;
+Window& Window::operator=(Window&& rhs) noexcept = default;
+
+Window Window::DownCast(BaseHandle handle)
+{
+  return Window(dynamic_cast<Dali::Internal::Adaptor::Window*>(handle.GetObjectPtr()));
+}
 
 void Window::Add(Dali::Actor actor)
 {
@@ -108,6 +113,11 @@ Layer Window::GetRootLayer() const
   return GetImplementation(*this).GetRootLayer();
 }
 
+Layer Window::GetOverlayLayer()
+{
+  return GetImplementation(*this).GetOverlayLayer();
+}
+
 uint32_t Window::GetLayerCount() const
 {
   return GetImplementation(*this).GetLayerCount();
@@ -313,6 +323,11 @@ Dali::Window::WindowPosition Window::GetPosition() const
   return GetImplementation(*this).GetPosition();
 }
 
+void Window::SetLayout(unsigned int numCols, unsigned int numRows, unsigned int column, unsigned int row, unsigned int colSpan, unsigned int rowSpan)
+{
+  return GetImplementation(*this).SetLayout(numCols, numRows, column, row, colSpan, rowSpan);
+}
+
 void Window::SetTransparency(bool transparent)
 {
   GetImplementation(*this).SetTransparency(transparent);