1 #ifndef DALI_INTERNAL_WINDOWSYSTEM_COMMON_WINDOW_IMPL_H
2 #define DALI_INTERNAL_WINDOWSYSTEM_COMMON_WINDOW_IMPL_H
5 * Copyright (c) 2023 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/public-api/actors/layer.h>
23 #include <dali/public-api/adaptor-framework/window-enumerations.h>
24 #include <dali/public-api/events/touch-event.h>
25 #include <dali/public-api/object/base-object.h>
26 #include <dali/public-api/object/property-array.h>
27 #include <dali/public-api/object/ref-object.h>
30 #include <dali/devel-api/adaptor-framework/window-devel.h>
31 #include <dali/integration-api/adaptor-framework/scene-holder-impl.h>
32 #include <dali/internal/adaptor/common/adaptor-impl.h>
33 #include <dali/internal/window-system/common/event-handler.h>
34 #include <dali/public-api/adaptor-framework/key-grab.h>
35 #include <dali/public-api/adaptor-framework/window.h>
41 class RenderSurfaceInterface;
48 class WindowRenderSurface;
52 using WindowPtr = IntrusivePtr<Window>;
53 using OrientationPtr = IntrusivePtr<Orientation>;
54 using MouseInOutEventPtr = IntrusivePtr<Dali::DevelWindow::MouseInOutEvent>;
55 using MouseRelativeEventPtr = IntrusivePtr<Dali::DevelWindow::MouseRelativeEvent>;
56 using EventHandlerPtr = IntrusivePtr<EventHandler>;
59 * Window provides a surface to render onto with orientation & indicator properties.
61 class Window : public Dali::Internal::Adaptor::SceneHolder, public EventHandler::Observer, public ConnectionTracker
64 typedef Dali::Window::FocusChangeSignalType FocusChangeSignalType;
65 typedef Dali::Window::ResizeSignalType ResizeSignalType;
66 typedef Dali::DevelWindow::VisibilityChangedSignalType VisibilityChangedSignalType;
67 typedef Dali::DevelWindow::TransitionEffectEventSignalType TransitionEffectEventSignalType;
68 typedef Dali::DevelWindow::KeyboardRepeatSettingsChangedSignalType KeyboardRepeatSettingsChangedSignalType;
69 typedef Dali::DevelWindow::AuxiliaryMessageSignalType AuxiliaryMessageSignalType;
70 typedef Dali::DevelWindow::AccessibilityHighlightSignalType AccessibilityHighlightSignalType;
71 typedef Dali::DevelWindow::MovedSignalType MovedSignalType;
72 typedef Dali::DevelWindow::OrientationChangedSignalType OrientationChangedSignalType;
73 typedef Dali::DevelWindow::MouseInOutEventSignalType MouseInOutEventSignalType;
74 typedef Dali::DevelWindow::MouseRelativeEventSignalType MouseRelativeEventSignalType;
75 typedef Dali::DevelWindow::MoveCompletedSignalType MoveCompletedSignalType;
76 typedef Dali::DevelWindow::ResizeCompletedSignalType ResizeCompletedSignalType;
77 typedef Dali::DevelWindow::InsetsChangedSignalType InsetsChangedSignalType;
78 typedef Signal<void()> SignalType;
81 * @brief Create a new Window. This should only be called once by the Application class
82 * @param[in] name The window title
83 * @param[in] className The window class name
84 * @param[in] windowData The window data
85 * @return A newly allocated Window
87 static Window* New(const std::string& name, const std::string& className, const WindowData& windowData);
90 * @brief Create a new Window. This should only be called once by the Application class
91 * @param[in] surface The surface used to render on.
92 * @param[in] name The window title
93 * @param[in] className The window class name
94 * @param[in] windowData The window data
95 * @return A newly allocated Window
97 static Window* New(Any surface, const std::string& name, const std::string& className, const WindowData& windowData);
100 * @copydoc Dali::Window::SetClass()
102 void SetClass(std::string name, std::string className);
105 * @brief Gets the window class name.
106 * @return The class of the window
108 std::string GetClassName() const;
111 * @copydoc Dali::Window::Raise()
116 * @copydoc Dali::Window::Lower()
121 * @copydoc Dali::Window::Activate()
126 * @copydoc Dali::DevelWindow::Maximize()
128 void Maximize(bool maximize);
131 * @copydoc Dali::DevelWindow::IsMaximized()
133 bool IsMaximized() const;
136 * @copydoc Dali::DevelWindow::SetMaximumSize()
138 void SetMaximumSize(Dali::Window::WindowSize size);
141 * @copydoc Dali::DevelWindow::Minimize()
143 void Minimize(bool minimize);
146 * @copydoc Dali::DevelWindow::IsMinimized()
148 bool IsMinimized() const;
151 * @copydoc Dali::DevelWindow::SetMimimumSize()
153 void SetMimimumSize(Dali::Window::WindowSize size);
156 * @copydoc Dali::Window::GetLayerCount()
158 uint32_t GetLayerCount() const;
161 * @copydoc Dali::Window::GetLayer()
163 Dali::Layer GetLayer(uint32_t depth) const;
166 * @copydoc Dali::Window::KeepRendering()
168 void KeepRendering(float durationSeconds);
171 * @copydoc Dali::Window::SetPartialUpdateEnabled()
173 void SetPartialUpdateEnabled(bool enabled);
176 * @copydoc Dali::Window::IsPartialUpdateEnabled()
178 bool IsPartialUpdateEnabled() const;
181 * @brief Get window resource ID assigned by window manager
182 * @return The resource ID of the window
184 std::string GetNativeResourceId() const;
187 * @copydoc Dali::Window::AddAvailableOrientation()
189 void AddAvailableOrientation(WindowOrientation orientation);
192 * @copydoc Dali::Window::RemoveAvailableOrientation()
194 void RemoveAvailableOrientation(WindowOrientation orientation);
197 * @copydoc Dali::Window::SetPreferredOrientation()
199 void SetPreferredOrientation(WindowOrientation orientation);
202 * @copydoc Dali::Window::GetPreferredOrientation()
204 WindowOrientation GetPreferredOrientation();
207 * @copydoc Dali::Window::SetAcceptFocus()
209 void SetAcceptFocus(bool accept);
212 * @copydoc Dali::Window::IsFocusAcceptable()
214 bool IsFocusAcceptable() const;
217 * @copydoc Dali::Window::Show()
222 * @copydoc Dali::Window::Hide()
227 * @copydoc Dali::Window::GetSupportedAuxiliaryHintCount()
229 unsigned int GetSupportedAuxiliaryHintCount() const;
232 * @copydoc Dali::Window::GetSupportedAuxiliaryHint()
234 std::string GetSupportedAuxiliaryHint(unsigned int index) const;
237 * @copydoc Dali::Window::AddAuxiliaryHint()
239 unsigned int AddAuxiliaryHint(const std::string& hint, const std::string& value);
242 * @copydoc Dali::Window::RemoveAuxiliaryHint()
244 bool RemoveAuxiliaryHint(unsigned int id);
247 * @copydoc Dali::Window::SetAuxiliaryHintValue()
249 bool SetAuxiliaryHintValue(unsigned int id, const std::string& value);
252 * @copydoc Dali::Window::GetAuxiliaryHintValue()
254 std::string GetAuxiliaryHintValue(unsigned int id) const;
257 * @copydoc Dali::Window::GetAuxiliaryHintId()
259 unsigned int GetAuxiliaryHintId(const std::string& hint) const;
262 * @copydoc Dali::Window::SetInputRegion()
264 void SetInputRegion(const Rect<int>& inputRegion);
267 * @copydoc Dali::Window::SetType()
269 void SetType(WindowType type);
272 * @copydoc Dali::Window::GetType() const
274 WindowType GetType() const;
277 * @copydoc Dali::Window::SetNotificationLevel()
279 WindowOperationResult SetNotificationLevel(WindowNotificationLevel level);
282 * @copydoc Dali::Window::GetNotificationLevel()
284 WindowNotificationLevel GetNotificationLevel() const;
287 * @copydoc Dali::Window::SetOpaqueState()
289 void SetOpaqueState(bool opaque);
292 * @copydoc Dali::Window::IsOpaqueState()
294 bool IsOpaqueState() const;
297 * @copydoc Dali::Window::SetScreenOffMode()
299 WindowOperationResult SetScreenOffMode(WindowScreenOffMode screenOffMode);
302 * @copydoc Dali::Window::GetScreenOffMode()
304 WindowScreenOffMode GetScreenOffMode() const;
307 * @copydoc Dali::Window::SetBrightness()
309 WindowOperationResult SetBrightness(int brightness);
312 * @copydoc Dali::Window::GetBrightness()
314 int GetBrightness() const;
317 * @copydoc Dali::Window::SetSize()
319 void SetSize(Dali::Window::WindowSize size);
322 * @copydoc Dali::Window::GetSize()
324 Dali::Window::WindowSize GetSize() const;
327 * @copydoc Dali::Window::SetPosition()
329 void SetPosition(Dali::Window::WindowPosition position);
332 * @copydoc Dali::Window::GetPosition()
334 Dali::Window::WindowPosition GetPosition() const;
337 * @copydoc Dali::DevelWindow::SetPositionSize()
339 void SetPositionSize(PositionSize positionSize);
342 * @copydoc Dali::DevelWindow::GetPositionSize()
344 PositionSize GetPositionSize() const;
347 * @copydoc Dali::Window::SetLayout()
349 void SetLayout(unsigned int numCols, unsigned int numRows, unsigned int column, unsigned int row, unsigned int colSpan, unsigned int rowSpan);
352 * @copydoc Dali::Window::GetRootLayer()
354 Dali::Layer GetRootLayer() const;
357 * @copydoc Dali::Window::SetTransparency()
359 void SetTransparency(bool transparent);
362 * @copydoc Dali::KeyGrab::GrabKey()
364 bool GrabKey(Dali::KEY key, KeyGrab::KeyGrabMode grabMode);
367 * @copydoc Dali::KeyGrab::UngrabKey()
369 bool UngrabKey(Dali::KEY key);
372 * @copydoc Dali::KeyGrab::GrabKeyList()
374 bool GrabKeyList(const Dali::Vector<Dali::KEY>& key, const Dali::Vector<KeyGrab::KeyGrabMode>& grabMode, Dali::Vector<bool>& result);
377 * @copydoc Dali::KeyGrab::UngrabKeyList()
379 bool UngrabKeyList(const Dali::Vector<Dali::KEY>& key, Dali::Vector<bool>& result);
382 * @copydoc Dali::DevelWindow::Get()
384 static Dali::Window Get(Dali::Actor actor);
387 * @copydoc Dali::DevelWindow::SetParent(Window window, Window parent)
389 void SetParent(Dali::Window& parent);
392 * @copydoc Dali::DevelWindow::SetParent(Window window, Window parent, bool belowParent)
394 void SetParent(Dali::Window& parent, bool belowParent);
397 * @copydoc Dali::DevelWindow::Unparent()
402 * @copydoc Dali::DevelWindow::GetParent()
404 Dali::Window GetParent();
407 * @copydoc Dali::DevelWindow::GetCurrentOrientation()
409 WindowOrientation GetCurrentOrientation() const;
412 * @copydoc Dali::DevelWindow::GetPhysicalOrientation()
414 int GetPhysicalOrientation() const;
417 * @copydoc Dali::DevelWindow::SetAvailableOrientations()
419 void SetAvailableOrientations(const Dali::Vector<WindowOrientation>& orientations);
422 * @copydoc Dali::DevelWindow::SetPositionSizeWithOrientation()
424 void SetPositionSizeWithOrientation(PositionSize positionSize, WindowOrientation orientation);
427 * @brief Emit the accessibility highlight signal.
428 * The highlight indicates that it is an object to interact with the user regardless of focus.
429 * After setting the highlight on the object, you can do things that the object can do, such as
430 * giving or losing focus.
432 * @param[in] highlight If window needs to grab or clear highlight.
434 void EmitAccessibilityHighlightSignal(bool highlight);
437 * @brief Sets the render notification trigger to call when render thread is completed a frame
439 * @param[in] renderNotification to use
441 void SetRenderNotification(TriggerEventInterface* renderNotification);
443 public: // Dali::Internal::Adaptor::SceneHolder
445 * @copydoc Dali::Internal::Adaptor::SceneHolder::GetNativeHandle
447 Dali::Any GetNativeHandle() const override;
450 * @copydoc Dali::Internal::Adaptor::SceneHolder::IsVisible
452 bool IsVisible() const override;
455 * @copydoc Dali::DevelWindow::GetNativeId()
457 int32_t GetNativeId() const;
460 * @copydoc Dali::DevelWindow::RequestMoveToServer()
462 void RequestMoveToServer();
465 * @copydoc Dali::DevelWindow::RequestResizeToServer()
467 void RequestResizeToServer(WindowResizeDirection direction);
470 * @copydoc Dali::DevelWindow::EnableFloatingMode()
472 void EnableFloatingMode(bool enable);
475 * @copydoc Dali::DevelWindow::IsFloatingModeEnabled()
477 bool IsFloatingModeEnabled();
480 * @copydoc Dali::DevelWindow::IncludeInputRegion()
482 void IncludeInputRegion(const Rect<int>& inputRegion);
485 * @copydoc Dali::DevelWindow::ExcludeInputRegion()
487 void ExcludeInputRegion(const Rect<int>& inputRegion);
490 * @copydoc Dali::DevelWindow::SetNeedsRotationCompletedAcknowledgement()
492 void SetNeedsRotationCompletedAcknowledgement(bool needAcknowledgement);
495 * @copydoc Dali::DevelWindow::SendRotationCompletedAcknowledgement()
497 void SendRotationCompletedAcknowledgement();
500 * @copydoc Dali::DevelWindow::IsWindowRotating()
502 bool IsWindowRotating() const;
505 * @copydoc Dali::DevelWindow::GetLastKeyEvent()
507 const Dali::KeyEvent& GetLastKeyEvent() const;
510 * @copydoc Dali::DevelWindow::GetLastTouchEvent()
512 const Dali::TouchEvent& GetLastTouchEvent() const;
515 * @copydoc Dali::DevelWindow::PointerConstraintsLock()
517 bool PointerConstraintsLock();
520 * @copydoc Dali::DevelWindow::PointerConstraintsUnlock()
522 bool PointerConstraintsUnlock();
525 * @copydoc Dali::DevelWindow::LockedPointerRegionSet()
527 void LockedPointerRegionSet(int32_t x, int32_t y, int32_t width, int32_t height);
530 * @copydoc Dali::DevelWindow::LockedPointerCursorPositionHintSet()
532 void LockedPointerCursorPositionHintSet(int32_t x, int32_t y);
535 * @copydoc Dali::DevelWindow::PointerWarp()
537 bool PointerWarp(int32_t x, int32_t y);
540 * @copydoc Dali::DevelWindow::CursorVisibleSet()
542 void CursorVisibleSet(bool visible);
545 * @copydoc Dali::DevelWindow::KeyboardGrab()
547 bool KeyboardGrab(Device::Subclass::Type deviceSubclass);
550 * @copydoc Dali::DevelWindow::KeyboardUnGrab()
552 bool KeyboardUnGrab();
556 * @brief Enumeration for orietation mode.
557 * The Orientation Mode is related to screen size.
558 * If screen width is longer than height, the Orientation Mode will have LANDSCAPE.
559 * Otherwise screen width is shorter than height or same, the Orientation Mode will have PORTRAIT.
561 enum class OrientationMode
568 * Private constructor.
579 * Second stage initialization
581 void Initialize(Any surface, const PositionSize& positionSize, const std::string& name, const std::string& className, WindowType type);
584 * Called when the window becomes iconified or deiconified.
586 void OnIconifyChanged(bool iconified);
589 * Called when the window becomes maximized or unmaximized.
591 void OnMaximizeChanged(bool maximized);
594 * Called when the window focus is changed.
596 void OnFocusChanged(bool focusIn);
599 * Called when the output is transformed.
601 void OnOutputTransformed();
604 * Called when the window receives a delete request.
606 void OnDeleteRequest();
609 * Called when the window receives a Transition effect-start/end event.
611 void OnTransitionEffectEvent(WindowEffectState state, WindowEffectType type);
614 * @brief Called when window receives a keyboard repeat event.
616 void OnKeyboardRepeatSettingsChanged();
619 * @brief Called when the window redraw is requested.
621 void OnWindowRedrawRequest();
624 * @brief Called when the window's geometry data is changed by display server or client.
625 * It is based on configure noification event.
627 * @param[in] positionSize the updated window's position and size.
629 void OnUpdatePositionSize(Dali::PositionSize& positionSize);
632 * @brief Called when display server sent the auxiliary message.
634 * @param[in] key the auxiliary message's key.
635 * @param[in] value the auxiliary message's value.
636 * @param[in] options the auxiliary message's options. This is the list of string.
638 void OnAuxiliaryMessage(const std::string& key, const std::string& value, const Property::Array& options);
641 * @brief Called when Accessibility is enabled.
643 * This method is to register the window to accessibility bridge.
645 void OnAccessibilityEnabled();
648 * @brief Called when Accessibility is disabled.
650 * This method is to remove the window from accessibility bridge.
652 void OnAccessibilityDisabled();
655 * Called when the window rotation is finished.
657 * This signal is emmit when window rotation is finisehd and WindowRotationCompleted() is called.
659 void OnRotationFinished();
662 * @brief Called when the mouse in or out event is received.
663 * @param[in] mouseInOutEvent the mouse event
665 void OnMouseInOutEvent(const Dali::DevelWindow::MouseInOutEvent& mouseInOutEvent);
668 * @brief Called when the mouse relative event is received.
669 * @param[in] MouseRelativeEvent the mouse event
671 void OnMouseRelativeEvent(const Dali::DevelWindow::MouseRelativeEvent& MouseRelativeEvent);
674 * @brief Called when the window is moved by display server.
676 * @param[in] position the moved window's position.
678 void OnMoveCompleted(Dali::Window::WindowPosition& position);
681 * @brief Called when the window is resized by display server.
683 * @param[in] positionSize the resized window's size.
685 void OnResizeCompleted(Dali::Window::WindowSize& size);
688 * @brief Set available orientation to window base.
690 void SetAvailableAnlges(const std::vector<int>& angles);
693 * @brief Convert from window orientation to angle using OrientationMode.
695 int ConvertToAngle(WindowOrientation orientation);
698 * @brief Convert from angle to window orientation using OrientationMode.
700 WindowOrientation ConvertToOrientation(int angle) const;
703 * @brief Check available window orientation for Available orientation.
705 bool IsOrientationAvailable(WindowOrientation orientation) const;
708 * @brief Sets user geometry flag when window's geometry is changed.
709 * Window is created with screen size or not.
710 * If window is created with screen size or the geometry is changed by user,
711 * client should inform to server setting user.geometry flag
713 void SetUserGeometryPolicy();
716 * @brief Called when window insets are changed by appearing or disappearing indicator, virtual keyboard, or clipboard.
718 * @param[in] partType the type of the part that occurs the window insets change.
719 * @param[in] partState the state of the part that occurs the window insets change.
720 * @param[in] insets the extents value of window insets.
722 void OnInsetsChanged(WindowInsetsPartType partType, WindowInsetsPartState partState, const Extents& insets);
724 private: // Dali::Internal::Adaptor::SceneHolder
726 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnAdaptorSet
728 void OnAdaptorSet(Dali::Adaptor& adaptor) override;
731 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnSurfaceSet
733 void OnSurfaceSet(Dali::RenderSurfaceInterface* surface) override;
736 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnPause
738 void OnPause() override;
741 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnResume
743 void OnResume() override;
746 * @copydoc Dali::Internal::Adaptor::SceneHolder::RecalculatePosition
748 Vector2 RecalculatePosition(const Vector2& position) override;
750 private: // Dali::Internal::Adaptor::EventHandler::Observer
752 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnTouchPoint
754 void OnTouchPoint(Dali::Integration::Point& point, int timeStamp) override;
757 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnWheelEvent
759 void OnWheelEvent(Dali::Integration::WheelEvent& wheelEvent) override;
762 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnKeyEvent
764 void OnKeyEvent(Dali::Integration::KeyEvent& keyEvent) override;
767 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnRotation
769 void OnRotation(const RotationEvent& rotation) override;
773 * @copydoc Dali::Window::FocusChangeSignal()
775 FocusChangeSignalType& FocusChangeSignal()
777 return mFocusChangeSignal;
781 * @copydoc Dali::Window::ResizedSignal()
783 ResizeSignalType& ResizeSignal()
785 return mResizeSignal;
789 * This signal is emitted when the window is requesting to be deleted
791 SignalType& DeleteRequestSignal()
793 return mDeleteRequestSignal;
797 * @copydoc Dali::DevelWindow::VisibilityChangedSignal()
799 VisibilityChangedSignalType& VisibilityChangedSignal()
801 return mVisibilityChangedSignal;
805 * @copydoc Dali::Window::SignalEventProcessingFinished()
807 Dali::DevelWindow::EventProcessingFinishedSignalType& EventProcessingFinishedSignal()
809 return mScene.EventProcessingFinishedSignal();
813 * @copydoc Dali::DevelWindow::TransitionEffectEventSignal()
815 TransitionEffectEventSignalType& TransitionEffectEventSignal()
817 return mTransitionEffectEventSignal;
821 * @copydoc Dali::DevelWindow::KeyboardRepeatSettingsChangedSignal()
823 KeyboardRepeatSettingsChangedSignalType& KeyboardRepeatSettingsChangedSignal()
825 return mKeyboardRepeatSettingsChangedSignal;
829 * @copydoc Dali::DevelWindow::AuxiliaryMessageSignal()
831 AuxiliaryMessageSignalType& AuxiliaryMessageSignal()
833 return mAuxiliaryMessageSignal;
837 * @copydoc Dali::DevelWindow::AccessibilityHighlightSignal()
839 AccessibilityHighlightSignalType& AccessibilityHighlightSignal()
841 return mAccessibilityHighlightSignal;
845 * @copydoc Dali::DevelWindow::MovedSignal()
847 MovedSignalType& MovedSignal()
853 * @copydoc Dali::DevelWindow::OrientationChangedSignal()
855 OrientationChangedSignalType& OrientationChangedSignal()
857 return mOrientationChangedSignal;
861 * @copydoc Dali::DevelWindow::MouseInOutEventSignal()
863 MouseInOutEventSignalType& MouseInOutEventSignal()
865 return mMouseInOutEventSignal;
869 * @copydoc Dali::DevelWindow::MouseRelativeEventSignal()
871 MouseRelativeEventSignalType& MouseRelativeEventSignal()
873 return mMouseRelativeEventSignal;
877 * @copydoc Dali::DevelWindow::MoveCompletedSignal()
879 MoveCompletedSignalType& MoveCompletedSignal()
881 return mMoveCompletedSignal;
885 * @copydoc Dali::DevelWindow::ResizeCompletedSignal()
887 ResizeCompletedSignalType& ResizeCompletedSignal()
889 return mResizeCompletedSignal;
893 * @copydoc Dali::DevelWindow::InsetsChangedSignal()
895 InsetsChangedSignalType& InsetsChangedSignal()
897 return mInsetsChangedSignal;
901 WindowRenderSurface* mWindowSurface; ///< The window rendering surface
902 WindowBase* mWindowBase;
904 std::string mClassName;
905 Dali::Window mParentWindow;
907 OrientationPtr mOrientation;
908 std::vector<int> mAvailableAngles;
911 int mRotationAngle; ///< The angle of the rotation
912 int mWindowWidth; ///< The width of the window
913 int mWindowHeight; ///< The height of the window
914 int mNativeWindowId; ///< The Native Window Id
916 EventHandlerPtr mEventHandler; ///< The window events handler
917 OrientationMode mOrientationMode; ///< The physical screen mode is portrait or landscape
920 SignalType mDeleteRequestSignal;
921 FocusChangeSignalType mFocusChangeSignal;
922 ResizeSignalType mResizeSignal;
923 VisibilityChangedSignalType mVisibilityChangedSignal;
924 TransitionEffectEventSignalType mTransitionEffectEventSignal;
925 KeyboardRepeatSettingsChangedSignalType mKeyboardRepeatSettingsChangedSignal;
926 AuxiliaryMessageSignalType mAuxiliaryMessageSignal;
927 AccessibilityHighlightSignalType mAccessibilityHighlightSignal;
928 MovedSignalType mMovedSignal;
929 OrientationChangedSignalType mOrientationChangedSignal;
930 MouseInOutEventSignalType mMouseInOutEventSignal;
931 MouseRelativeEventSignalType mMouseRelativeEventSignal;
932 MoveCompletedSignalType mMoveCompletedSignal;
933 ResizeCompletedSignalType mResizeCompletedSignal;
934 InsetsChangedSignalType mInsetsChangedSignal;
936 Dali::KeyEvent mLastKeyEvent;
937 Dali::TouchEvent mLastTouchEvent;
939 bool mIsTransparent : 1;
940 bool mIsFocusAcceptable : 1;
943 bool mOpaqueState : 1;
944 bool mWindowRotationAcknowledgement : 1;
946 bool mIsWindowRotating : 1; ///< The window rotating flag.
947 bool mIsEnabledUserGeometry : 1; ///< The user geometry enable flag.
950 } // namespace Adaptor
951 } // namespace Internal
953 // Helpers for public-api forwarding methods
955 inline Internal::Adaptor::Window& GetImplementation(Dali::Window& window)
957 DALI_ASSERT_ALWAYS(window && "Window handle is empty");
958 BaseObject& object = window.GetBaseObject();
959 return static_cast<Internal::Adaptor::Window&>(object);
962 inline const Internal::Adaptor::Window& GetImplementation(const Dali::Window& window)
964 DALI_ASSERT_ALWAYS(window && "Window handle is empty");
965 const BaseObject& object = window.GetBaseObject();
966 return static_cast<const Internal::Adaptor::Window&>(object);
971 #endif // DALI_INTERNAL_WINDOWSYSTEM_COMMON_WINDOW_IMPL_H