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 Dali::DevelWindow::PointerConstraintsSignalType PointerConstraintsSignalType;
79 typedef Signal<void()> SignalType;
82 * @brief Create a new Window. This should only be called once by the Application class
84 * @param[in] name The window title
85 * @param[in] className The window class name
86 * @param[in] windowData The window data
87 * @return A newly allocated Window
89 static Window* New(const std::string& name, const std::string& className, const WindowData& windowData);
92 * @brief Create a new Window. This should only be called once by the Application class
94 * @param[in] surface The surface used to render on.
95 * @param[in] name The window title
96 * @param[in] className The window class name
97 * @param[in] windowData The window data
98 * @return A newly allocated Window
100 static Window* New(Any surface, const std::string& name, const std::string& className, const WindowData& windowData);
103 * @copydoc Dali::Window::SetClass()
105 void SetClass(std::string name, std::string className);
108 * @brief Gets the window class name.
110 * @return The class of the window
112 std::string GetClassName() const;
115 * @copydoc Dali::Window::Raise()
120 * @copydoc Dali::Window::Lower()
125 * @copydoc Dali::Window::Activate()
130 * @copydoc Dali::DevelWindow::Maximize()
132 void Maximize(bool maximize);
135 * @copydoc Dali::DevelWindow::IsMaximized()
137 bool IsMaximized() const;
140 * @copydoc Dali::DevelWindow::SetMaximumSize()
142 void SetMaximumSize(Dali::Window::WindowSize size);
145 * @copydoc Dali::DevelWindow::Minimize()
147 void Minimize(bool minimize);
150 * @copydoc Dali::DevelWindow::IsMinimized()
152 bool IsMinimized() const;
155 * @copydoc Dali::DevelWindow::SetMimimumSize()
157 void SetMimimumSize(Dali::Window::WindowSize size);
160 * @copydoc Dali::Window::GetLayerCount()
162 uint32_t GetLayerCount() const;
165 * @copydoc Dali::Window::GetLayer()
167 Dali::Layer GetLayer(uint32_t depth) const;
170 * @copydoc Dali::Window::KeepRendering()
172 void KeepRendering(float durationSeconds);
175 * @copydoc Dali::Window::SetPartialUpdateEnabled()
177 void SetPartialUpdateEnabled(bool enabled);
180 * @copydoc Dali::Window::IsPartialUpdateEnabled()
182 bool IsPartialUpdateEnabled() const;
185 * @brief Get window resource ID assigned by window manager
187 * @return The resource ID of the window
189 std::string GetNativeResourceId() const;
192 * @copydoc Dali::Window::AddAvailableOrientation()
194 void AddAvailableOrientation(WindowOrientation orientation);
197 * @copydoc Dali::Window::RemoveAvailableOrientation()
199 void RemoveAvailableOrientation(WindowOrientation orientation);
202 * @copydoc Dali::Window::SetPreferredOrientation()
204 void SetPreferredOrientation(WindowOrientation orientation);
207 * @copydoc Dali::Window::GetPreferredOrientation()
209 WindowOrientation GetPreferredOrientation();
212 * @copydoc Dali::Window::SetAcceptFocus()
214 void SetAcceptFocus(bool accept);
217 * @copydoc Dali::Window::IsFocusAcceptable()
219 bool IsFocusAcceptable() const;
222 * @copydoc Dali::Window::Show()
227 * @copydoc Dali::Window::Hide()
232 * @copydoc Dali::Window::GetSupportedAuxiliaryHintCount()
234 unsigned int GetSupportedAuxiliaryHintCount() const;
237 * @copydoc Dali::Window::GetSupportedAuxiliaryHint()
239 std::string GetSupportedAuxiliaryHint(unsigned int index) const;
242 * @copydoc Dali::Window::AddAuxiliaryHint()
244 unsigned int AddAuxiliaryHint(const std::string& hint, const std::string& value);
247 * @copydoc Dali::Window::RemoveAuxiliaryHint()
249 bool RemoveAuxiliaryHint(unsigned int id);
252 * @copydoc Dali::Window::SetAuxiliaryHintValue()
254 bool SetAuxiliaryHintValue(unsigned int id, const std::string& value);
257 * @copydoc Dali::Window::GetAuxiliaryHintValue()
259 std::string GetAuxiliaryHintValue(unsigned int id) const;
262 * @copydoc Dali::Window::GetAuxiliaryHintId()
264 unsigned int GetAuxiliaryHintId(const std::string& hint) const;
267 * @copydoc Dali::Window::SetInputRegion()
269 void SetInputRegion(const Rect<int>& inputRegion);
272 * @copydoc Dali::Window::SetType()
274 void SetType(WindowType type);
277 * @copydoc Dali::Window::GetType() const
279 WindowType GetType() const;
282 * @copydoc Dali::Window::SetNotificationLevel()
284 WindowOperationResult SetNotificationLevel(WindowNotificationLevel level);
287 * @copydoc Dali::Window::GetNotificationLevel()
289 WindowNotificationLevel GetNotificationLevel() const;
292 * @copydoc Dali::Window::SetOpaqueState()
294 void SetOpaqueState(bool opaque);
297 * @copydoc Dali::Window::IsOpaqueState()
299 bool IsOpaqueState() const;
302 * @copydoc Dali::Window::SetScreenOffMode()
304 WindowOperationResult SetScreenOffMode(WindowScreenOffMode screenOffMode);
307 * @copydoc Dali::Window::GetScreenOffMode()
309 WindowScreenOffMode GetScreenOffMode() const;
312 * @copydoc Dali::Window::SetBrightness()
314 WindowOperationResult SetBrightness(int brightness);
317 * @copydoc Dali::Window::GetBrightness()
319 int GetBrightness() const;
322 * @copydoc Dali::Window::SetSize()
324 void SetSize(Dali::Window::WindowSize size);
327 * @copydoc Dali::Window::GetSize()
329 Dali::Window::WindowSize GetSize() const;
332 * @copydoc Dali::Window::SetPosition()
334 void SetPosition(Dali::Window::WindowPosition position);
337 * @copydoc Dali::Window::GetPosition()
339 Dali::Window::WindowPosition GetPosition() const;
342 * @copydoc Dali::DevelWindow::SetPositionSize()
344 void SetPositionSize(PositionSize positionSize);
347 * @copydoc Dali::DevelWindow::GetPositionSize()
349 PositionSize GetPositionSize() const;
352 * @copydoc Dali::Window::SetLayout()
354 void SetLayout(unsigned int numCols, unsigned int numRows, unsigned int column, unsigned int row, unsigned int colSpan, unsigned int rowSpan);
357 * @copydoc Dali::Window::GetRootLayer()
359 Dali::Layer GetRootLayer() const;
362 * @copydoc Dali::Window::SetTransparency()
364 void SetTransparency(bool transparent);
367 * @copydoc Dali::KeyGrab::GrabKey()
369 bool GrabKey(Dali::KEY key, KeyGrab::KeyGrabMode grabMode);
372 * @copydoc Dali::KeyGrab::UngrabKey()
374 bool UngrabKey(Dali::KEY key);
377 * @copydoc Dali::KeyGrab::GrabKeyList()
379 bool GrabKeyList(const Dali::Vector<Dali::KEY>& key, const Dali::Vector<KeyGrab::KeyGrabMode>& grabMode, Dali::Vector<bool>& result);
382 * @copydoc Dali::KeyGrab::UngrabKeyList()
384 bool UngrabKeyList(const Dali::Vector<Dali::KEY>& key, Dali::Vector<bool>& result);
387 * @copydoc Dali::DevelWindow::Get()
389 static Dali::Window Get(Dali::Actor actor);
392 * @copydoc Dali::DevelWindow::SetParent(Window window, Window parent)
394 void SetParent(Dali::Window& parent);
397 * @copydoc Dali::DevelWindow::SetParent(Window window, Window parent, bool belowParent)
399 void SetParent(Dali::Window& parent, bool belowParent);
402 * @copydoc Dali::DevelWindow::Unparent()
407 * @copydoc Dali::DevelWindow::GetParent()
409 Dali::Window GetParent();
412 * @copydoc Dali::DevelWindow::GetCurrentOrientation()
414 WindowOrientation GetCurrentOrientation() const;
417 * @copydoc Dali::DevelWindow::GetPhysicalOrientation()
419 int GetPhysicalOrientation() const;
422 * @copydoc Dali::DevelWindow::SetAvailableOrientations()
424 void SetAvailableOrientations(const Dali::Vector<WindowOrientation>& orientations);
427 * @copydoc Dali::DevelWindow::SetPositionSizeWithOrientation()
429 void SetPositionSizeWithOrientation(PositionSize positionSize, WindowOrientation orientation);
432 * @brief Emit the accessibility highlight signal.
434 * The highlight indicates that it is an object to interact with the user regardless of focus.
435 * After setting the highlight on the object, you can do things that the object can do, such as
436 * giving or losing focus.
438 * @param[in] highlight If window needs to grab or clear highlight.
440 void EmitAccessibilityHighlightSignal(bool highlight);
443 * @brief Sets the render notification trigger to call when render thread is completed a frame
445 * @param[in] renderNotification to use
447 void SetRenderNotification(TriggerEventInterface* renderNotification);
449 public: // Dali::Internal::Adaptor::SceneHolder
451 * @copydoc Dali::Internal::Adaptor::SceneHolder::GetNativeHandle
453 Dali::Any GetNativeHandle() const override;
456 * @copydoc Dali::Internal::Adaptor::SceneHolder::IsVisible
458 bool IsVisible() const override;
461 * @copydoc Dali::DevelWindow::GetNativeId()
463 int32_t GetNativeId() const;
466 * @copydoc Dali::DevelWindow::RequestMoveToServer()
468 void RequestMoveToServer();
471 * @copydoc Dali::DevelWindow::RequestResizeToServer()
473 void RequestResizeToServer(WindowResizeDirection direction);
476 * @copydoc Dali::DevelWindow::EnableFloatingMode()
478 void EnableFloatingMode(bool enable);
481 * @copydoc Dali::DevelWindow::IsFloatingModeEnabled()
483 bool IsFloatingModeEnabled();
486 * @copydoc Dali::DevelWindow::IncludeInputRegion()
488 void IncludeInputRegion(const Rect<int>& inputRegion);
491 * @copydoc Dali::DevelWindow::ExcludeInputRegion()
493 void ExcludeInputRegion(const Rect<int>& inputRegion);
496 * @copydoc Dali::DevelWindow::SetNeedsRotationCompletedAcknowledgement()
498 void SetNeedsRotationCompletedAcknowledgement(bool needAcknowledgement);
501 * @copydoc Dali::DevelWindow::SendRotationCompletedAcknowledgement()
503 void SendRotationCompletedAcknowledgement();
506 * @copydoc Dali::DevelWindow::IsWindowRotating()
508 bool IsWindowRotating() const;
511 * @copydoc Dali::DevelWindow::GetLastKeyEvent()
513 const Dali::KeyEvent& GetLastKeyEvent() const;
516 * @copydoc Dali::DevelWindow::PointerConstraintsLock()
518 bool PointerConstraintsLock();
521 * @copydoc Dali::DevelWindow::PointerConstraintsUnlock()
523 bool PointerConstraintsUnlock();
526 * @copydoc Dali::DevelWindow::LockedPointerRegionSet()
528 void LockedPointerRegionSet(int32_t x, int32_t y, int32_t width, int32_t height);
531 * @copydoc Dali::DevelWindow::LockedPointerCursorPositionHintSet()
533 void LockedPointerCursorPositionHintSet(int32_t x, int32_t y);
536 * @copydoc Dali::DevelWindow::PointerWarp()
538 bool PointerWarp(int32_t x, int32_t y);
541 * @copydoc Dali::DevelWindow::CursorVisibleSet()
543 void CursorVisibleSet(bool visible);
546 * @copydoc Dali::DevelWindow::KeyboardGrab()
548 bool KeyboardGrab(Device::Subclass::Type deviceSubclass);
551 * @copydoc Dali::DevelWindow::KeyboardUnGrab()
553 bool KeyboardUnGrab();
556 * @copydoc Dali::DevelWindow::SetFullScreen()
558 void SetFullScreen(bool fullscreen);
561 * @copydoc Dali::DevelWindow::GetFullScreen()
563 bool GetFullScreen();
567 * @brief Enumeration for orietation mode.
569 * The Orientation Mode is related to screen size.
570 * If screen width is longer than height, the Orientation Mode will have LANDSCAPE.
571 * Otherwise screen width is shorter than height or same, the Orientation Mode will have PORTRAIT.
573 enum class OrientationMode
580 * Private constructor.
591 * @brief Second stage initialization
593 * @param[in] surface The surface used to render on.
594 * @param[in] positionSize The window's position and size in initailized time.
595 * @param[in] name The window title
596 * @param[in] className The window class name
597 * @param[in] type window's type. Refer the WindowType in window-enumerations.h.
599 void Initialize(Any surface, const PositionSize& positionSize, const std::string& name, const std::string& className, WindowType type);
602 * @brief Called when the window becomes iconified or deiconified.
604 * @param[in] iconified true If the window is iconified, othewise false.
606 void OnIconifyChanged(bool iconified);
609 * @brief Called when the window becomes maximized or unmaximized.
611 * @param[in] maximized true If the window is maximized, othewise false.
613 void OnMaximizeChanged(bool maximized);
616 * @brief Called when the window focus is changed.
618 * @param[in] focusIn true If the window is focused, othewise false.
620 void OnFocusChanged(bool focusIn);
623 * @brief Called when the output is transformed.
625 void OnOutputTransformed();
628 * @brief Called when the window receives a delete request.
630 void OnDeleteRequest();
633 * @brief Called when the window receives a Transition effect-start/end event.
635 * This event is emitted by display server.
637 * @param[in] state current window transition effect state, refer the WindowEffectState in window-enumerations.h.
638 * @param[in] type current window transition effect type, refer the WindowEffectType in window-enumerations.h.
640 void OnTransitionEffectEvent(WindowEffectState state, WindowEffectType type);
643 * @brief Called when window receives a keyboard repeat event.
645 void OnKeyboardRepeatSettingsChanged();
648 * @brief Called when the window redraw is requested.
650 void OnWindowRedrawRequest();
653 * @brief Called when the window's geometry data is changed by display server or client.
654 * It is based on configure noification event.
656 * @param[in] positionSize the updated window's position and size.
658 void OnUpdatePositionSize(Dali::PositionSize& positionSize);
661 * @brief Called when display server sent the auxiliary message.
663 * @param[in] key the auxiliary message's key.
664 * @param[in] value the auxiliary message's value.
665 * @param[in] options the auxiliary message's options. This is the list of string.
667 void OnAuxiliaryMessage(const std::string& key, const std::string& value, const Property::Array& options);
670 * @brief Called when Accessibility is enabled.
672 * This method is to register the window to accessibility bridge.
674 void OnAccessibilityEnabled();
677 * @brief Called when Accessibility is disabled.
679 * This method is to remove the window from accessibility bridge.
681 void OnAccessibilityDisabled();
684 * @brief Called when the window rotation is finished.
686 * This signal is emmit when window rotation is finisehd and WindowRotationCompleted() is called.
688 void OnRotationFinished();
691 * @brief Called when the mouse in or out event is received.
693 * @param[in] mouseInOutEvent the mouse event
695 void OnMouseInOutEvent(const Dali::DevelWindow::MouseInOutEvent& mouseInOutEvent);
698 * @brief Called when the mouse relative event is received.
700 * @param[in] mouseRelativeEvent the mouse event
702 void OnMouseRelativeEvent(const Dali::DevelWindow::MouseRelativeEvent& mouseRelativeEvent);
705 * @brief Called when the pointer is locked/unlocked
707 * @param[in] position The x, y coordinate relative to window where event happened
708 * @param[in] locked The status whether pointer is locked/unlocked
709 * @param[in] confined The status whether pointer is confined/unconfined
711 void OnPointerConstraints(const Dali::Int32Pair& position, bool locked, bool confined);
714 * @brief Called when the window is moved by display server.
716 * @param[in] position the moved window's position.
718 void OnMoveCompleted(Dali::Window::WindowPosition& position);
721 * @brief Called when the window is resized by display server.
723 * @param[in] positionSize the resized window's size.
725 void OnResizeCompleted(Dali::Window::WindowSize& size);
728 * @brief Set available orientation to window base.
730 void SetAvailableAnlges(const std::vector<int>& angles);
733 * @brief Convert from window orientation to angle using OrientationMode.
735 int ConvertToAngle(WindowOrientation orientation);
738 * @brief Convert from angle to window orientation using OrientationMode.
740 WindowOrientation ConvertToOrientation(int angle) const;
743 * @brief Check available window orientation for Available orientation.
745 bool IsOrientationAvailable(WindowOrientation orientation) const;
748 * @brief Sets user geometry flag when window's geometry is changed.
750 * Window is created with screen size or not.
751 * If window is created with screen size or the geometry is changed by user,
752 * client should inform to server setting user.geometry flag
754 void SetUserGeometryPolicy();
757 * @brief Called when window insets are changed by appearing or disappearing indicator, virtual keyboard, or clipboard.
759 * @param[in] partType the type of the part that occurs the window insets change.
760 * @param[in] partState the state of the part that occurs the window insets change.
761 * @param[in] insets the extents value of window insets.
763 void OnInsetsChanged(WindowInsetsPartType partType, WindowInsetsPartState partState, const Extents& insets);
765 private: // Dali::Internal::Adaptor::SceneHolder
767 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnAdaptorSet
769 void OnAdaptorSet(Dali::Adaptor& adaptor) override;
772 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnSurfaceSet
774 void OnSurfaceSet(Dali::RenderSurfaceInterface* surface) override;
777 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnPause
779 void OnPause() override;
782 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnResume
784 void OnResume() override;
787 * @copydoc Dali::Internal::Adaptor::SceneHolder::RecalculatePosition
789 Vector2 RecalculatePosition(const Vector2& position) override;
791 private: // Dali::Internal::Adaptor::EventHandler::Observer
793 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnTouchPoint
795 void OnTouchPoint(Dali::Integration::Point& point, int timeStamp) override;
798 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnWheelEvent
800 void OnWheelEvent(Dali::Integration::WheelEvent& wheelEvent) override;
803 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnKeyEvent
805 void OnKeyEvent(Dali::Integration::KeyEvent& keyEvent) override;
808 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnRotation
810 void OnRotation(const RotationEvent& rotation) override;
814 * @copydoc Dali::Window::FocusChangeSignal()
816 FocusChangeSignalType& FocusChangeSignal()
818 return mFocusChangeSignal;
822 * @copydoc Dali::Window::ResizedSignal()
824 ResizeSignalType& ResizeSignal()
826 return mResizeSignal;
830 * @brief This signal is emitted when the window is requesting to be deleted
832 * It is internal signal in Dali-adaptor.
834 SignalType& DeleteRequestSignal()
836 return mDeleteRequestSignal;
840 * @copydoc Dali::DevelWindow::VisibilityChangedSignal()
842 VisibilityChangedSignalType& VisibilityChangedSignal()
844 return mVisibilityChangedSignal;
848 * @copydoc Dali::Window::SignalEventProcessingFinished()
850 Dali::DevelWindow::EventProcessingFinishedSignalType& EventProcessingFinishedSignal()
852 return mScene.EventProcessingFinishedSignal();
856 * @copydoc Dali::DevelWindow::TransitionEffectEventSignal()
858 TransitionEffectEventSignalType& TransitionEffectEventSignal()
860 return mTransitionEffectEventSignal;
864 * @copydoc Dali::DevelWindow::KeyboardRepeatSettingsChangedSignal()
866 KeyboardRepeatSettingsChangedSignalType& KeyboardRepeatSettingsChangedSignal()
868 return mKeyboardRepeatSettingsChangedSignal;
872 * @copydoc Dali::DevelWindow::AuxiliaryMessageSignal()
874 AuxiliaryMessageSignalType& AuxiliaryMessageSignal()
876 return mAuxiliaryMessageSignal;
880 * @copydoc Dali::DevelWindow::AccessibilityHighlightSignal()
882 AccessibilityHighlightSignalType& AccessibilityHighlightSignal()
884 return mAccessibilityHighlightSignal;
888 * @copydoc Dali::DevelWindow::MovedSignal()
890 MovedSignalType& MovedSignal()
896 * @copydoc Dali::DevelWindow::OrientationChangedSignal()
898 OrientationChangedSignalType& OrientationChangedSignal()
900 return mOrientationChangedSignal;
904 * @copydoc Dali::DevelWindow::MouseInOutEventSignal()
906 MouseInOutEventSignalType& MouseInOutEventSignal()
908 return mMouseInOutEventSignal;
912 * @copydoc Dali::DevelWindow::MouseRelativeEventSignal()
914 MouseRelativeEventSignalType& MouseRelativeEventSignal()
916 return mMouseRelativeEventSignal;
920 * @copydoc Dali::DevelWindow::PointerConstraintsSignal()
922 PointerConstraintsSignalType& PointerConstraintsSignal()
924 return mPointerConstraintsSignal;
928 * @copydoc Dali::DevelWindow::MoveCompletedSignal()
930 MoveCompletedSignalType& MoveCompletedSignal()
932 return mMoveCompletedSignal;
936 * @copydoc Dali::DevelWindow::ResizeCompletedSignal()
938 ResizeCompletedSignalType& ResizeCompletedSignal()
940 return mResizeCompletedSignal;
944 * @copydoc Dali::DevelWindow::InsetsChangedSignal()
946 InsetsChangedSignalType& InsetsChangedSignal()
948 return mInsetsChangedSignal;
952 WindowRenderSurface* mWindowSurface; ///< The window rendering surface
953 WindowBase* mWindowBase;
955 std::string mClassName;
956 Dali::Window mParentWindow;
958 OrientationPtr mOrientation;
959 std::vector<int> mAvailableAngles;
962 int mRotationAngle; ///< The angle of the rotation
963 int mWindowWidth; ///< The width of the window
964 int mWindowHeight; ///< The height of the window
965 int mNativeWindowId; ///< The Native Window Id
967 EventHandlerPtr mEventHandler; ///< The window events handler
968 OrientationMode mOrientationMode; ///< The physical screen mode is portrait or landscape
971 SignalType mDeleteRequestSignal;
972 FocusChangeSignalType mFocusChangeSignal;
973 ResizeSignalType mResizeSignal;
974 VisibilityChangedSignalType mVisibilityChangedSignal;
975 TransitionEffectEventSignalType mTransitionEffectEventSignal;
976 KeyboardRepeatSettingsChangedSignalType mKeyboardRepeatSettingsChangedSignal;
977 AuxiliaryMessageSignalType mAuxiliaryMessageSignal;
978 AccessibilityHighlightSignalType mAccessibilityHighlightSignal;
979 MovedSignalType mMovedSignal;
980 OrientationChangedSignalType mOrientationChangedSignal;
981 MouseInOutEventSignalType mMouseInOutEventSignal;
982 MouseRelativeEventSignalType mMouseRelativeEventSignal;
983 MoveCompletedSignalType mMoveCompletedSignal;
984 ResizeCompletedSignalType mResizeCompletedSignal;
985 InsetsChangedSignalType mInsetsChangedSignal;
986 PointerConstraintsSignalType mPointerConstraintsSignal;
988 Dali::KeyEvent mLastKeyEvent;
990 bool mIsTransparent : 1;
991 bool mIsFocusAcceptable : 1;
994 bool mOpaqueState : 1;
995 bool mWindowRotationAcknowledgement : 1;
997 bool mIsWindowRotating : 1; ///< The window rotating flag.
998 bool mIsEnabledUserGeometry : 1; ///< The user geometry enable flag.
999 bool mIsEmittedWindowCreatedEvent : 1; ///< The Window Created Event emit flag for accessibility.
1002 } // namespace Adaptor
1003 } // namespace Internal
1005 // Helpers for public-api forwarding methods
1007 inline Internal::Adaptor::Window& GetImplementation(Dali::Window& window)
1009 DALI_ASSERT_ALWAYS(window && "Window handle is empty");
1010 BaseObject& object = window.GetBaseObject();
1011 return static_cast<Internal::Adaptor::Window&>(object);
1014 inline const Internal::Adaptor::Window& GetImplementation(const Dali::Window& window)
1016 DALI_ASSERT_ALWAYS(window && "Window handle is empty");
1017 const BaseObject& object = window.GetBaseObject();
1018 return static_cast<const Internal::Adaptor::Window&>(object);
1023 #endif // DALI_INTERNAL_WINDOWSYSTEM_COMMON_WINDOW_IMPL_H