/*
- * Copyright (c) 2020 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2021 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.
*/
// EXTERNAL INCLUDES
+#include <dali/public-api/adaptor-framework/window-enumerations.h>
#include <dali/public-api/events/key-event.h>
#include <dali/public-api/events/wheel-event.h>
-#include <dali/public-api/adaptor-framework/window-enumerations.h>
// INTERNAL INCLUDES
#include <dali/devel-api/adaptor-framework/window-devel.h>
if(isNewWindowAllowed)
{
- Internal::Adaptor::Window* window = Internal::Adaptor::Window::New(surface, windowPosition, name, className, isTransparent);
+ Internal::Adaptor::Window* window = Internal::Adaptor::Window::New(surface, windowPosition, name, className, WindowType::NORMAL, isTransparent);
Integration::SceneHolder sceneHolder = Integration::SceneHolder(window);
if(isAdaptorAvailable)
return GetImplementation(window).KeyboardRepeatSettingsChangedSignal();
}
+AuxiliaryMessageSignalType& AuxiliaryMessageSignal(Window window)
+{
+ return GetImplementation(window).AuxiliaryMessageSignal();
+}
+
+AccessibilityHighlightSignalType& AccessibilityHighlightSignal(Window window)
+{
+ return GetImplementation(window).AccessibilityHighlightSignal();
+}
+
void SetParent(Window window, Window parent)
{
GetImplementation(window).SetParent(parent);
}
+void SetParent(Window window, Window parent, bool belowParent)
+{
+ GetImplementation(window).SetParent(parent, belowParent);
+}
+
void Unparent(Window window)
{
GetImplementation(window).Unparent();
return GetImplementation(window).GetCurrentOrientation();
}
+int GetPhysicalOrientation(Window window)
+{
+ return GetImplementation(window).GetPhysicalOrientation();
+}
+
void SetAvailableOrientations(Window window, const Dali::Vector<WindowOrientation>& orientations)
{
GetImplementation(window).SetAvailableOrientations(orientations);
GetImplementation(window).AddFramePresentedCallback(std::move(callback), frameId);
}
+void SetPositionSizeWithOrientation(Window window, PositionSize positionSize, WindowOrientation orientation)
+{
+ GetImplementation(window).SetPositionSizeWithOrientation(positionSize, orientation);
+}
+
+void RequestMoveToServer(Window window)
+{
+ GetImplementation(window).RequestMoveToServer();
+}
+
+void RequestResizeToServer(Window window, WindowResizeDirection direction)
+{
+ GetImplementation(window).RequestResizeToServer(direction);
+}
+
+void EnableFloatingMode(Window window, bool enable)
+{
+ GetImplementation(window).EnableFloatingMode(enable);
+}
+
+void IncludeInputRegion(Window window, const Rect<int>& inputRegion)
+{
+ GetImplementation(window).IncludeInputRegion(inputRegion);
+}
+
+void ExcludeInputRegion(Window window, const Rect<int>& inputRegion)
+{
+ GetImplementation(window).ExcludeInputRegion(inputRegion);
+}
+
+void SetNeedsRotationCompletedAcknowledgement(Window window, bool needAcknowledgement)
+{
+ GetImplementation(window).SetNeedsRotationCompletedAcknowledgement(needAcknowledgement);
+}
+
+void SendRotationCompletedAcknowledgement(Window window)
+{
+ GetImplementation(window).SendRotationCompletedAcknowledgement();
+}
+
+void FeedTouchPoint(Window window, const Dali::TouchPoint& point, int32_t timeStamp)
+{
+ Integration::Point convertedPoint(point);
+ GetImplementation(window).FeedTouchPoint(convertedPoint, timeStamp);
+}
+
+void FeedWheelEvent(Window window, const Dali::WheelEvent& wheelEvent)
+{
+ Integration::WheelEvent convertedEvent(static_cast<Integration::WheelEvent::Type>(wheelEvent.GetType()), wheelEvent.GetDirection(), wheelEvent.GetModifiers(), wheelEvent.GetPoint(), wheelEvent.GetDelta(), wheelEvent.GetTime());
+ GetImplementation(window).FeedWheelEvent(convertedEvent);
+}
+
+void FeedKeyEvent(Window window, const Dali::KeyEvent& keyEvent)
+{
+ Integration::KeyEvent convertedEvent(keyEvent.GetKeyName(), keyEvent.GetLogicalKey(), keyEvent.GetKeyString(), keyEvent.GetKeyCode(), keyEvent.GetKeyModifier(), keyEvent.GetTime(), static_cast<Integration::KeyEvent::State>(keyEvent.GetState()), keyEvent.GetCompose(), keyEvent.GetDeviceName(), keyEvent.GetDeviceClass(), keyEvent.GetDeviceSubclass());
+ GetImplementation(window).FeedKeyEvent(convertedEvent);
+}
+
+void Maximize(Window window, bool maximize)
+{
+ GetImplementation(window).Maximize(maximize);
+}
+
+bool IsMaximized(Window window)
+{
+ return GetImplementation(window).IsMaximized();
+}
+
+void Minimize(Window window, bool miniimize)
+{
+ GetImplementation(window).Minimize(miniimize);
+}
+
+bool IsMinimized(Window window)
+{
+ return GetImplementation(window).IsMinimized();
+}
+
} // namespace DevelWindow
} // namespace Dali