2 * Copyright 2012 Samsung Electronics Co., Ltd
\r
4 * Licensed under the Flora License, Version 1.1 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://floralicense.org/license/
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
18 #ifndef __H_CAM_UI_ROTATE_UTILS_H__
\r
19 #define __H_CAM_UI_ROTATE_UTILS_H__
\r
23 struct cam_ui_rotate_obj_params
\r
25 Evas_Coord x, y;/*start_x, start_y*/
\r
32 * @brief set @obj rotate @degree, the @obj left_top coordinate (start_x, start_y)
\r
33 * @param[in] obj The object to be set
\r
34 * @param[in] start_x left_top coordinate x,
\r
35 * @param[in] start_y left_top coordinate y,
\r
36 * @param[in] degree the rotate angle
\r
37 * @return Operation result
\r
40 void cam_ui_rotate_utils_map_rotate(Evas_Object *obj,
\r
45 * @brief set @obj rotate from@from_degree to @to_degree, the time is @duration
\r
46 * @param[in] obj The object to be set
\r
47 * @param[in] from_degree start angle
\r
48 * @param[in] to_degree end angle
\r
49 * @param[in] duration effect duration time
\r
50 * @param[in] cb callback function, it will be called in the rotation end
\r
51 * @param[in] data @cb user data.
\r
52 * @return Operation result
\r
55 void cam_ui_rotate_utils_rotation_effect(Evas_Object *obj,
\r
59 void (*cb) (void *data, Elm_Transit *transit),
\r
62 * @brief set @setting popup rotate, @degree, the @obj left_top coordinate (start_x, start_y)
\r
63 * @param[in] obj The object to be set
\r
64 * @param[in] start_x left_top coordinate x,
\r
65 * @param[in] start_y left_top coordinate y,
\r
66 * @param[in] degree the rotate angle
\r
67 * @return Operation result
\r
70 void cam_ui_rotate_utils_map_setting_popup_rotate(Evas_Object *obj,
\r
75 * @brief @data appdata, rotate the camera ui icons
\r
76 * @param[in] data appdata
\r
77 * @param[in] duration effect duration time
\r
78 * @return Operation result
\r
81 gboolean cam_ui_rotate_utils_rotate_start(void *data, double duration);
\r
83 * @brief set @obj, self rotate @degree, using evas_map.
\r
84 * @param[in] obj The object to be set
\r
85 * @param[in] degree the rotate angle
\r
86 * @return Operation result
\r
89 void cam_ui_rotate_utils_map_self_rotate(Evas_Object *obj,
\r
92 * @brief @data appdata, rotate the camera ui:toolbar shortcust icons
\r
93 * @param[in] data appdata
\r
94 * @param[in] duration effect duration time
\r
95 * @return Operation result
\r
98 gboolean cam_ui_rotate_utils_rotate_toolbar_shortcuts(void *data, double duration);
\r
100 #endif /* __H_CAM_UI_ROTATE_UTILS_H__ */
\r