1 #ifndef DALI_WINDOW_DEVEL_H
2 #define DALI_WINDOW_DEVEL_H
5 * Copyright (c) 2019 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/adaptor-framework/window.h>
33 typedef Signal< void () > EventProcessingFinishedSignalType; ///< Event Processing finished signal type
35 typedef Signal< void (const KeyEvent&) > KeyEventSignalType; ///< Key event signal type
37 typedef Signal< void (const TouchData&) > TouchSignalType; ///< Touch signal type
39 typedef Signal< void (const WheelEvent&) > WheelEventSignalType; ///< Touched signal type
42 * @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.
44 * @param[in] window The window instance
45 * @param[in] positionSize The new window position and size
47 DALI_ADAPTOR_API void SetPositionSize( Window window, PositionSize positionSize );
50 * @brief Retrieve the window that the given actor is added to.
52 * @param[in] actor The actor
53 * @return The window the actor is added to or an empty handle if the actor is not added to any window.
55 DALI_ADAPTOR_API Window Get( Actor actor );
58 * @brief This signal is emitted just after the event processing is finished.
60 * @param[in] window The window instance
61 * @return The signal to connect to
63 DALI_ADAPTOR_API EventProcessingFinishedSignalType& EventProcessingFinishedSignal( Window window );
66 * @brief This signal is emitted when key event is received.
68 * A callback of the following type may be connected:
70 * void YourCallbackName(const KeyEvent& event);
72 * @param[in] window The window instance
73 * @return The signal to connect to
75 DALI_ADAPTOR_API KeyEventSignalType& KeyEventSignal( Window window );
78 * @brief This signal is emitted when the screen is touched and when the touch ends
79 * (i.e. the down & up touch events only).
81 * If there are multiple touch points, then this will be emitted when the first touch occurs and
82 * then when the last finger is lifted.
83 * An interrupted event will also be emitted (if it occurs).
84 * A callback of the following type may be connected:
86 * void YourCallbackName( TouchData event );
89 * @param[in] window The window instance
90 * @return The touch signal to connect to
91 * @note Motion events are not emitted.
93 DALI_ADAPTOR_API TouchSignalType& TouchSignal( Window window );
96 * @brief This signal is emitted when wheel event is received.
98 * A callback of the following type may be connected:
100 * void YourCallbackName(const WheelEvent& event);
102 * @param[in] window The window instance
103 * @return The signal to connect to
105 DALI_ADAPTOR_API WheelEventSignalType& WheelEventSignal( Window window );
107 } // namespace DevelWindow
111 #endif // DALI_WINDOW_DEVEL_H