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();
566 * @copydoc Dali::DevelWindow::SetFrontBufferRendering()
568 void SetFrontBufferRendering(bool enable);
571 * @copydoc Dali::DevelWindow::GetFrontBufferRendering()
573 bool GetFrontBufferRendering();
577 * @brief Enumeration for orietation mode.
579 * The Orientation Mode is related to screen size.
580 * If screen width is longer than height, the Orientation Mode will have LANDSCAPE.
581 * Otherwise screen width is shorter than height or same, the Orientation Mode will have PORTRAIT.
583 enum class OrientationMode
590 * Private constructor.
601 * @brief Second stage initialization
603 * @param[in] surface The surface used to render on.
604 * @param[in] positionSize The window's position and size in initailized time.
605 * @param[in] name The window title
606 * @param[in] className The window class name
607 * @param[in] type window's type. Refer the WindowType in window-enumerations.h.
609 void Initialize(Any surface, const PositionSize& positionSize, const std::string& name, const std::string& className, WindowType type);
612 * @brief Called when the window becomes iconified or deiconified.
614 * @param[in] iconified true If the window is iconified, othewise false.
616 void OnIconifyChanged(bool iconified);
619 * @brief Called when the window becomes maximized or unmaximized.
621 * @param[in] maximized true If the window is maximized, othewise false.
623 void OnMaximizeChanged(bool maximized);
626 * @brief Called when the window focus is changed.
628 * @param[in] focusIn true If the window is focused, othewise false.
630 void OnFocusChanged(bool focusIn);
633 * @brief Called when the output is transformed.
635 void OnOutputTransformed();
638 * @brief Called when the window receives a delete request.
640 void OnDeleteRequest();
643 * @brief Called when the window receives a Transition effect-start/end event.
645 * This event is emitted by display server.
647 * @param[in] state current window transition effect state, refer the WindowEffectState in window-enumerations.h.
648 * @param[in] type current window transition effect type, refer the WindowEffectType in window-enumerations.h.
650 void OnTransitionEffectEvent(WindowEffectState state, WindowEffectType type);
653 * @brief Called when window receives a keyboard repeat event.
655 void OnKeyboardRepeatSettingsChanged();
658 * @brief Called when the window redraw is requested.
660 void OnWindowRedrawRequest();
663 * @brief Called when the window's geometry data is changed by display server or client.
664 * It is based on configure noification event.
666 * @param[in] positionSize the updated window's position and size.
668 void OnUpdatePositionSize(Dali::PositionSize& positionSize);
671 * @brief Called when display server sent the auxiliary message.
673 * @param[in] key the auxiliary message's key.
674 * @param[in] value the auxiliary message's value.
675 * @param[in] options the auxiliary message's options. This is the list of string.
677 void OnAuxiliaryMessage(const std::string& key, const std::string& value, const Property::Array& options);
680 * @brief Called when Accessibility is enabled.
682 * This method is to register the window to accessibility bridge.
684 void OnAccessibilityEnabled();
687 * @brief Called when Accessibility is disabled.
689 * This method is to remove the window from accessibility bridge.
691 void OnAccessibilityDisabled();
694 * @brief Called when the window rotation is finished.
696 * This signal is emmit when window rotation is finisehd and WindowRotationCompleted() is called.
698 void OnRotationFinished();
701 * @brief Called when the mouse in or out event is received.
703 * @param[in] mouseInOutEvent the mouse event
705 void OnMouseInOutEvent(const Dali::DevelWindow::MouseInOutEvent& mouseInOutEvent);
708 * @brief Called when the mouse relative event is received.
710 * @param[in] mouseRelativeEvent the mouse event
712 void OnMouseRelativeEvent(const Dali::DevelWindow::MouseRelativeEvent& mouseRelativeEvent);
715 * @brief Called when the pointer is locked/unlocked
717 * @param[in] position The x, y coordinate relative to window where event happened
718 * @param[in] locked The status whether pointer is locked/unlocked
719 * @param[in] confined The status whether pointer is confined/unconfined
721 void OnPointerConstraints(const Dali::Int32Pair& position, bool locked, bool confined);
724 * @brief Called when the window is moved by display server.
726 * @param[in] position the moved window's position.
728 void OnMoveCompleted(Dali::Window::WindowPosition& position);
731 * @brief Called when the window is resized by display server.
733 * @param[in] positionSize the resized window's size.
735 void OnResizeCompleted(Dali::Window::WindowSize& size);
738 * @brief Set available orientation to window base.
740 void SetAvailableAnlges(const std::vector<int>& angles);
743 * @brief Convert from window orientation to angle using OrientationMode.
745 int ConvertToAngle(WindowOrientation orientation);
748 * @brief Convert from angle to window orientation using OrientationMode.
750 WindowOrientation ConvertToOrientation(int angle) const;
753 * @brief Check available window orientation for Available orientation.
755 bool IsOrientationAvailable(WindowOrientation orientation) const;
758 * @brief Sets user geometry flag when window's geometry is changed.
760 * Window is created with screen size or not.
761 * If window is created with screen size or the geometry is changed by user,
762 * client should inform to server setting user.geometry flag
764 void SetUserGeometryPolicy();
767 * @brief Called when window insets are changed by appearing or disappearing indicator, virtual keyboard, or clipboard.
769 * @param[in] partType the type of the part that occurs the window insets change.
770 * @param[in] partState the state of the part that occurs the window insets change.
771 * @param[in] insets the extents value of window insets.
773 void OnInsetsChanged(WindowInsetsPartType partType, WindowInsetsPartState partState, const Extents& insets);
775 private: // Dali::Internal::Adaptor::SceneHolder
777 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnAdaptorSet
779 void OnAdaptorSet(Dali::Adaptor& adaptor) override;
782 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnSurfaceSet
784 void OnSurfaceSet(Dali::RenderSurfaceInterface* surface) override;
787 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnPause
789 void OnPause() override;
792 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnResume
794 void OnResume() override;
797 * @copydoc Dali::Internal::Adaptor::SceneHolder::RecalculatePosition
799 Vector2 RecalculatePosition(const Vector2& position) override;
801 private: // Dali::Internal::Adaptor::EventHandler::Observer
803 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnTouchPoint
805 void OnTouchPoint(Dali::Integration::Point& point, int timeStamp) override;
808 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnWheelEvent
810 void OnWheelEvent(Dali::Integration::WheelEvent& wheelEvent) override;
813 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnKeyEvent
815 void OnKeyEvent(Dali::Integration::KeyEvent& keyEvent) override;
818 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnRotation
820 void OnRotation(const RotationEvent& rotation) override;
824 * @copydoc Dali::Window::FocusChangeSignal()
826 FocusChangeSignalType& FocusChangeSignal()
828 return mFocusChangeSignal;
832 * @copydoc Dali::Window::ResizedSignal()
834 ResizeSignalType& ResizeSignal()
836 return mResizeSignal;
840 * @brief This signal is emitted when the window is requesting to be deleted
842 * It is internal signal in Dali-adaptor.
844 SignalType& DeleteRequestSignal()
846 return mDeleteRequestSignal;
850 * @copydoc Dali::DevelWindow::VisibilityChangedSignal()
852 VisibilityChangedSignalType& VisibilityChangedSignal()
854 return mVisibilityChangedSignal;
858 * @copydoc Dali::Window::SignalEventProcessingFinished()
860 Dali::DevelWindow::EventProcessingFinishedSignalType& EventProcessingFinishedSignal()
862 return mScene.EventProcessingFinishedSignal();
866 * @copydoc Dali::DevelWindow::TransitionEffectEventSignal()
868 TransitionEffectEventSignalType& TransitionEffectEventSignal()
870 return mTransitionEffectEventSignal;
874 * @copydoc Dali::DevelWindow::KeyboardRepeatSettingsChangedSignal()
876 KeyboardRepeatSettingsChangedSignalType& KeyboardRepeatSettingsChangedSignal()
878 return mKeyboardRepeatSettingsChangedSignal;
882 * @copydoc Dali::DevelWindow::AuxiliaryMessageSignal()
884 AuxiliaryMessageSignalType& AuxiliaryMessageSignal()
886 return mAuxiliaryMessageSignal;
890 * @copydoc Dali::DevelWindow::AccessibilityHighlightSignal()
892 AccessibilityHighlightSignalType& AccessibilityHighlightSignal()
894 return mAccessibilityHighlightSignal;
898 * @copydoc Dali::DevelWindow::MovedSignal()
900 MovedSignalType& MovedSignal()
906 * @copydoc Dali::DevelWindow::OrientationChangedSignal()
908 OrientationChangedSignalType& OrientationChangedSignal()
910 return mOrientationChangedSignal;
914 * @copydoc Dali::DevelWindow::MouseInOutEventSignal()
916 MouseInOutEventSignalType& MouseInOutEventSignal()
918 return mMouseInOutEventSignal;
922 * @copydoc Dali::DevelWindow::MouseRelativeEventSignal()
924 MouseRelativeEventSignalType& MouseRelativeEventSignal()
926 return mMouseRelativeEventSignal;
930 * @copydoc Dali::DevelWindow::PointerConstraintsSignal()
932 PointerConstraintsSignalType& PointerConstraintsSignal()
934 return mPointerConstraintsSignal;
938 * @copydoc Dali::DevelWindow::MoveCompletedSignal()
940 MoveCompletedSignalType& MoveCompletedSignal()
942 return mMoveCompletedSignal;
946 * @copydoc Dali::DevelWindow::ResizeCompletedSignal()
948 ResizeCompletedSignalType& ResizeCompletedSignal()
950 return mResizeCompletedSignal;
954 * @copydoc Dali::DevelWindow::InsetsChangedSignal()
956 InsetsChangedSignalType& InsetsChangedSignal()
958 return mInsetsChangedSignal;
962 WindowRenderSurface* mWindowSurface; ///< The window rendering surface
963 WindowBase* mWindowBase;
965 std::string mClassName;
966 Dali::Window mParentWindow;
968 OrientationPtr mOrientation;
969 std::vector<int> mAvailableAngles;
972 int mRotationAngle; ///< The angle of the rotation
973 int mWindowWidth; ///< The width of the window
974 int mWindowHeight; ///< The height of the window
975 int mNativeWindowId; ///< The Native Window Id
977 EventHandlerPtr mEventHandler; ///< The window events handler
978 OrientationMode mOrientationMode; ///< The physical screen mode is portrait or landscape
981 SignalType mDeleteRequestSignal;
982 FocusChangeSignalType mFocusChangeSignal;
983 ResizeSignalType mResizeSignal;
984 VisibilityChangedSignalType mVisibilityChangedSignal;
985 TransitionEffectEventSignalType mTransitionEffectEventSignal;
986 KeyboardRepeatSettingsChangedSignalType mKeyboardRepeatSettingsChangedSignal;
987 AuxiliaryMessageSignalType mAuxiliaryMessageSignal;
988 AccessibilityHighlightSignalType mAccessibilityHighlightSignal;
989 MovedSignalType mMovedSignal;
990 OrientationChangedSignalType mOrientationChangedSignal;
991 MouseInOutEventSignalType mMouseInOutEventSignal;
992 MouseRelativeEventSignalType mMouseRelativeEventSignal;
993 MoveCompletedSignalType mMoveCompletedSignal;
994 ResizeCompletedSignalType mResizeCompletedSignal;
995 InsetsChangedSignalType mInsetsChangedSignal;
996 PointerConstraintsSignalType mPointerConstraintsSignal;
998 Dali::KeyEvent mLastKeyEvent;
1000 bool mIsTransparent : 1;
1001 bool mIsFocusAcceptable : 1;
1002 bool mIconified : 1;
1003 bool mMaximized : 1;
1004 bool mOpaqueState : 1;
1005 bool mWindowRotationAcknowledgement : 1;
1007 bool mIsWindowRotating : 1; ///< The window rotating flag.
1008 bool mIsEnabledUserGeometry : 1; ///< The user geometry enable flag.
1009 bool mIsEmittedWindowCreatedEvent : 1; ///< The Window Created Event emit flag for accessibility.
1010 bool mIsFrontBufferRendering : 1; ///< The Front Buffer Rendering state.
1013 } // namespace Adaptor
1014 } // namespace Internal
1016 // Helpers for public-api forwarding methods
1018 inline Internal::Adaptor::Window& GetImplementation(Dali::Window& window)
1020 DALI_ASSERT_ALWAYS(window && "Window handle is empty");
1021 BaseObject& object = window.GetBaseObject();
1022 return static_cast<Internal::Adaptor::Window&>(object);
1025 inline const Internal::Adaptor::Window& GetImplementation(const Dali::Window& window)
1027 DALI_ASSERT_ALWAYS(window && "Window handle is empty");
1028 const BaseObject& object = window.GetBaseObject();
1029 return static_cast<const Internal::Adaptor::Window&>(object);
1034 #endif // DALI_INTERNAL_WINDOWSYSTEM_COMMON_WINDOW_IMPL_H