1 #ifndef DALI_WINDOW_DEVEL_H
2 #define DALI_WINDOW_DEVEL_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.
25 #include <dali/devel-api/adaptor-framework/mouse-in-out-event.h>
26 #include <dali/devel-api/adaptor-framework/mouse-relative-event.h>
27 #include <dali/devel-api/adaptor-framework/pointer-constraints-event.h>
28 #include <dali/public-api/adaptor-framework/window-enumerations.h>
29 #include <dali/public-api/adaptor-framework/window.h>
30 #include <dali/public-api/common/vector-wrapper.h>
43 typedef Signal<void()> EventProcessingFinishedSignalType; ///< Event Processing finished signal type
44 typedef Signal<void(const KeyEvent&)> KeyEventSignalType; ///< Key event signal type
45 typedef Signal<void(const TouchEvent&)> TouchEventSignalType; ///< Touch signal type
46 typedef Signal<void(const WheelEvent&)> WheelEventSignalType; ///< Wheel signal type
47 typedef Signal<void(Window, bool)> VisibilityChangedSignalType; ///< Visibility changed signal type
48 typedef Signal<void(Window, WindowEffectState, WindowEffectType)> TransitionEffectEventSignalType; ///< Effect signal type and state
49 typedef Signal<void()> KeyboardRepeatSettingsChangedSignalType; ///< Keyboard repeat settings changed signal type
50 typedef Signal<void(const std::string&, const std::string&, const Property::Array&)> AuxiliaryMessageSignalType; ///< Auxiliary message signal type
51 typedef Signal<void(Window, bool)> AccessibilityHighlightSignalType; ///< Accessibility Highlight signal type
52 typedef Signal<bool(const KeyEvent&)> InterceptKeyEventSignalType; ///< Intercept Key event signal type
53 typedef Signal<void(Window, Dali::Window::WindowPosition)> MovedSignalType; ///< Window Moved signal type
54 typedef Signal<void(Window, Dali::WindowOrientation)> OrientationChangedSignalType; ///< Window orientation changed signal type
55 typedef Signal<void(Window, const Dali::DevelWindow::MouseInOutEvent&)> MouseInOutEventSignalType; ///< MouseInOutEvent signal type
56 typedef Signal<void(Window, const Dali::DevelWindow::MouseRelativeEvent&)> MouseRelativeEventSignalType; ///< MouseRelativeEvent signal type
57 typedef Signal<void(Window, Dali::Window::WindowPosition)> MoveCompletedSignalType; ///< Window Moved by Server signal type
58 typedef Signal<void(Window, Dali::Window::WindowSize)> ResizeCompletedSignalType; ///< Window Resized by Server signal type
59 typedef Signal<void(WindowInsetsPartType, WindowInsetsPartState, const Extents&)> InsetsChangedSignalType; ///< InsetsChanged signal type
60 typedef Signal<void(Window, const Dali::DevelWindow::PointerConstraintsEvent&)> PointerConstraintsSignalType; ///< PointerConstraintsEvent signal type
63 * @brief Creates an initialized handle to a new Window.
65 * @param[in] surface Can be a window or pixmap.
66 * @param[in] windowPosition The position and size of the Window
67 * @param[in] name The Window title
68 * @param[in] isTransparent Whether Window is transparent
69 * @return A new window
70 * @note This creates an extra window in addition to the default main window
72 DALI_ADAPTOR_API Window New(Any surface, PositionSize windowPosition, const std::string& name, bool isTransparent = false);
75 * @brief Creates an initialized handle to a new Window.
77 * @param[in] surface Can be a window or pixmap.
78 * @param[in] windowPosition The position and size of the Window
79 * @param[in] name The Window title
80 * @param[in] className The Window class name
81 * @param[in] isTransparent Whether Window is transparent
82 * @note This creates an extra window in addition to the default main window
83 * @return A new Window
85 DALI_ADAPTOR_API Window New(Any surface, PositionSize windowPosition, const std::string& name, const std::string& className, bool isTransparent = false);
88 * @brief Sets position and size of the window. This API guarantees that both moving and resizing of window will appear on the screen at once.
90 * @param[in] window The window instance
91 * @param[in] positionSize The new window position and size
93 DALI_ADAPTOR_API void SetPositionSize(Window window, PositionSize positionSize);
96 * @brief Retrieve the window that the given actor is added to.
98 * @param[in] actor The actor
99 * @return The window the actor is added to or an empty handle if the actor is not added to any window.
101 DALI_ADAPTOR_API Window Get(Actor actor);
104 * @brief This signal is emitted just after the event processing is finished.
106 * @param[in] window The window instance
107 * @return The signal to connect to
109 DALI_ADAPTOR_API EventProcessingFinishedSignalType& EventProcessingFinishedSignal(Window window);
112 * @brief This signal is emitted when wheel event is received.
114 * A callback of the following type may be connected:
116 * void YourCallbackName(const WheelEvent& event);
118 * @param[in] window The window instance
119 * @return The signal to connect to
121 DALI_ADAPTOR_API WheelEventSignalType& WheelEventSignal(Window window);
124 * @brief This signal is emitted when the window is shown or hidden.
126 * A callback of the following type may be connected:
128 * void YourCallbackName( Window window, bool visible );
130 * @param[in] window The window instance
131 * @return The signal to connect to
133 DALI_ADAPTOR_API VisibilityChangedSignalType& VisibilityChangedSignal(Window window);
136 * @brief This signal is emitted for transition effect.
138 * The transition animation is appeared when the window is shown/hidden.
139 * When the animation is started, START signal is emitted.
140 * Then the animation is ended, END signal is emitted, too.
141 * A callback of the following type may be connected:
143 * void YourCallbackName( Window window, EffectState state, EffectType type );
145 * @param[in] window The window instance
146 * @return The signal to connect to
148 DALI_ADAPTOR_API TransitionEffectEventSignalType& TransitionEffectEventSignal(Window window);
151 * @brief This signal is emitted just after the keyboard repeat setting is changed globally.
153 * @param[in] window The window instance
154 * @return The signal to connect to
156 DALI_ADAPTOR_API KeyboardRepeatSettingsChangedSignalType& KeyboardRepeatSettingsChangedSignal(Window window);
159 * @brief This signal is emitted when window's auxiliary was changed then display server sent the message.
161 * Auxiliary message is sent by display server.
162 * When client application added the window's auxiliary hint and if the auxiliary is changed,
163 * display server send the auxiliary message.
164 * Auxiliary message has the key, value and options.
166 * @param[in] window The window instance
167 * @return The signal to connect to
169 DALI_ADAPTOR_API AuxiliaryMessageSignalType& AuxiliaryMessageSignal(Window window);
172 * @brief This signal is emitted when the window needs to grab or clear accessibility highlight.
173 * The highlight indicates that it is an object to interact with the user regardless of focus.
174 * After setting the highlight on the object, you can do things that the object can do, such as
175 * giving or losing focus.
177 * This signal is emitted by Dali::Accessibility::Component::GrabHighlight
178 * and Dali::Accessibility::Component::ClearHighlight
180 * A callback of the following type may be connected:
182 * void YourCallbackName( Window window, bool highlight );
185 * @param[in] window The window instance
186 * @return The signal to connect to
188 DALI_ADAPTOR_API AccessibilityHighlightSignalType& AccessibilityHighlightSignal(Window window);
191 * @brief Sets parent window of the window.
193 * After setting that, these windows do together when raise-up, lower and iconified/deiconified.
194 * Initially, the window is located on top of the parent. The window can go below parent by calling Lower().
195 * If parent's window stack is changed by calling Raise() or Lower(), child windows are located on top of the parent again.
197 * @param[in] window The window instance
198 * @param[in] parent The parent window instance
200 DALI_ADAPTOR_API void SetParent(Window window, Window parent);
203 * @brief Sets parent window of the window.
205 * After setting that, these windows do together when raise-up, lower and iconified/deiconified.
206 * This function has the additional flag whether the child is located above or below of the parent.
208 * @param[in] window The window instance
209 * @param[in] parent The parent window instance
210 * @param[in] belowParent The flag is whether the child is located above or below of the parent.
212 DALI_ADAPTOR_API void SetParent(Window window, Window parent, bool belowParent);
215 * @brief Unsets parent window of the window.
217 * After unsetting, the window is disconnected his parent window.
219 * @param[in] window The window instance
221 DALI_ADAPTOR_API void Unparent(Window window);
224 * @brief Gets parent window of the window.
226 * @param[in] window The window instance
227 * @return The parent window of the window
229 DALI_ADAPTOR_API Window GetParent(Window window);
232 * @brief Gets current orientation of the window.
234 * @param[in] window The window instance
235 * @return The current window orientation if previously set, or none
237 DALI_ADAPTOR_API WindowOrientation GetCurrentOrientation(Window window);
240 * @brief Gets current physical orientation of the window.
242 * It means current physical rotation angle of the window.
243 * If the height of the display device's area is greater than the width,
244 * default current orientation is PORTRAIT and current physical orientation angle is 0.
245 * If the width of the display device's area is greater than the height,
246 * default current orientation is LANDSCAPE and current physical orientation angle is 0.
248 * @param[in] window The window instance
249 * @return The current physical orientation degree of the window. It is one of them as 0, 90, 180 and 270.
251 DALI_ADAPTOR_API int GetPhysicalOrientation(Window window);
254 * @brief Sets available orientations of the window.
256 * This API is for setting several orientations one time.
258 * @param[in] window The window instance
259 * @param[in] orientations The available orientation list to add
261 DALI_ADAPTOR_API void SetAvailableOrientations(Window window, const Dali::Vector<WindowOrientation>& orientations);
264 * @brief Gets the native window id.
266 * @param[in] window The window instance
268 DALI_ADAPTOR_API int32_t GetNativeId(Window window);
271 * @brief Adds a callback that is called when the frame rendering is done by the graphics driver.
273 * @param[in] window The window instance
274 * @param[in] callback The function to call
275 * @param[in] frameId The Id to specify the frame. It will be passed when the callback is called.
277 * @note A callback of the following type may be used:
279 * void MyFunction( int frameId );
281 * This callback will be deleted once it is called.
283 * @note Ownership of the callback is passed onto this class.
285 DALI_ADAPTOR_API void AddFrameRenderedCallback(Window window, std::unique_ptr<CallbackBase> callback, int32_t frameId);
288 * @brief Adds a callback that is called when the frame is displayed on the display.
290 * @param[in] window The window instance
291 * @param[in] callback The function to call
292 * @param[in] frameId The Id to specify the frame. It will be passed when the callback is called.
294 * @note A callback of the following type may be used:
296 * void MyFunction( int frameId );
298 * This callback will be deleted once it is called.
300 * @note Ownership of the callback is passed onto this class.
302 DALI_ADAPTOR_API void AddFramePresentedCallback(Window window, std::unique_ptr<CallbackBase> callback, int32_t frameId);
305 * @brief Sets window position and size for specific orientation.
306 * This api reserves the position and size per orientation to display server.
307 * When the device is rotated, the window is moved/resized with the reserved position/size by display server.
309 * @param[in] window The window instance
310 * @param[in] positionSize The reserved position and size for the orientation
311 * @param[in] orientation The orientation
313 * @note Currently, it only works when the window's type is WindowType::IME.
314 * @note To set WindowType::IME, use Application New(... WindowType type), not Window::SetType().
315 * @note This function is only useful in Tizen world.
317 DALI_ADAPTOR_API void SetPositionSizeWithOrientation(Window window, PositionSize positionSize, WindowOrientation orientation);
320 * @brief Requests to display server for the window is moved by display server.
322 * This function should be called in mouse down event callback function.
323 * After this function is called in mouse down event callback function, the window is moved with mouse move event.
324 * When mouse up event happens, the window moved work is finished.
326 * @param[in] window The window instance
328 DALI_ADAPTOR_API void RequestMoveToServer(Window window);
331 * @brief Requests to display server for the window is resized by display server.
333 * This function should be called in mouse down event callback function.
334 * After this function is called in mouse down event callback function, the window is resized with mouse move event.
335 * The direction is selected one of eight ways.
336 * When mouse up event happens, the window resized work is finished.
338 * @param[in] window The window instance
339 * @param[in] direction it is indicated the window's side or edge for starting point.
341 DALI_ADAPTOR_API void RequestResizeToServer(Window window, WindowResizeDirection direction);
344 * @brief Enables the floating mode of window.
346 * The floating mode is to support making partial size window easliy.
347 * It is useful to make popup style window and this window is always upper than the other normal window.
348 * In addition, it is easy to change between popup style and normal style window.
350 * A special display server(as a Tizen display server) supports this mode.
352 * @param[in] window The window instance.
353 * @param[in] enable Enable floating mode or not.
355 DALI_ADAPTOR_API void EnableFloatingMode(Window window, bool enable);
358 * @brief Returns whether the window is floating mode or not.
360 * @param[in] window The window instance.
361 * @return True if the window is enabled floating mode, false otherwise.
363 DALI_ADAPTOR_API bool IsFloatingModeEnabled(Window window);
366 * @brief Includes input region.
368 * This function inlcudes input regions.
369 * It can be used multiple times and supports multiple regions.
370 * It means input region will be extended.
372 * This input is related to mouse and touch event.
373 * If device has touch screen, this function is useful.
374 * Otherwise device does not have that, we can use it after connecting mouse to the device.
376 * @param[in] window The window instance.
377 * @param[in] inputRegion The added region to accept input events.
379 DALI_ADAPTOR_API void IncludeInputRegion(Window window, const Rect<int>& inputRegion);
382 * @brief Excludes input region.
384 * This function excludes input regions.
385 * It can be used multiple times and supports multiple regions.
386 * It means input region will be reduced.
387 * Nofice, should be set input area by IncludeInputRegion() before this function is used.
389 * This input is related to mouse and touch event.
390 * If device has touch screen, this function is useful.
391 * Otherwise device does not have that, we can use it after connecting mouse to the device.
393 * @param[in] window The window instance.
394 * @param[in] inputRegion The subtracted region to except input events.
396 DALI_ADAPTOR_API void ExcludeInputRegion(Window window, const Rect<int>& inputRegion);
399 * @brief Sets the necessary for window rotation Acknowledgement.
400 * After this function called, SendRotationCompletedAcknowledgement() should be called to complete window rotation.
402 * This function is supprot that application has the window rotation acknowledgement's control.
403 * It means display server waits when application's rotation work is finished.
404 * It is useful application has the other rendering engine which works asynchronous.
405 * For instance, GlView.
406 * It only works on Tizen device.
408 * @param[in] window The window instance.
409 * @param[in] needAcknowledgement the flag is true if window rotation acknowledge is sent.
411 DALI_ADAPTOR_API void SetNeedsRotationCompletedAcknowledgement(Window window, bool needAcknowledgement);
414 * @brief send the Acknowledgement to complete window rotation.
415 * For this function, SetNeedsRotationCompletedAcknowledgement should be already called with true.
417 * @param[in] window The window instance.
419 DALI_ADAPTOR_API void SendRotationCompletedAcknowledgement(Window window);
422 * @brief Feed (Send) touch event to window
423 * @param[in] window The window instance
424 * @param[in] point The touch point
425 * @param[in] timeStamp The time stamp
427 DALI_ADAPTOR_API void FeedTouchPoint(Window window, const Dali::TouchPoint& point, int32_t timeStamp);
430 * @brief Feed (Send) wheel event to window
431 * @param[in] window The window instance
432 * @param[in] wheelEvent The wheel event
434 DALI_ADAPTOR_API void FeedWheelEvent(Window window, const Dali::WheelEvent& wheelEvent);
437 * @brief Feed (Send) key event to window
438 * @param[in] window The window instance
439 * @param[in] keyEvent The key event holding the key information.
441 DALI_ADAPTOR_API void FeedKeyEvent(Window window, const Dali::KeyEvent& keyEvent);
444 * @brief Feed (Send) hover event to window
445 * @param[in] window The window instance
446 * @param[in] point The touch point that create a hover event
448 DALI_ADAPTOR_API void FeedHoverEvent(Window window, const Dali::TouchPoint& point);
451 * @brief Maximizes window's size.
452 * If this function is called with true, window will be resized with screen size.
453 * Otherwise window will be resized with previous size.
454 * It is for the window's MAX button in window's border.
456 * It is for client application.
457 * If window border is supported by display server, it is not necessary.
459 * @param[in] window The window instance.
460 * @param[in] maximize If window is maximized or unmaximized.
462 DALI_ADAPTOR_API void Maximize(Window window, bool maximize);
465 * @brief Returns whether the window is maximized or not.
467 * @param[in] window The window instance.
468 * @return True if the window is maximized, false otherwise.
470 DALI_ADAPTOR_API bool IsMaximized(Window window);
473 * @brief Sets window's maximum size.
475 * It is to set the maximized size when window is maximized or the window's size is increased by RequestResizeToServer().
476 * Although the size is set by this function, window's size can be increased over the limitation by SetPositionSize() or SetSize().
478 * After setting, if Maximize() is called, window is resized with the setting size and move the center.
480 * @param[in] window The window instance.
481 * @param[in] size the maximum size
483 DALI_ADAPTOR_API void SetMaximumSize(Window window, Dali::Window::WindowSize size);
486 * @brief Minimizes window's size.
487 * If this function is called with true, window will be iconified.
488 * Otherwise window will be activated.
489 * It is for the window's MIN button in window border.
491 * It is for client application.
492 * If window border is supported by display server, it is not necessary.
494 * @param[in] window The window instance.
495 * @param[in] minimize If window is minimized or unminimized(activated).
497 DALI_ADAPTOR_API void Minimize(Window window, bool minimize);
500 * @brief Returns whether the window is minimized or not.
502 * @param[in] window The window instance.
503 * @return True if the window is minimized, false otherwise.
505 DALI_ADAPTOR_API bool IsMinimized(Window window);
508 * @brief Sets window's minimum size.
510 * It is to set the minimum size when window's size is decreased by RequestResizeToServer().
511 * Although the size is set by this function, window's size can be decreased over the limitation by SetPositionSize() or SetSize().
513 * @param[in] window The window instance.
514 * @param[in] size the minimum size
516 DALI_ADAPTOR_API void SetMimimumSize(Window window, Dali::Window::WindowSize size);
519 * @brief Query whether window is rotating or not.
521 * @param[in] window The window instance.
522 * @return true if window is rotating, false otherwise.
524 DALI_ADAPTOR_API bool IsWindowRotating(Window window);
527 * @brief Gets the last key event the window gets.
529 * @param[in] window The window instance.
530 * @return The last key event the window gets.
532 DALI_ADAPTOR_API const KeyEvent& GetLastKeyEvent(Window window);
535 * @brief Gets the last touch event the window gets.
537 * @param[in] window The window instance.
538 * @return The last touch event the window gets.
539 * @note It returns the raw event the window gets. There is no hit-actor and local position information.
541 DALI_ADAPTOR_API const TouchEvent& GetLastTouchEvent(Window window);
544 * @brief Gets the last hover event the window gets.
546 * @param[in] window The window instance.
547 * @return The last hover event the window gets.
548 * @note It returns the raw event the window gets. There is no hit-actor and local position information.
550 DALI_ADAPTOR_API const HoverEvent& GetLastHoverEvent(Window window);
553 * @brief Sets the pointer constraints lock.
555 * @param[in] window The window instance.
556 * @return Returns true if PointerConstraintsLock succeeds.
558 DALI_ADAPTOR_API bool PointerConstraintsLock(Window window);
561 * @brief Sets the pointer constraints unlock.
563 * @param[in] window The window instance.
564 * @return Returns true if PointerConstraintsUnlock succeeds.
566 DALI_ADAPTOR_API bool PointerConstraintsUnlock(Window window);
569 * @brief Sets the locked pointer region
571 * @param[in] window The window instance.
572 * @param[in] x The x position.
573 * @param[in] y The y position.
574 * @param[in] width The width.
575 * @param[in] height The height
577 DALI_ADAPTOR_API void LockedPointerRegionSet(Window window, int32_t x, int32_t y, int32_t width, int32_t height);
580 * @brief Sets the locked pointer cursor position hintset
582 * @param[in] window The window instance.
583 * @param[in] x The x position.
584 * @param[in] y The y position.
586 DALI_ADAPTOR_API void LockedPointerCursorPositionHintSet(Window window, int32_t x, int32_t y);
589 * @brief Sets the pointer warp. The pointer moves to the set coordinates.
591 * @param[in] window The window instance.
592 * @param[in] x The x position.
593 * @param[in] y The y position.
594 * @return Returns true if PointerWarp succeeds.
596 DALI_ADAPTOR_API bool PointerWarp(Window window, int32_t x, int32_t y);
599 * @brief Sets visibility on/off of cursor
601 * @param[in] window The window instance.
602 * @param[in] visible The visibility of cursor
604 DALI_ADAPTOR_API void CursorVisibleSet(Window window, bool visible);
607 * @brief Requests grab key events according to the requested device subtype
609 * @param[in] window The window instance.
610 * @param[in] deviceSubclass The deviceSubclass type.
611 * @return Returns true if KeyboardGrab succeeds.
613 DALI_ADAPTOR_API bool KeyboardGrab(Window window, Device::Subclass::Type deviceSubclass);
616 * @brief Requests ungrab key events
618 * @param[in] window The window instance.
619 * @return Returns true if KeyboardUnGrab succeeds.
621 DALI_ADAPTOR_API bool KeyboardUnGrab(Window window);
624 * @brief Sets full screen sized window.
625 * If full screen size is set for the window,
626 * window will be resized with full screen size.
627 * In addition, the full screen sized window's z-order is the highest.
629 * @param[in] window The window instance.
630 * @param[in] fullscreen true to set fullscreen, false to unset.
632 DALI_ADAPTOR_API void SetFullScreen(Window window, bool fullscreen);
635 * @brief Gets whether the full screen sized window or not
637 * @param[in] window The window instance.
638 * @return Returns true if the full screen sized window is.
640 DALI_ADAPTOR_API bool GetFullScreen(Window window);
643 * @brief Enables or disables front buffer rendering.
645 * @param[in] window The window instance.
646 * @param[in] enable true to enable front buffer rendering, false to disable.
648 DALI_ADAPTOR_API void SetFrontBufferRendering(Window window, bool enable);
651 * @brief Gets whether front buffer rendering is enabled.
653 * @param[in] window The window instance.
654 * @return Whether front buffer rendering has been enabled or not.
656 DALI_ADAPTOR_API bool GetFrontBufferRendering(Window window);
659 * @brief The user would connect to this signal to intercept a KeyEvent at window.
661 * Intercepts KeyEvents in the window before dispatching KeyEvents to the control.
662 * If a KeyEvent is consumed, no KeyEvent is delivered to the control.
664 * @param[in] window The window instance.
665 * @return The signal to connect to
667 DALI_ADAPTOR_API InterceptKeyEventSignalType& InterceptKeyEventSignal(Window window);
670 * @brief This signal is emitted when the window is moved.
672 * A callback of the following type may be connected:
674 * void YourCallbackName( Window window, Dali::Window::WindowPosition position );
676 * The parameters are the moved x and y coordinates.
677 * and window means this signal was called from what window
679 * @param[in] window The window instance.
680 * @return The signal to connect to
682 DALI_ADAPTOR_API MovedSignalType& MovedSignal(Window window);
685 * @brief This signal is emitted when the window orientation is changed.
687 * To emit Window Orientation signal, AddAvailableOrientation() or SetPreferredOrientation() should be called before device is rotated.
688 * Most of cases, AddAvailableOrientation() or SetPreferredOrientation() is callled in onCreate().
690 * A callback of the following type may be connected:
692 * void YourCallbackName( Window window, Dali::WindowOrientation orientation );
694 * The parameter is the changed window orientation.
695 * and window means this signal was called from what window
697 * @param[in] window The window instance.
698 * @return The signal to connect to
700 DALI_ADAPTOR_API OrientationChangedSignalType& OrientationChangedSignal(Window window);
703 * @brief This signal is emitted when the mouse in or out event is received.
705 * A callback of the following type may be connected:
707 * void YourCallbackName( Window window, Dali::MouseInOutEvent event );
710 * @param[in] window The window instance.
711 * @return The signal to connect to
713 DALI_ADAPTOR_API MouseInOutEventSignalType& MouseInOutEventSignal(Window window);
716 * @brief This signal is emitted when the mouse relative event is received.
718 * A callback of the following type may be connected:
720 * void YourCallbackName( Window window, Dali::MouseRelativeEvent event );
723 * @param[in] window The window instance.
724 * @return The signal to connect to
726 DALI_ADAPTOR_API MouseRelativeEventSignalType& MouseRelativeEventSignal(Window window);
729 * @brief This signal is emitted when window has been moved by the display server.
730 * To make the window move by display server, RequestMoveToServer() should be called.
731 * After the moving job is completed, this function will be called.
733 * A callback of the following type may be connected:
735 * void YourCallbackName( Window window, Dali::Window::WindowPosition position );
737 * The parameters are the moved x and y coordinates.
738 * and window means this signal was called from what window
740 * @param[in] window The window instance.
741 * @return The signal to connect to
743 DALI_ADAPTOR_API MoveCompletedSignalType& MoveCompletedSignal(Window window);
746 * @brief This signal is emitted when window has been resized by the display server.
747 * To make the window move by display server, RequestResizeToServer() should be called.
748 * After the resizing job is completed, this function will be called.
750 * A callback of the following type may be connected:
752 * void YourCallbackName( Window window, Dali::Window::WindowPosition position );
754 * The parameters are the resized width and height coordinates.
755 * and window means this signal was called from what window
757 * @param[in] window The window instance.
758 * @return The signal to connect to
760 DALI_ADAPTOR_API ResizeCompletedSignalType& ResizeCompletedSignal(Window window);
763 * @brief This signal is emitted when window insets are changed by appearing or disappearing indicator, virtual keyboard, or clipboard.
765 * @param[in] window The window instance
766 * @return The signal to connect to
768 DALI_ADAPTOR_API InsetsChangedSignalType& InsetsChangedSignal(Window window);
771 * @brief This signal is emitted when pointer is locked/unlocked
773 * @param[in] window The window instance
774 * @return The signal to connect to
776 DALI_ADAPTOR_API PointerConstraintsSignalType& PointerConstraintsSignal(Window window);
778 } // namespace DevelWindow
782 #endif // DALI_WINDOW_DEVEL_H