2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.1 (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://floralicense.org/license/
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 LIVEBOX_ANIMATOR_H_
18 #define LIVEBOX_ANIMATOR_H_
22 typedef void (*Anim_Grid_End)(struct _Anim_Data **ad);
24 typedef struct _Anim_Data {
30 Eina_Rectangle *geometry_start;
31 Eina_Rectangle *geometry_end;
33 Ecore_Animator *animator;
38 * @brief Delete an animator
39 * @param ad Animator to delete
41 extern void livebox_animator_del_grid(Anim_Data_t **ad);
44 * @brief creates a grid animator and starts it
45 * @details Animator will be performed on grid item. It works by packing
46 * an item to grid's virtual resolution.
47 * Notice that the animated item has to be packed to a grid before the
49 * @param obj object to animate
50 * @param anim_time animation time
51 * @param map animator mapping method
52 * @param map_var_1 value used by map
53 * @param map_var_2 value used by map
54 * @param geometry_start animator start position
55 * @param geometry_end animator end position
56 * @param on_end callback called on end of animation
57 * @param ad_out created animator object
59 extern void livebox_animator_play_grid_pack_set(Evas_Object *obj,
61 Ecore_Pos_Map map, float map_var_1, float map_var_2,
62 Eina_Rectangle *geometry_start, Eina_Rectangle *geometry_end,
64 Anim_Data_t **ad_out);
67 * @brief creates a geometry animator and starts it
68 * @details object position and size will be animated
69 * @param obj object ot animate
70 * @param anim_time animation time
71 * @param map animator mapping method
72 * @param map_var_1 value used by map
73 * @param map_var_2 value used by map
74 * @param geometry_start animator start position
75 * @param geometry_end animator end position
76 * @param on_end callback called on end of animation
77 * @param ad_out created animator object
79 extern void livebox_animator_play_geometry_set(Evas_Object *obj,
81 Ecore_Pos_Map map, float map_var_1, float map_var_2,
82 Eina_Rectangle *geometry_start, Eina_Rectangle *geometry_end,
84 Anim_Data_t **ad_out);
86 #endif /* LIVEBOX_ANIMATOR_H_ */