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 EventHandlerPtr = IntrusivePtr<EventHandler>;
58 * Window provides a surface to render onto with orientation & indicator properties.
60 class Window : public Dali::Internal::Adaptor::SceneHolder, public EventHandler::Observer, public ConnectionTracker
63 typedef Dali::Window::FocusChangeSignalType FocusChangeSignalType;
64 typedef Dali::Window::ResizeSignalType ResizeSignalType;
65 typedef Dali::DevelWindow::VisibilityChangedSignalType VisibilityChangedSignalType;
66 typedef Dali::DevelWindow::TransitionEffectEventSignalType TransitionEffectEventSignalType;
67 typedef Dali::DevelWindow::KeyboardRepeatSettingsChangedSignalType KeyboardRepeatSettingsChangedSignalType;
68 typedef Dali::DevelWindow::AuxiliaryMessageSignalType AuxiliaryMessageSignalType;
69 typedef Dali::DevelWindow::AccessibilityHighlightSignalType AccessibilityHighlightSignalType;
70 typedef Dali::DevelWindow::MovedSignalType MovedSignalType;
71 typedef Dali::DevelWindow::OrientationChangedSignalType OrientationChangedSignalType;
72 typedef Dali::DevelWindow::MouseInOutEventSignalType MouseInOutEventSignalType;
73 typedef Dali::DevelWindow::MoveCompletedSignalType MoveCompletedSignalType;
74 typedef Dali::DevelWindow::ResizeCompletedSignalType ResizeCompletedSignalType;
75 typedef Dali::DevelWindow::InsetsChangedSignalType InsetsChangedSignalType;
76 typedef Signal<void()> SignalType;
79 * @brief Create a new Window. This should only be called once by the Application class
80 * @param[in] name The window title
81 * @param[in] className The window class name
82 * @param[in] windowData The window data
83 * @return A newly allocated Window
85 static Window* New(const std::string& name, const std::string& className, const WindowData& windowData);
88 * @brief Create a new Window. This should only be called once by the Application class
89 * @param[in] surface The surface used to render on.
90 * @param[in] name The window title
91 * @param[in] className The window class name
92 * @param[in] windowData The window data
93 * @return A newly allocated Window
95 static Window* New(Any surface, const std::string& name, const std::string& className, const WindowData& windowData);
98 * @copydoc Dali::Window::SetClass()
100 void SetClass(std::string name, std::string className);
103 * @brief Gets the window class name.
104 * @return The class of the window
106 std::string GetClassName() const;
109 * @copydoc Dali::Window::Raise()
114 * @copydoc Dali::Window::Lower()
119 * @copydoc Dali::Window::Activate()
124 * @copydoc Dali::DevelWindow::Maximize()
126 void Maximize(bool maximize);
129 * @copydoc Dali::DevelWindow::IsMaximized()
131 bool IsMaximized() const;
134 * @copydoc Dali::DevelWindow::SetMaximumSize()
136 void SetMaximumSize(Dali::Window::WindowSize size);
139 * @copydoc Dali::DevelWindow::Minimize()
141 void Minimize(bool minimize);
144 * @copydoc Dali::DevelWindow::IsMinimized()
146 bool IsMinimized() const;
149 * @copydoc Dali::DevelWindow::SetMimimumSize()
151 void SetMimimumSize(Dali::Window::WindowSize size);
154 * @copydoc Dali::Window::GetLayerCount()
156 uint32_t GetLayerCount() const;
159 * @copydoc Dali::Window::GetLayer()
161 Dali::Layer GetLayer(uint32_t depth) const;
164 * @copydoc Dali::Window::KeepRendering()
166 void KeepRendering(float durationSeconds);
169 * @copydoc Dali::Window::SetPartialUpdateEnabled()
171 void SetPartialUpdateEnabled(bool enabled);
174 * @copydoc Dali::Window::IsPartialUpdateEnabled()
176 bool IsPartialUpdateEnabled() const;
179 * @brief Get window resource ID assigned by window manager
180 * @return The resource ID of the window
182 std::string GetNativeResourceId() const;
185 * @copydoc Dali::Window::AddAvailableOrientation()
187 void AddAvailableOrientation(WindowOrientation orientation);
190 * @copydoc Dali::Window::RemoveAvailableOrientation()
192 void RemoveAvailableOrientation(WindowOrientation orientation);
195 * @copydoc Dali::Window::SetPreferredOrientation()
197 void SetPreferredOrientation(WindowOrientation orientation);
200 * @copydoc Dali::Window::GetPreferredOrientation()
202 WindowOrientation GetPreferredOrientation();
205 * @copydoc Dali::Window::SetAcceptFocus()
207 void SetAcceptFocus(bool accept);
210 * @copydoc Dali::Window::IsFocusAcceptable()
212 bool IsFocusAcceptable() const;
215 * @copydoc Dali::Window::Show()
220 * @copydoc Dali::Window::Hide()
225 * @copydoc Dali::Window::GetSupportedAuxiliaryHintCount()
227 unsigned int GetSupportedAuxiliaryHintCount() const;
230 * @copydoc Dali::Window::GetSupportedAuxiliaryHint()
232 std::string GetSupportedAuxiliaryHint(unsigned int index) const;
235 * @copydoc Dali::Window::AddAuxiliaryHint()
237 unsigned int AddAuxiliaryHint(const std::string& hint, const std::string& value);
240 * @copydoc Dali::Window::RemoveAuxiliaryHint()
242 bool RemoveAuxiliaryHint(unsigned int id);
245 * @copydoc Dali::Window::SetAuxiliaryHintValue()
247 bool SetAuxiliaryHintValue(unsigned int id, const std::string& value);
250 * @copydoc Dali::Window::GetAuxiliaryHintValue()
252 std::string GetAuxiliaryHintValue(unsigned int id) const;
255 * @copydoc Dali::Window::GetAuxiliaryHintId()
257 unsigned int GetAuxiliaryHintId(const std::string& hint) const;
260 * @copydoc Dali::Window::SetInputRegion()
262 void SetInputRegion(const Rect<int>& inputRegion);
265 * @copydoc Dali::Window::SetType()
267 void SetType(WindowType type);
270 * @copydoc Dali::Window::GetType() const
272 WindowType GetType() const;
275 * @copydoc Dali::Window::SetNotificationLevel()
277 WindowOperationResult SetNotificationLevel(WindowNotificationLevel level);
280 * @copydoc Dali::Window::GetNotificationLevel()
282 WindowNotificationLevel GetNotificationLevel() const;
285 * @copydoc Dali::Window::SetOpaqueState()
287 void SetOpaqueState(bool opaque);
290 * @copydoc Dali::Window::IsOpaqueState()
292 bool IsOpaqueState() const;
295 * @copydoc Dali::Window::SetScreenOffMode()
297 WindowOperationResult SetScreenOffMode(WindowScreenOffMode screenOffMode);
300 * @copydoc Dali::Window::GetScreenOffMode()
302 WindowScreenOffMode GetScreenOffMode() const;
305 * @copydoc Dali::Window::SetBrightness()
307 WindowOperationResult SetBrightness(int brightness);
310 * @copydoc Dali::Window::GetBrightness()
312 int GetBrightness() const;
315 * @copydoc Dali::Window::SetSize()
317 void SetSize(Dali::Window::WindowSize size);
320 * @copydoc Dali::Window::GetSize()
322 Dali::Window::WindowSize GetSize() const;
325 * @copydoc Dali::Window::SetPosition()
327 void SetPosition(Dali::Window::WindowPosition position);
330 * @copydoc Dali::Window::GetPosition()
332 Dali::Window::WindowPosition GetPosition() const;
335 * @copydoc Dali::DevelWindow::SetPositionSize()
337 void SetPositionSize(PositionSize positionSize);
340 * @copydoc Dali::DevelWindow::GetPositionSize()
342 PositionSize GetPositionSize() const;
345 * @copydoc Dali::Window::SetLayout()
347 void SetLayout(unsigned int numCols, unsigned int numRows, unsigned int column, unsigned int row, unsigned int colSpan, unsigned int rowSpan);
350 * @copydoc Dali::Window::GetRootLayer()
352 Dali::Layer GetRootLayer() const;
355 * @copydoc Dali::Window::SetTransparency()
357 void SetTransparency(bool transparent);
360 * @copydoc Dali::KeyGrab::GrabKey()
362 bool GrabKey(Dali::KEY key, KeyGrab::KeyGrabMode grabMode);
365 * @copydoc Dali::KeyGrab::UngrabKey()
367 bool UngrabKey(Dali::KEY key);
370 * @copydoc Dali::KeyGrab::GrabKeyList()
372 bool GrabKeyList(const Dali::Vector<Dali::KEY>& key, const Dali::Vector<KeyGrab::KeyGrabMode>& grabMode, Dali::Vector<bool>& result);
375 * @copydoc Dali::KeyGrab::UngrabKeyList()
377 bool UngrabKeyList(const Dali::Vector<Dali::KEY>& key, Dali::Vector<bool>& result);
380 * @copydoc Dali::DevelWindow::Get()
382 static Dali::Window Get(Dali::Actor actor);
385 * @copydoc Dali::DevelWindow::SetParent(Window window, Window parent)
387 void SetParent(Dali::Window& parent);
390 * @copydoc Dali::DevelWindow::SetParent(Window window, Window parent, bool belowParent)
392 void SetParent(Dali::Window& parent, bool belowParent);
395 * @copydoc Dali::DevelWindow::Unparent()
400 * @copydoc Dali::DevelWindow::GetParent()
402 Dali::Window GetParent();
405 * @copydoc Dali::DevelWindow::GetCurrentOrientation()
407 WindowOrientation GetCurrentOrientation() const;
410 * @copydoc Dali::DevelWindow::GetPhysicalOrientation()
412 int GetPhysicalOrientation() const;
415 * @copydoc Dali::DevelWindow::SetAvailableOrientations()
417 void SetAvailableOrientations(const Dali::Vector<WindowOrientation>& orientations);
420 * @copydoc Dali::DevelWindow::SetPositionSizeWithOrientation()
422 void SetPositionSizeWithOrientation(PositionSize positionSize, WindowOrientation orientation);
425 * @brief Emit the accessibility highlight signal.
426 * The highlight indicates that it is an object to interact with the user regardless of focus.
427 * After setting the highlight on the object, you can do things that the object can do, such as
428 * giving or losing focus.
430 * @param[in] highlight If window needs to grab or clear highlight.
432 void EmitAccessibilityHighlightSignal(bool highlight);
435 * @brief Sets the render notification trigger to call when render thread is completed a frame
437 * @param[in] renderNotification to use
439 void SetRenderNotification(TriggerEventInterface* renderNotification);
441 public: // Dali::Internal::Adaptor::SceneHolder
443 * @copydoc Dali::Internal::Adaptor::SceneHolder::GetNativeHandle
445 Dali::Any GetNativeHandle() const override;
448 * @copydoc Dali::Internal::Adaptor::SceneHolder::IsVisible
450 bool IsVisible() const override;
453 * @copydoc Dali::DevelWindow::GetNativeId()
455 int32_t GetNativeId() const;
458 * @copydoc Dali::DevelWindow::RequestMoveToServer()
460 void RequestMoveToServer();
463 * @copydoc Dali::DevelWindow::RequestResizeToServer()
465 void RequestResizeToServer(WindowResizeDirection direction);
468 * @copydoc Dali::DevelWindow::EnableFloatingMode()
470 void EnableFloatingMode(bool enable);
473 * @copydoc Dali::DevelWindow::IsFloatingModeEnabled()
475 bool IsFloatingModeEnabled();
478 * @copydoc Dali::DevelWindow::IncludeInputRegion()
480 void IncludeInputRegion(const Rect<int>& inputRegion);
483 * @copydoc Dali::DevelWindow::ExcludeInputRegion()
485 void ExcludeInputRegion(const Rect<int>& inputRegion);
488 * @copydoc Dali::DevelWindow::SetNeedsRotationCompletedAcknowledgement()
490 void SetNeedsRotationCompletedAcknowledgement(bool needAcknowledgement);
493 * @copydoc Dali::DevelWindow::SendRotationCompletedAcknowledgement()
495 void SendRotationCompletedAcknowledgement();
498 * @copydoc Dali::DevelWindow::IsWindowRotating()
500 bool IsWindowRotating() const;
503 * @copydoc Dali::DevelWindow::GetLastKeyEvent()
505 const Dali::KeyEvent& GetLastKeyEvent() const;
508 * @copydoc Dali::DevelWindow::GetLastTouchEvent()
510 const Dali::TouchEvent& GetLastTouchEvent() const;
514 * @brief Enumeration for orietation mode.
515 * The Orientation Mode is related to screen size.
516 * If screen width is longer than height, the Orientation Mode will have LANDSCAPE.
517 * Otherwise screen width is shorter than height or same, the Orientation Mode will have PORTRAIT.
519 enum class OrientationMode
526 * Private constructor.
537 * Second stage initialization
539 void Initialize(Any surface, const PositionSize& positionSize, const std::string& name, const std::string& className, WindowType type);
542 * Called when the window becomes iconified or deiconified.
544 void OnIconifyChanged(bool iconified);
547 * Called when the window becomes maximized or unmaximized.
549 void OnMaximizeChanged(bool maximized);
552 * Called when the window focus is changed.
554 void OnFocusChanged(bool focusIn);
557 * Called when the output is transformed.
559 void OnOutputTransformed();
562 * Called when the window receives a delete request.
564 void OnDeleteRequest();
567 * Called when the window receives a Transition effect-start/end event.
569 void OnTransitionEffectEvent(WindowEffectState state, WindowEffectType type);
572 * @brief Called when window receives a keyboard repeat event.
574 void OnKeyboardRepeatSettingsChanged();
577 * @brief Called when the window redraw is requested.
579 void OnWindowRedrawRequest();
582 * @brief Called when the window's geometry data is changed by display server or client.
583 * It is based on configure noification event.
585 * @param[in] positionSize the updated window's position and size.
587 void OnUpdatePositionSize(Dali::PositionSize& positionSize);
590 * @brief Called when display server sent the auxiliary message.
592 * @param[in] key the auxiliary message's key.
593 * @param[in] value the auxiliary message's value.
594 * @param[in] options the auxiliary message's options. This is the list of string.
596 void OnAuxiliaryMessage(const std::string& key, const std::string& value, const Property::Array& options);
599 * @brief Called when Accessibility is enabled.
601 * This method is to register the window to accessibility bridge.
603 void OnAccessibilityEnabled();
606 * @brief Called when Accessibility is disabled.
608 * This method is to remove the window from accessibility bridge.
610 void OnAccessibilityDisabled();
613 * Called when the window rotation is finished.
615 * This signal is emmit when window rotation is finisehd and WindowRotationCompleted() is called.
617 void OnRotationFinished();
620 * @brief Called when the mouse in or out event is received.
621 * @param[in] mouseInOutEvent the mouse event
623 void OnMouseInOutEvent(const Dali::DevelWindow::MouseInOutEvent& mouseInOutEvent);
626 * @brief Called when the window is moved by display server.
628 * @param[in] position the moved window's position.
630 void OnMoveCompleted(Dali::Window::WindowPosition& position);
633 * @brief Called when the window is resized by display server.
635 * @param[in] positionSize the resized window's size.
637 void OnResizeCompleted(Dali::Window::WindowSize& size);
640 * @brief Set available orientation to window base.
642 void SetAvailableAnlges(const std::vector<int>& angles);
645 * @brief Convert from window orientation to angle using OrientationMode.
647 int ConvertToAngle(WindowOrientation orientation);
650 * @brief Convert from angle to window orientation using OrientationMode.
652 WindowOrientation ConvertToOrientation(int angle) const;
655 * @brief Check available window orientation for Available orientation.
657 bool IsOrientationAvailable(WindowOrientation orientation) const;
660 * @brief Sets user geometry flag when window's geometry is changed.
661 * Window is created with screen size or not.
662 * If window is created with screen size or the geometry is changed by user,
663 * client should inform to server setting user.geometry flag
665 void SetUserGeometryPolicy();
668 * @brief Called when window insets are changed by appearing or disappearing indicator, virtual keyboard, or clipboard.
670 * @param[in] partType the type of the part that occurs the window insets change.
671 * @param[in] partState the state of the part that occurs the window insets change.
672 * @param[in] insets the extents value of window insets.
674 void OnInsetsChanged(WindowInsetsPartType partType, WindowInsetsPartState partState, const Extents& insets);
677 private: // Dali::Internal::Adaptor::SceneHolder
679 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnAdaptorSet
681 void OnAdaptorSet(Dali::Adaptor& adaptor) override;
684 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnSurfaceSet
686 void OnSurfaceSet(Dali::RenderSurfaceInterface* surface) override;
689 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnPause
691 void OnPause() override;
694 * @copydoc Dali::Internal::Adaptor::SceneHolder::OnResume
696 void OnResume() override;
699 * @copydoc Dali::Internal::Adaptor::SceneHolder::RecalculatePosition
701 Vector2 RecalculatePosition(const Vector2& position) override;
703 private: // Dali::Internal::Adaptor::EventHandler::Observer
705 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnTouchPoint
707 void OnTouchPoint(Dali::Integration::Point& point, int timeStamp) override;
710 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnWheelEvent
712 void OnWheelEvent(Dali::Integration::WheelEvent& wheelEvent) override;
715 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnKeyEvent
717 void OnKeyEvent(Dali::Integration::KeyEvent& keyEvent) override;
720 * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnRotation
722 void OnRotation(const RotationEvent& rotation) override;
726 * @copydoc Dali::Window::FocusChangeSignal()
728 FocusChangeSignalType& FocusChangeSignal()
730 return mFocusChangeSignal;
734 * @copydoc Dali::Window::ResizedSignal()
736 ResizeSignalType& ResizeSignal()
738 return mResizeSignal;
742 * This signal is emitted when the window is requesting to be deleted
744 SignalType& DeleteRequestSignal()
746 return mDeleteRequestSignal;
750 * @copydoc Dali::DevelWindow::VisibilityChangedSignal()
752 VisibilityChangedSignalType& VisibilityChangedSignal()
754 return mVisibilityChangedSignal;
758 * @copydoc Dali::Window::SignalEventProcessingFinished()
760 Dali::DevelWindow::EventProcessingFinishedSignalType& EventProcessingFinishedSignal()
762 return mScene.EventProcessingFinishedSignal();
766 * @copydoc Dali::DevelWindow::TransitionEffectEventSignal()
768 TransitionEffectEventSignalType& TransitionEffectEventSignal()
770 return mTransitionEffectEventSignal;
774 * @copydoc Dali::DevelWindow::KeyboardRepeatSettingsChangedSignal()
776 KeyboardRepeatSettingsChangedSignalType& KeyboardRepeatSettingsChangedSignal()
778 return mKeyboardRepeatSettingsChangedSignal;
782 * @copydoc Dali::DevelWindow::AuxiliaryMessageSignal()
784 AuxiliaryMessageSignalType& AuxiliaryMessageSignal()
786 return mAuxiliaryMessageSignal;
790 * @copydoc Dali::DevelWindow::AccessibilityHighlightSignal()
792 AccessibilityHighlightSignalType& AccessibilityHighlightSignal()
794 return mAccessibilityHighlightSignal;
798 * @copydoc Dali::DevelWindow::MovedSignal()
800 MovedSignalType& MovedSignal()
806 * @copydoc Dali::DevelWindow::OrientationChangedSignal()
808 OrientationChangedSignalType& OrientationChangedSignal()
810 return mOrientationChangedSignal;
814 * @copydoc Dali::DevelWindow::MouseInOutEventSignal()
816 MouseInOutEventSignalType& MouseInOutEventSignal()
818 return mMouseInOutEventSignal;
822 * @copydoc Dali::DevelWindow::MoveCompletedSignal()
824 MoveCompletedSignalType& MoveCompletedSignal()
826 return mMoveCompletedSignal;
830 * @copydoc Dali::DevelWindow::ResizeCompletedSignal()
832 ResizeCompletedSignalType& ResizeCompletedSignal()
834 return mResizeCompletedSignal;
838 * @copydoc Dali::DevelWindow::InsetsChangedSignal()
840 InsetsChangedSignalType& InsetsChangedSignal()
842 return mInsetsChangedSignal;
846 WindowRenderSurface* mWindowSurface; ///< The window rendering surface
847 WindowBase* mWindowBase;
849 std::string mClassName;
850 Dali::Window mParentWindow;
852 OrientationPtr mOrientation;
853 std::vector<int> mAvailableAngles;
856 int mRotationAngle; ///< The angle of the rotation
857 int mWindowWidth; ///< The width of the window
858 int mWindowHeight; ///< The height of the window
859 int mNativeWindowId; ///< The Native Window Id
861 EventHandlerPtr mEventHandler; ///< The window events handler
862 OrientationMode mOrientationMode; ///< The physical screen mode is portrait or landscape
865 SignalType mDeleteRequestSignal;
866 FocusChangeSignalType mFocusChangeSignal;
867 ResizeSignalType mResizeSignal;
868 VisibilityChangedSignalType mVisibilityChangedSignal;
869 TransitionEffectEventSignalType mTransitionEffectEventSignal;
870 KeyboardRepeatSettingsChangedSignalType mKeyboardRepeatSettingsChangedSignal;
871 AuxiliaryMessageSignalType mAuxiliaryMessageSignal;
872 AccessibilityHighlightSignalType mAccessibilityHighlightSignal;
873 MovedSignalType mMovedSignal;
874 OrientationChangedSignalType mOrientationChangedSignal;
875 MouseInOutEventSignalType mMouseInOutEventSignal;
876 MoveCompletedSignalType mMoveCompletedSignal;
877 ResizeCompletedSignalType mResizeCompletedSignal;
878 InsetsChangedSignalType mInsetsChangedSignal;
880 Dali::KeyEvent mLastKeyEvent;
881 Dali::TouchEvent mLastTouchEvent;
883 bool mIsTransparent : 1;
884 bool mIsFocusAcceptable : 1;
887 bool mOpaqueState : 1;
888 bool mWindowRotationAcknowledgement : 1;
890 bool mIsWindowRotating : 1; ///< The window rotating flag.
891 bool mIsEnabledUserGeometry : 1; ///< The user geometry enable flag.
894 } // namespace Adaptor
895 } // namespace Internal
897 // Helpers for public-api forwarding methods
899 inline Internal::Adaptor::Window& GetImplementation(Dali::Window& window)
901 DALI_ASSERT_ALWAYS(window && "Window handle is empty");
902 BaseObject& object = window.GetBaseObject();
903 return static_cast<Internal::Adaptor::Window&>(object);
906 inline const Internal::Adaptor::Window& GetImplementation(const Dali::Window& window)
908 DALI_ASSERT_ALWAYS(window && "Window handle is empty");
909 const BaseObject& object = window.GetBaseObject();
910 return static_cast<const Internal::Adaptor::Window&>(object);
915 #endif // DALI_INTERNAL_WINDOWSYSTEM_COMMON_WINDOW_IMPL_H