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);
541 * @brief Enumeration for orietation mode.
542 * The Orientation Mode is related to screen size.
543 * If screen width is longer than height, the Orientation Mode will have LANDSCAPE.
544 * Otherwise screen width is shorter than height or same, the Orientation Mode will have PORTRAIT.
546 enum class OrientationMode
553 * Private constructor.
564 * Second stage initialization
566 void Initialize(Any surface, const PositionSize& positionSize, const std::string& name, const std::string& className, WindowType type);
569 * Called when the window becomes iconified or deiconified.
571 void OnIconifyChanged(bool iconified);
574 * Called when the window becomes maximized or unmaximized.
576 void OnMaximizeChanged(bool maximized);
579 * Called when the window focus is changed.
581 void OnFocusChanged(bool focusIn);
584 * Called when the output is transformed.
586 void OnOutputTransformed();
589 * Called when the window receives a delete request.
591 void OnDeleteRequest();
594 * Called when the window receives a Transition effect-start/end event.
596 void OnTransitionEffectEvent(WindowEffectState state, WindowEffectType type);
599 * @brief Called when window receives a keyboard repeat event.
601 void OnKeyboardRepeatSettingsChanged();
604 * @brief Called when the window redraw is requested.
606 void OnWindowRedrawRequest();
609 * @brief Called when the window's geometry data is changed by display server or client.
610 * It is based on configure noification event.
612 * @param[in] positionSize the updated window's position and size.
614 void OnUpdatePositionSize(Dali::PositionSize& positionSize);
617 * @brief Called when display server sent the auxiliary message.
619 * @param[in] key the auxiliary message's key.
620 * @param[in] value the auxiliary message's value.
621 * @param[in] options the auxiliary message's options. This is the list of string.
623 void OnAuxiliaryMessage(const std::string& key, const std::string& value, const Property::Array& options);
626 * @brief Called when Accessibility is enabled.
628 * This method is to register the window to accessibility bridge.
630 void OnAccessibilityEnabled();
633 * @brief Called when Accessibility is disabled.
635 * This method is to remove the window from accessibility bridge.
637 void OnAccessibilityDisabled();
640 * Called when the window rotation is finished.
642 * This signal is emmit when window rotation is finisehd and WindowRotationCompleted() is called.
644 void OnRotationFinished();
647 * @brief Called when the mouse in or out event is received.
648 * @param[in] mouseInOutEvent the mouse event
650 void OnMouseInOutEvent(const Dali::DevelWindow::MouseInOutEvent& mouseInOutEvent);
653 * @brief Called when the mouse relative event is received.
654 * @param[in] MouseRelativeEvent the mouse event
656 void OnMouseRelativeEvent(const Dali::DevelWindow::MouseRelativeEvent& MouseRelativeEvent);
659 * @brief Called when the window is moved by display server.
661 * @param[in] position the moved window's position.
663 void OnMoveCompleted(Dali::Window::WindowPosition& position);
666 * @brief Called when the window is resized by display server.
668 * @param[in] positionSize the resized window's size.
670 void OnResizeCompleted(Dali::Window::WindowSize& size);
673 * @brief Set available orientation to window base.
675 void SetAvailableAnlges(const std::vector<int>& angles);
678 * @brief Convert from window orientation to angle using OrientationMode.
680 int ConvertToAngle(WindowOrientation orientation);
683 * @brief Convert from angle to window orientation using OrientationMode.
685 WindowOrientation ConvertToOrientation(int angle) const;
688 * @brief Check available window orientation for Available orientation.
690 bool IsOrientationAvailable(WindowOrientation orientation) const;
693 * @brief Sets user geometry flag when window's geometry is changed.
694 * Window is created with screen size or not.
695 * If window is created with screen size or the geometry is changed by user,
696 * client should inform to server setting user.geometry flag
698 void SetUserGeometryPolicy();
701 * @brief Called when window insets are changed by appearing or disappearing indicator, virtual keyboard, or clipboard.
703 * @param[in] partType the type of the part that occurs the window insets change.
704 * @param[in] partState the state of the part that occurs the window insets change.
705 * @param[in] insets the extents value of window insets.
707 void OnInsetsChanged(WindowInsetsPartType partType, WindowInsetsPartState partState, const Extents& insets);
709 private: // Dali::Internal::Adaptor::SceneHolder
711 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnAdaptorSet
713 void OnAdaptorSet(Dali::Adaptor& adaptor) override;
716 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnSurfaceSet
718 void OnSurfaceSet(Dali::RenderSurfaceInterface* surface) override;
721 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnPause
723 void OnPause() override;
726 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnResume
728 void OnResume() override;
731 * @copydoc Dali::Internal::Adaptor::SceneHolder::RecalculatePosition
733 Vector2 RecalculatePosition(const Vector2& position) override;
735 private: // Dali::Internal::Adaptor::EventHandler::Observer
737 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnTouchPoint
739 void OnTouchPoint(Dali::Integration::Point& point, int timeStamp) override;
742 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnWheelEvent
744 void OnWheelEvent(Dali::Integration::WheelEvent& wheelEvent) override;
747 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnKeyEvent
749 void OnKeyEvent(Dali::Integration::KeyEvent& keyEvent) override;
752 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnRotation
754 void OnRotation(const RotationEvent& rotation) override;
758 * @copydoc Dali::Window::FocusChangeSignal()
760 FocusChangeSignalType& FocusChangeSignal()
762 return mFocusChangeSignal;
766 * @copydoc Dali::Window::ResizedSignal()
768 ResizeSignalType& ResizeSignal()
770 return mResizeSignal;
774 * This signal is emitted when the window is requesting to be deleted
776 SignalType& DeleteRequestSignal()
778 return mDeleteRequestSignal;
782 * @copydoc Dali::DevelWindow::VisibilityChangedSignal()
784 VisibilityChangedSignalType& VisibilityChangedSignal()
786 return mVisibilityChangedSignal;
790 * @copydoc Dali::Window::SignalEventProcessingFinished()
792 Dali::DevelWindow::EventProcessingFinishedSignalType& EventProcessingFinishedSignal()
794 return mScene.EventProcessingFinishedSignal();
798 * @copydoc Dali::DevelWindow::TransitionEffectEventSignal()
800 TransitionEffectEventSignalType& TransitionEffectEventSignal()
802 return mTransitionEffectEventSignal;
806 * @copydoc Dali::DevelWindow::KeyboardRepeatSettingsChangedSignal()
808 KeyboardRepeatSettingsChangedSignalType& KeyboardRepeatSettingsChangedSignal()
810 return mKeyboardRepeatSettingsChangedSignal;
814 * @copydoc Dali::DevelWindow::AuxiliaryMessageSignal()
816 AuxiliaryMessageSignalType& AuxiliaryMessageSignal()
818 return mAuxiliaryMessageSignal;
822 * @copydoc Dali::DevelWindow::AccessibilityHighlightSignal()
824 AccessibilityHighlightSignalType& AccessibilityHighlightSignal()
826 return mAccessibilityHighlightSignal;
830 * @copydoc Dali::DevelWindow::MovedSignal()
832 MovedSignalType& MovedSignal()
838 * @copydoc Dali::DevelWindow::OrientationChangedSignal()
840 OrientationChangedSignalType& OrientationChangedSignal()
842 return mOrientationChangedSignal;
846 * @copydoc Dali::DevelWindow::MouseInOutEventSignal()
848 MouseInOutEventSignalType& MouseInOutEventSignal()
850 return mMouseInOutEventSignal;
854 * @copydoc Dali::DevelWindow::MouseRelativeEventSignal()
856 MouseRelativeEventSignalType& MouseRelativeEventSignal()
858 return mMouseRelativeEventSignal;
862 * @copydoc Dali::DevelWindow::MoveCompletedSignal()
864 MoveCompletedSignalType& MoveCompletedSignal()
866 return mMoveCompletedSignal;
870 * @copydoc Dali::DevelWindow::ResizeCompletedSignal()
872 ResizeCompletedSignalType& ResizeCompletedSignal()
874 return mResizeCompletedSignal;
878 * @copydoc Dali::DevelWindow::InsetsChangedSignal()
880 InsetsChangedSignalType& InsetsChangedSignal()
882 return mInsetsChangedSignal;
886 WindowRenderSurface* mWindowSurface; ///< The window rendering surface
887 WindowBase* mWindowBase;
889 std::string mClassName;
890 Dali::Window mParentWindow;
892 OrientationPtr mOrientation;
893 std::vector<int> mAvailableAngles;
896 int mRotationAngle; ///< The angle of the rotation
897 int mWindowWidth; ///< The width of the window
898 int mWindowHeight; ///< The height of the window
899 int mNativeWindowId; ///< The Native Window Id
901 EventHandlerPtr mEventHandler; ///< The window events handler
902 OrientationMode mOrientationMode; ///< The physical screen mode is portrait or landscape
905 SignalType mDeleteRequestSignal;
906 FocusChangeSignalType mFocusChangeSignal;
907 ResizeSignalType mResizeSignal;
908 VisibilityChangedSignalType mVisibilityChangedSignal;
909 TransitionEffectEventSignalType mTransitionEffectEventSignal;
910 KeyboardRepeatSettingsChangedSignalType mKeyboardRepeatSettingsChangedSignal;
911 AuxiliaryMessageSignalType mAuxiliaryMessageSignal;
912 AccessibilityHighlightSignalType mAccessibilityHighlightSignal;
913 MovedSignalType mMovedSignal;
914 OrientationChangedSignalType mOrientationChangedSignal;
915 MouseInOutEventSignalType mMouseInOutEventSignal;
916 MouseRelativeEventSignalType mMouseRelativeEventSignal;
917 MoveCompletedSignalType mMoveCompletedSignal;
918 ResizeCompletedSignalType mResizeCompletedSignal;
919 InsetsChangedSignalType mInsetsChangedSignal;
921 Dali::KeyEvent mLastKeyEvent;
922 Dali::TouchEvent mLastTouchEvent;
924 bool mIsTransparent : 1;
925 bool mIsFocusAcceptable : 1;
928 bool mOpaqueState : 1;
929 bool mWindowRotationAcknowledgement : 1;
931 bool mIsWindowRotating : 1; ///< The window rotating flag.
932 bool mIsEnabledUserGeometry : 1; ///< The user geometry enable flag.
935 } // namespace Adaptor
936 } // namespace Internal
938 // Helpers for public-api forwarding methods
940 inline Internal::Adaptor::Window& GetImplementation(Dali::Window& window)
942 DALI_ASSERT_ALWAYS(window && "Window handle is empty");
943 BaseObject& object = window.GetBaseObject();
944 return static_cast<Internal::Adaptor::Window&>(object);
947 inline const Internal::Adaptor::Window& GetImplementation(const Dali::Window& window)
949 DALI_ASSERT_ALWAYS(window && "Window handle is empty");
950 const BaseObject& object = window.GetBaseObject();
951 return static_cast<const Internal::Adaptor::Window&>(object);
956 #endif // DALI_INTERNAL_WINDOWSYSTEM_COMMON_WINDOW_IMPL_H