Merge "Add function to set maximum/minimum size" into devel/master
[platform/core/uifw/dali-adaptor.git] / dali / internal / window-system / common / window-impl.h
1 #ifndef DALI_INTERNAL_WINDOWSYSTEM_COMMON_WINDOW_IMPL_H
2 #define DALI_INTERNAL_WINDOWSYSTEM_COMMON_WINDOW_IMPL_H
3
4 /*
5  * Copyright (c) 2022 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20
21 // EXTERNAL INCLUDES
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>
28 #include <dali/public-api/render-tasks/render-task-list.h>
29
30 // INTERNAL INCLUDES
31 #include <dali/devel-api/adaptor-framework/window-devel.h>
32 #include <dali/integration-api/adaptor-framework/scene-holder-impl.h>
33 #include <dali/internal/adaptor/common/adaptor-impl.h>
34 #include <dali/internal/window-system/common/event-handler.h>
35 #include <dali/public-api/adaptor-framework/key-grab.h>
36 #include <dali/public-api/adaptor-framework/window.h>
37
38 namespace Dali
39 {
40 class Adaptor;
41 class Actor;
42 class RenderSurfaceInterface;
43
44 namespace Internal
45 {
46 namespace Adaptor
47 {
48 class Orientation;
49 class WindowRenderSurface;
50 class WindowBase;
51
52 class Window;
53 using WindowPtr       = IntrusivePtr<Window>;
54 using OrientationPtr  = IntrusivePtr<Orientation>;
55 using EventHandlerPtr = IntrusivePtr<EventHandler>;
56
57 /**
58  * Window provides a surface to render onto with orientation & indicator properties.
59  */
60 class Window : public Dali::Internal::Adaptor::SceneHolder, public EventHandler::Observer, public ConnectionTracker
61 {
62 public:
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 Signal<void()>                                             SignalType;
71
72   /**
73    * @brief Create a new Window. This should only be called once by the Application class
74    * @param[in] positionSize The position and size of the window
75    * @param[in] name The window title
76    * @param[in] className The window class name
77    * @param[in] type Window type.
78    * @param[in] isTransparent Whether window is transparent
79    * @return A newly allocated Window
80    */
81   static Window* New(const PositionSize& positionSize, const std::string& name, const std::string& className, Dali::WindowType type, bool isTransparent = false);
82
83   /**
84    * @brief Create a new Window. This should only be called once by the Application class
85    * @param[in] surface The surface used to render on.
86    * @param[in] positionSize The position and size of the window
87    * @param[in] name The window title
88    * @param[in] className The window class name
89    * @param[in] type Window type.
90    * @param[in] isTransparent Whether window is transparent
91    * @return A newly allocated Window
92    */
93   static Window* New(Any surface, const PositionSize& positionSize, const std::string& name, const std::string& className, Dali::WindowType type, bool isTransparent = false);
94
95   /**
96    * @copydoc Dali::Window::SetClass()
97    */
98   void SetClass(std::string name, std::string className);
99
100   /**
101    * @brief Gets the window class name.
102    * @return The class of the window
103    */
104   std::string GetClassName() const;
105
106   /**
107    * @copydoc Dali::Window::Raise()
108    */
109   void Raise();
110
111   /**
112    * @copydoc Dali::Window::Lower()
113    */
114   void Lower();
115
116   /**
117    * @copydoc Dali::Window::Activate()
118    */
119   void Activate();
120
121   /**
122    * @copydoc Dali::DevelWindow::Maximize()
123    */
124   void Maximize(bool maximize);
125
126   /**
127    * @copydoc Dali::DevelWindow::IsMaximized()
128    */
129   bool IsMaximized() const;
130
131   /**
132    * @copydoc Dali::DevelWindow::SetMaximumSize()
133    */
134   void SetMaximumSize(Dali::Window::WindowSize size);
135
136   /**
137    * @copydoc Dali::DevelWindow::Minimize()
138    */
139   void Minimize(bool minimize);
140
141   /**
142    * @copydoc Dali::DevelWindow::IsMinimized()
143    */
144   bool IsMinimized() const;
145
146   /**
147    * @copydoc Dali::DevelWindow::SetMimimumSize()
148    */
149   void SetMimimumSize(Dali::Window::WindowSize size);
150
151   /**
152    * @copydoc Dali::Window::GetLayerCount()
153    */
154   uint32_t GetLayerCount() const;
155
156   /**
157    * @copydoc Dali::Window::GetLayer()
158    */
159   Dali::Layer GetLayer(uint32_t depth) const;
160
161   /**
162    * @copydoc Dali::DevelWindow::GetRenderTaskList()
163    */
164   Dali::RenderTaskList GetRenderTaskList() const;
165
166   /**
167    * @brief Get window resource ID assigned by window manager
168    * @return The resource ID of the window
169    */
170   std::string GetNativeResourceId() const;
171
172   /**
173    * @copydoc Dali::Window::AddAvailableOrientation()
174    */
175   void AddAvailableOrientation(WindowOrientation orientation);
176
177   /**
178    * @copydoc Dali::Window::RemoveAvailableOrientation()
179    */
180   void RemoveAvailableOrientation(WindowOrientation orientation);
181
182   /**
183    * @copydoc Dali::Window::SetPreferredOrientation()
184    */
185   void SetPreferredOrientation(WindowOrientation orientation);
186
187   /**
188    * @copydoc Dali::Window::GetPreferredOrientation()
189    */
190   WindowOrientation GetPreferredOrientation();
191
192   /**
193    * @copydoc Dali::Window::SetAcceptFocus()
194    */
195   void SetAcceptFocus(bool accept);
196
197   /**
198    * @copydoc Dali::Window::IsFocusAcceptable()
199    */
200   bool IsFocusAcceptable() const;
201
202   /**
203    * @copydoc Dali::Window::Show()
204    */
205   void Show();
206
207   /**
208    * @copydoc Dali::Window::Hide()
209    */
210   void Hide();
211
212   /**
213    * @copydoc Dali::Window::GetSupportedAuxiliaryHintCount()
214    */
215   unsigned int GetSupportedAuxiliaryHintCount() const;
216
217   /**
218    * @copydoc Dali::Window::GetSupportedAuxiliaryHint()
219    */
220   std::string GetSupportedAuxiliaryHint(unsigned int index) const;
221
222   /**
223    * @copydoc Dali::Window::AddAuxiliaryHint()
224    */
225   unsigned int AddAuxiliaryHint(const std::string& hint, const std::string& value);
226
227   /**
228    * @copydoc Dali::Window::RemoveAuxiliaryHint()
229    */
230   bool RemoveAuxiliaryHint(unsigned int id);
231
232   /**
233    * @copydoc Dali::Window::SetAuxiliaryHintValue()
234    */
235   bool SetAuxiliaryHintValue(unsigned int id, const std::string& value);
236
237   /**
238    * @copydoc Dali::Window::GetAuxiliaryHintValue()
239    */
240   std::string GetAuxiliaryHintValue(unsigned int id) const;
241
242   /**
243    * @copydoc Dali::Window::GetAuxiliaryHintId()
244    */
245   unsigned int GetAuxiliaryHintId(const std::string& hint) const;
246
247   /**
248    * @copydoc Dali::Window::SetInputRegion()
249    */
250   void SetInputRegion(const Rect<int>& inputRegion);
251
252   /**
253    * @copydoc Dali::Window::SetType()
254    */
255   void SetType(WindowType type);
256
257   /**
258    * @copydoc Dali::Window::GetType() const
259    */
260   WindowType GetType() const;
261
262   /**
263    * @copydoc Dali::Window::SetNotificationLevel()
264    */
265   WindowOperationResult SetNotificationLevel(WindowNotificationLevel level);
266
267   /**
268    * @copydoc Dali::Window::GetNotificationLevel()
269    */
270   WindowNotificationLevel GetNotificationLevel() const;
271
272   /**
273    * @copydoc Dali::Window::SetOpaqueState()
274    */
275   void SetOpaqueState(bool opaque);
276
277   /**
278    * @copydoc Dali::Window::IsOpaqueState()
279    */
280   bool IsOpaqueState() const;
281
282   /**
283    * @copydoc Dali::Window::SetScreenOffMode()
284    */
285   WindowOperationResult SetScreenOffMode(WindowScreenOffMode screenOffMode);
286
287   /**
288    * @copydoc Dali::Window::GetScreenOffMode()
289    */
290   WindowScreenOffMode GetScreenOffMode() const;
291
292   /**
293    * @copydoc Dali::Window::SetBrightness()
294    */
295   WindowOperationResult SetBrightness(int brightness);
296
297   /**
298    * @copydoc Dali::Window::GetBrightness()
299    */
300   int GetBrightness() const;
301
302   /**
303    * @copydoc Dali::Window::SetSize()
304    */
305   void SetSize(Dali::Window::WindowSize size);
306
307   /**
308    * @copydoc Dali::Window::GetSize()
309    */
310   Dali::Window::WindowSize GetSize() const;
311
312   /**
313    * @copydoc Dali::Window::SetPosition()
314    */
315   void SetPosition(Dali::Window::WindowPosition position);
316
317   /**
318    * @copydoc Dali::Window::GetPosition()
319    */
320   Dali::Window::WindowPosition GetPosition() const;
321
322   /**
323    * @copydoc Dali::DevelWindow::SetPositionSize()
324    */
325   void SetPositionSize(PositionSize positionSize);
326
327   /**
328    * @copydoc Dali::DevelWindow::GetPositionSize()
329    */
330   PositionSize GetPositionSize() const;
331
332   /**
333    * @copydoc Dali::Window::GetRootLayer()
334    */
335   Dali::Layer GetRootLayer() const;
336
337   /**
338    * @copydoc Dali::Window::SetTransparency()
339    */
340   void SetTransparency(bool transparent);
341
342   /**
343    * @copydoc Dali::KeyGrab::GrabKey()
344    */
345   bool GrabKey(Dali::KEY key, KeyGrab::KeyGrabMode grabMode);
346
347   /**
348    * @copydoc Dali::KeyGrab::UngrabKey()
349    */
350   bool UngrabKey(Dali::KEY key);
351
352   /**
353    * @copydoc Dali::KeyGrab::GrabKeyList()
354    */
355   bool GrabKeyList(const Dali::Vector<Dali::KEY>& key, const Dali::Vector<KeyGrab::KeyGrabMode>& grabMode, Dali::Vector<bool>& result);
356
357   /**
358    * @copydoc Dali::KeyGrab::UngrabKeyList()
359    */
360   bool UngrabKeyList(const Dali::Vector<Dali::KEY>& key, Dali::Vector<bool>& result);
361
362   /**
363    * @copydoc Dali::DevelWindow::Get()
364    */
365   static Dali::Window Get(Dali::Actor actor);
366
367   /**
368    * @copydoc Dali::DevelWindow::SetParent(Window window, Window parent)
369    */
370   void SetParent(Dali::Window& parent);
371
372   /**
373    * @copydoc Dali::DevelWindow::SetParent(Window window, Window parent, bool belowParent)
374    */
375   void SetParent(Dali::Window& parent, bool belowParent);
376
377   /**
378    * @copydoc Dali::DevelWindow::Unparent()
379    */
380   void Unparent();
381
382   /**
383    * @copydoc Dali::DevelWindow::GetParent()
384    */
385   Dali::Window GetParent();
386
387   /**
388    * @copydoc Dali::DevelWindow::GetCurrentOrientation()
389    */
390   WindowOrientation GetCurrentOrientation() const;
391
392   /**
393    * @copydoc Dali::DevelWindow::GetPhysicalOrientation()
394    */
395   int GetPhysicalOrientation() const;
396
397   /**
398    * @copydoc Dali::DevelWindow::SetAvailableOrientations()
399    */
400   void SetAvailableOrientations(const Dali::Vector<WindowOrientation>& orientations);
401
402   /**
403    * @copydoc Dali::DevelWindow::SetPositionSizeWithOrientation()
404    */
405   void SetPositionSizeWithOrientation(PositionSize positionSize, WindowOrientation orientation);
406
407   /**
408    * @brief Emit the accessibility highlight signal.
409    * The highlight indicates that it is an object to interact with the user regardless of focus.
410    * After setting the highlight on the object, you can do things that the object can do, such as
411    * giving or losing focus.
412    *
413    * @param[in] highlight If window needs to grab or clear highlight.
414    */
415   void EmitAccessibilityHighlightSignal(bool highlight);
416
417 public: // Dali::Internal::Adaptor::SceneHolder
418   /**
419    * @copydoc Dali::Internal::Adaptor::SceneHolder::GetNativeHandle
420    */
421   Dali::Any GetNativeHandle() const override;
422
423   /**
424    * @copydoc Dali::Internal::Adaptor::SceneHolder::IsVisible
425    */
426   bool IsVisible() const override;
427
428   /**
429    * @copydoc Dali::DevelWindow::GetNativeId()
430    */
431   int32_t GetNativeId() const;
432
433   /**
434    * @copydoc Dali::DevelWindow::RequestMoveToServer()
435    */
436   void RequestMoveToServer();
437
438   /**
439    * @copydoc Dali::DevelWindow::RequestResizeToServer()
440    */
441   void RequestResizeToServer(WindowResizeDirection direction);
442
443   /**
444    * @copydoc Dali::DevelWindow::EnableFloatingMode()
445    */
446   void EnableFloatingMode(bool enable);
447
448   /**
449    * @copydoc Dali::DevelWindow::IncludeInputRegion()
450    */
451   void IncludeInputRegion(const Rect<int>& inputRegion);
452
453   /**
454    * @copydoc Dali::DevelWindow::ExcludeInputRegion()
455    */
456   void ExcludeInputRegion(const Rect<int>& inputRegion);
457
458   /**
459    * @copydoc Dali::DevelWindow::SetNeedsRotationCompletedAcknowledgement()
460    */
461   void SetNeedsRotationCompletedAcknowledgement(bool needAcknowledgement);
462
463   /**
464    * @copydoc Dali::DevelWindow::SendRotationCompletedAcknowledgement()
465    */
466   void SendRotationCompletedAcknowledgement();
467
468   /**
469    * @copydoc Dali::DevelWindow::IsWindowRotating()
470    */
471   bool IsWindowRotating() const;
472
473   /**
474    * @copydoc Dali::DevelWindow::GetLastKeyEvent()
475    */
476   const Dali::KeyEvent& GetLastKeyEvent() const;
477
478   /**
479    * @copydoc Dali::DevelWindow::GetLastTouchEvent()
480    */
481   const Dali::TouchEvent& GetLastTouchEvent() const;
482
483 private:
484   /**
485    * @brief Enumeration for orietation mode.
486    * The Orientation Mode is related to screen size.
487    * If screen width is longer than height, the Orientation Mode will have LANDSCAPE.
488    * Otherwise screen width is shorter than height or same, the Orientation Mode will have PORTRAIT.
489    */
490   enum class OrientationMode
491   {
492     PORTRAIT = 0,
493     LANDSCAPE
494   };
495
496   /**
497    * Private constructor.
498    * @sa Window::New()
499    */
500   Window();
501
502   /**
503    * Destructor
504    */
505   ~Window() override;
506
507   /**
508    * Second stage initialization
509    */
510   void Initialize(Any surface, const PositionSize& positionSize, const std::string& name, const std::string& className, WindowType type);
511
512   /**
513    * Called when the window becomes iconified or deiconified.
514    */
515   void OnIconifyChanged(bool iconified);
516
517   /**
518    * Called when the window focus is changed.
519    */
520   void OnFocusChanged(bool focusIn);
521
522   /**
523    * Called when the output is transformed.
524    */
525   void OnOutputTransformed();
526
527   /**
528    * Called when the window receives a delete request.
529    */
530   void OnDeleteRequest();
531
532   /**
533    * Called when the window receives a Transition effect-start/end event.
534    */
535   void OnTransitionEffectEvent(WindowEffectState state, WindowEffectType type);
536
537   /**
538    * @brief Called when window receives a keyboard repeat event.
539    */
540   void OnKeyboardRepeatSettingsChanged();
541
542   /**
543    * @brief Called when the window redraw is requested.
544    */
545   void OnWindowRedrawRequest();
546
547   /**
548    * @brief Called when the window is resized or moved by display server.
549    *
550    * @param[in] positionSize the updated window's position and size.
551    */
552   void OnUpdatePositionSize(Dali::PositionSize& positionSize);
553
554   /**
555    * @brief Called when display server sent the auxiliary message.
556    *
557    * @param[in] key the auxiliary message's key.
558    * @param[in] value the auxiliary message's value.
559    * @param[in] options the auxiliary message's options. This is the list of string.
560    */
561   void OnAuxiliaryMessage(const std::string& key, const std::string& value, const Property::Array& options);
562
563   /**
564    * @brief Called when Accessibility is enabled.
565    *
566    * This method is to register the window to accessibility bridge.
567    */
568   void OnAccessibilityEnabled();
569
570   /**
571    * @brief Called when Accessibility is disabled.
572    *
573    * This method is to remove the window from accessibility bridge.
574    */
575   void OnAccessibilityDisabled();
576
577   /**
578    * @brief Set available orientation to window base.
579    */
580   void SetAvailableAnlges(const std::vector<int>& angles);
581
582   /**
583    * @brief Convert from window orientation to angle using OrientationMode.
584    */
585   int ConvertToAngle(WindowOrientation orientation);
586
587   /**
588    * @brief Convert from angle to window orientation using OrientationMode.
589    */
590   WindowOrientation ConvertToOrientation(int angle) const;
591
592   /**
593    * @brief Check available window orientation for Available orientation.
594    */
595   bool IsOrientationAvailable(WindowOrientation orientation) const;
596
597   /**
598    * @brief Return the rect value to recalulate with the default system coordinates.
599    *
600    * Some native window APIs work the geometry value based on the default system coordinates.
601    * IncludeInputRegion() and ExcludeInputRegion() are one of them.
602    * When the window is rotated, current window's geometry already were set with the rotated angle.
603    * If IncludeInputRegion() or ExcludeInputRegion() are called with rotated angle by application,
604    * the rect's area should be re-calcuated on the default system coordinates.
605    *
606    * @param[in] rect the window's current position and size with current window rotation angle.
607    * @return the re-calculated rect on the default system coordinates.
608    */
609   Rect<int> RecalculateRect(const Rect<int>& rect);
610
611 private: // Dali::Internal::Adaptor::SceneHolder
612   /**
613    * @copydoc Dali::Internal::Adaptor::SceneHolder::OnAdaptorSet
614    */
615   void OnAdaptorSet(Dali::Adaptor& adaptor) override;
616
617   /**
618    * @copydoc Dali::Internal::Adaptor::SceneHolder::OnSurfaceSet
619    */
620   void OnSurfaceSet(Dali::RenderSurfaceInterface* surface) override;
621
622   /**
623    * @copydoc Dali::Internal::Adaptor::SceneHolder::OnPause
624    */
625   void OnPause() override;
626
627   /**
628    * @copydoc Dali::Internal::Adaptor::SceneHolder::OnResume
629    */
630   void OnResume() override;
631
632   /**
633    * @copydoc Dali::Internal::Adaptor::SceneHolder::RecalculateTouchPosition
634    */
635   void RecalculateTouchPosition(Integration::Point& point) override;
636
637 private: // Dali::Internal::Adaptor::EventHandler::Observer
638   /**
639    * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnTouchPoint
640    */
641   void OnTouchPoint(Dali::Integration::Point& point, int timeStamp) override;
642
643   /**
644    * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnWheelEvent
645    */
646   void OnWheelEvent(Dali::Integration::WheelEvent& wheelEvent) override;
647
648   /**
649    * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnKeyEvent
650    */
651   void OnKeyEvent(Dali::Integration::KeyEvent& keyEvent) override;
652
653   /**
654    * @copydoc Dali::Internal::Adaptor::EventHandler::Observer::OnRotation
655    */
656   void OnRotation(const RotationEvent& rotation) override;
657
658 public: // Signals
659   /**
660    * @copydoc Dali::Window::FocusChangeSignal()
661    */
662   FocusChangeSignalType& FocusChangeSignal()
663   {
664     return mFocusChangeSignal;
665   }
666
667   /**
668    * @copydoc Dali::Window::ResizedSignal()
669    */
670   ResizeSignalType& ResizeSignal()
671   {
672     return mResizeSignal;
673   }
674
675   /**
676    * This signal is emitted when the window is requesting to be deleted
677    */
678   SignalType& DeleteRequestSignal()
679   {
680     return mDeleteRequestSignal;
681   }
682
683   /**
684    * @copydoc Dali::DevelWindow::VisibilityChangedSignal()
685    */
686   VisibilityChangedSignalType& VisibilityChangedSignal()
687   {
688     return mVisibilityChangedSignal;
689   }
690
691   /**
692    * @copydoc Dali::Window::SignalEventProcessingFinished()
693    */
694   Dali::DevelWindow::EventProcessingFinishedSignalType& EventProcessingFinishedSignal()
695   {
696     return mScene.EventProcessingFinishedSignal();
697   }
698
699   /**
700    * @copydoc Dali::DevelWindow::TransitionEffectEventSignal()
701    */
702   TransitionEffectEventSignalType& TransitionEffectEventSignal()
703   {
704     return mTransitionEffectEventSignal;
705   }
706
707   /**
708    * @copydoc Dali::DevelWindow::KeyboardRepeatSettingsChangedSignal()
709    */
710   KeyboardRepeatSettingsChangedSignalType& KeyboardRepeatSettingsChangedSignal()
711   {
712     return mKeyboardRepeatSettingsChangedSignal;
713   }
714
715   /**
716    * @copydoc Dali::DevelWindow::AuxiliaryMessageSignal()
717    */
718   AuxiliaryMessageSignalType& AuxiliaryMessageSignal()
719   {
720     return mAuxiliaryMessageSignal;
721   }
722
723   /**
724    * @copydoc Dali::DevelWindow::AccessibilityHighlightSignal()
725    */
726   AccessibilityHighlightSignalType& AccessibilityHighlightSignal()
727   {
728     return mAccessibilityHighlightSignal;
729   }
730
731 private:
732   WindowRenderSurface* mWindowSurface; ///< The window rendering surface
733   WindowBase*          mWindowBase;
734   std::string          mName;
735   std::string          mClassName;
736   Dali::Window         mParentWindow;
737
738   OrientationPtr   mOrientation;
739   std::vector<int> mAvailableAngles;
740   int              mPreferredAngle;
741
742   int mRotationAngle;  ///< The angle of the rotation
743   int mWindowWidth;    ///< The width of the window
744   int mWindowHeight;   ///< The height of the window
745   int mNativeWindowId; ///< The Native Window Id
746
747   EventHandlerPtr mEventHandler;    ///< The window events handler
748   OrientationMode mOrientationMode; ///< The physical screen mode is portrait or landscape
749
750   // Signals
751   SignalType                              mDeleteRequestSignal;
752   FocusChangeSignalType                   mFocusChangeSignal;
753   ResizeSignalType                        mResizeSignal;
754   VisibilityChangedSignalType             mVisibilityChangedSignal;
755   TransitionEffectEventSignalType         mTransitionEffectEventSignal;
756   KeyboardRepeatSettingsChangedSignalType mKeyboardRepeatSettingsChangedSignal;
757   AuxiliaryMessageSignalType              mAuxiliaryMessageSignal;
758   AccessibilityHighlightSignalType        mAccessibilityHighlightSignal;
759
760   Dali::KeyEvent   mLastKeyEvent;
761   Dali::TouchEvent mLastTouchEvent;
762
763   bool mIsTransparent : 1;
764   bool mIsFocusAcceptable : 1;
765   bool mIconified : 1;
766   bool mOpaqueState : 1;
767   bool mWindowRotationAcknowledgement : 1;
768   bool mFocused : 1;
769 };
770
771 } // namespace Adaptor
772 } // namespace Internal
773
774 // Helpers for public-api forwarding methods
775
776 inline Internal::Adaptor::Window& GetImplementation(Dali::Window& window)
777 {
778   DALI_ASSERT_ALWAYS(window && "Window handle is empty");
779   BaseObject& object = window.GetBaseObject();
780   return static_cast<Internal::Adaptor::Window&>(object);
781 }
782
783 inline const Internal::Adaptor::Window& GetImplementation(const Dali::Window& window)
784 {
785   DALI_ASSERT_ALWAYS(window && "Window handle is empty");
786   const BaseObject& object = window.GetBaseObject();
787   return static_cast<const Internal::Adaptor::Window&>(object);
788 }
789
790 } // namespace Dali
791
792 #endif // DALI_INTERNAL_WINDOWSYSTEM_COMMON_WINDOW_IMPL_H