2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef __TIZEN_UI_EFL_UTIL_SCREENSHOT_EXTENSION_H__
18 #define __TIZEN_UI_EFL_UTIL_SCREENSHOT_EXTENSION_H__
27 # define API __attribute__ ((visibility("default")))
33 * @file efl_util_screenshot_extension.h
37 * @addtogroup CAPI_EFL_UTIL_MODULE
43 * @brief Set auto rotation value for screenshot.
44 * @since_tizen $TZ_CFG_VER_40$
46 * @privilege %http://tizen.org/privilege/screenshot
47 * @param[in] screenshot efl_util_screenshot_h handle
48 * @param[in] set auto rotation value (1:use auto rotation, 0:don't use auto rotation)
49 * @return @c 0 on success, otherwise a negative error value
50 * @retval #EFL_UTIL_ERROR_NONE Successful
51 * @retval #EFL_UTIL_ERROR_INVALID_PARAMETER Invalid parameter
52 * @see efl_util_screenshot_get_auto_rotation()
54 API int efl_util_screenshot_set_auto_rotation(efl_util_screenshot_h screenshot, int set);
58 * @brief Get current auto rotation value of screenshot.
59 * @since_tizen $TZ_CFG_VER_40$
61 * @privilege %http://tizen.org/privilege/screenshot
62 * @param[in] screenshot efl_util_screenshot_h handle
63 * @param[out] set The current auto rotation value of screenshot
64 * @return @c 0 on success, otherwise a negative error value
65 * @retval #EFL_UTIL_ERROR_NONE Successful
66 * @retval #EFL_UTIL_ERROR_INVALID_PARAMETER Invalid parameter
67 * @see efl_util_screenshot_set_auto_rotation()
69 API int efl_util_screenshot_get_auto_rotation(efl_util_screenshot_h screenshot, int *set);
78 #endif /* __TIZEN_UI_EFL_UTIL_SCREENSHOT_EXTENSION_H__ */