1 #ifndef DALI_WINDOW_DEVEL_H
2 #define DALI_WINDOW_DEVEL_H
5 * Copyright (c) 2017 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 #ifdef DALI_ADAPTOR_COMPILATION // full path doesn't exist until adaptor is installed so we have to use relative
25 #include <dali/public-api/adaptor-framework/window.h>
34 typedef Signal< void (bool) > FocusSignalType; ///< Window focus signal type
37 * @brief The user should connect to this signal to get a timing when window gains focus or loses focus.
39 * A callback of the following type may be connected:
41 * void YourCallbackName( bool focusIn );
43 * The parameter is true if window gains focus, otherwise false.
45 * @param[in] window The window to get a signal
46 * @return The signal to connect to
48 FocusSignalType& FocusChangedSignal( Window window );
51 * @brief Sets whether window accepts focus or not.
53 * @param[in] window The window to accept focus
54 * @param[in] accept If focus is accepted or not. Default is true.
56 void SetAcceptFocus( Window window, bool accept );
59 * @brief Returns whether window accepts focus or not.
61 * @param[in] window The window to accept focus
62 * @return True if the window accept focus, false otherwise
64 bool IsFocusAcceptable( Window window );
66 } // namespace DevelWindow
70 #endif // DALI_WINDOW_DEVEL_H