Merge "Add window move/resize completed signal" into devel/master
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / window-devel.cpp
index ff7c519..897ea9f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2022 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2023 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.
@@ -111,6 +111,26 @@ AccessibilityHighlightSignalType& AccessibilityHighlightSignal(Window window)
   return GetImplementation(window).AccessibilityHighlightSignal();
 }
 
+MovedSignalType& MovedSignal(Window window)
+{
+  return GetImplementation(window).MovedSignal();
+}
+
+OrientationChangedSignalType& OrientationChangedSignal(Window window)
+{
+  return GetImplementation(window).OrientationChangedSignal();
+}
+
+MoveCompletedSignalType& MoveCompletedSignal(Window window)
+{
+  return GetImplementation(window).MoveCompletedSignal();
+}
+
+ResizeCompletedSignalType& ResizeCompletedSignal(Window window)
+{
+  return GetImplementation(window).ResizeCompletedSignal();
+}
+
 void SetParent(Window window, Window parent)
 {
   GetImplementation(window).SetParent(parent);
@@ -131,11 +151,6 @@ Window GetParent(Window window)
   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();
@@ -234,6 +249,11 @@ bool IsMaximized(Window window)
   return GetImplementation(window).IsMaximized();
 }
 
+void SetMaximumSize(Window window, Dali::Window::WindowSize size)
+{
+  GetImplementation(window).SetMaximumSize(size);
+}
+
 void Minimize(Window window, bool miniimize)
 {
   GetImplementation(window).Minimize(miniimize);
@@ -244,6 +264,11 @@ bool IsMinimized(Window window)
   return GetImplementation(window).IsMinimized();
 }
 
+void SetMimimumSize(Window window, Dali::Window::WindowSize size)
+{
+  GetImplementation(window).SetMimimumSize(size);
+}
+
 bool IsWindowRotating(Window window)
 {
   return GetImplementation(window).IsWindowRotating();
@@ -259,6 +284,16 @@ const TouchEvent& GetLastTouchEvent(Window window)
   return GetImplementation(window).GetLastTouchEvent();
 }
 
+InterceptKeyEventSignalType& InterceptKeyEventSignal(Window window)
+{
+  return GetImplementation(window).InterceptKeyEventSignal();
+}
+
+MouseInOutEventSignalType& MouseInOutEventSignal(Window window)
+{
+  return GetImplementation(window).MouseInOutEventSignal();
+}
+
 } // namespace DevelWindow
 
 } // namespace Dali