[dali_2.3.29] Merge branch 'devel/master'
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / window-devel.cpp
index 10a1642..b41149a 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.
@@ -48,7 +48,11 @@ Window New(Any surface, PositionSize windowPosition, const std::string& name, co
 
   if(isNewWindowAllowed)
   {
-    Internal::Adaptor::Window* window = Internal::Adaptor::Window::New(surface, windowPosition, name, className, WindowType::NORMAL, isTransparent);
+    WindowData windowData;
+    windowData.SetPositionSize(windowPosition);
+    windowData.SetTransparency(isTransparent);
+    windowData.SetWindowType(WindowType::NORMAL);
+    Internal::Adaptor::Window* window = Internal::Adaptor::Window::New(surface, name, className, windowData);
 
     Integration::SceneHolder sceneHolder = Integration::SceneHolder(window);
     if(isAdaptorAvailable)
@@ -116,6 +120,21 @@ 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);
@@ -186,6 +205,11 @@ void EnableFloatingMode(Window window, bool enable)
   GetImplementation(window).EnableFloatingMode(enable);
 }
 
+bool IsFloatingModeEnabled(Window window)
+{
+  return GetImplementation(window).IsFloatingModeEnabled();
+}
+
 void IncludeInputRegion(Window window, const Rect<int>& inputRegion)
 {
   GetImplementation(window).IncludeInputRegion(inputRegion);
@@ -224,6 +248,12 @@ void FeedKeyEvent(Window window, const Dali::KeyEvent& keyEvent)
   GetImplementation(window).FeedKeyEvent(convertedEvent);
 }
 
+void FeedHoverEvent(Window window, const Dali::TouchPoint& point)
+{
+  Integration::Point convertedPoint(point);
+  GetImplementation(window).FeedHoverEvent(convertedPoint);
+}
+
 void Maximize(Window window, bool maximize)
 {
   GetImplementation(window).Maximize(maximize);
@@ -269,11 +299,96 @@ const TouchEvent& GetLastTouchEvent(Window window)
   return GetImplementation(window).GetLastTouchEvent();
 }
 
+const HoverEvent& GetLastHoverEvent(Window window)
+{
+  return GetImplementation(window).GetLastHoverEvent();
+}
+
+bool PointerConstraintsLock(Window window)
+{
+  return GetImplementation(window).PointerConstraintsLock();
+}
+
+bool PointerConstraintsUnlock(Window window)
+{
+  return GetImplementation(window).PointerConstraintsUnlock();
+}
+
+void LockedPointerRegionSet(Window window, int32_t x, int32_t y, int32_t width, int32_t height)
+{
+  GetImplementation(window).LockedPointerRegionSet(x, y, width, height);
+}
+
+void LockedPointerCursorPositionHintSet(Window window, int32_t x, int32_t y)
+{
+  GetImplementation(window).LockedPointerCursorPositionHintSet(x, y);
+}
+
+bool PointerWarp(Window window, int32_t x, int32_t y)
+{
+  return GetImplementation(window).PointerWarp(x, y);
+}
+
+void CursorVisibleSet(Window window, bool visible)
+{
+  GetImplementation(window).CursorVisibleSet(visible);
+}
+
+bool KeyboardGrab(Window window, Device::Subclass::Type deviceSubclass)
+{
+  return GetImplementation(window).KeyboardGrab(deviceSubclass);
+}
+
+bool KeyboardUnGrab(Window window)
+{
+  return GetImplementation(window).KeyboardUnGrab();
+}
+
+void SetFullScreen(Window window, bool fullscreen)
+{
+  GetImplementation(window).SetFullScreen(fullscreen);
+}
+
+bool GetFullScreen(Window window)
+{
+  return GetImplementation(window).GetFullScreen();
+}
+
+void SetFrontBufferRendering(Window window, bool enable)
+{
+  GetImplementation(window).SetFrontBufferRendering(enable);
+}
+
+bool GetFrontBufferRendering(Window window)
+{
+  return GetImplementation(window).GetFrontBufferRendering();
+}
+
 InterceptKeyEventSignalType& InterceptKeyEventSignal(Window window)
 {
   return GetImplementation(window).InterceptKeyEventSignal();
 }
 
+MouseInOutEventSignalType& MouseInOutEventSignal(Window window)
+{
+  return GetImplementation(window).MouseInOutEventSignal();
+}
+
+InsetsChangedSignalType& InsetsChangedSignal(Window window)
+{
+  return GetImplementation(window).InsetsChangedSignal();
+}
+
+MouseRelativeEventSignalType& MouseRelativeEventSignal(Window window)
+{
+  return GetImplementation(window).MouseRelativeEventSignal();
+}
+
+PointerConstraintsSignalType& PointerConstraintsSignal(Window window)
+{
+  return GetImplementation(window).PointerConstraintsSignal();
+}
+
 } // namespace DevelWindow
 
 } // namespace Dali