2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.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://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 __IVUG_ANIM_H__
18 #define __IVUG_ANIM_H__
24 ANIM_TYPE_QUARTIC_INOUT,
25 ANIM_TYPE_QUINTIC_INOUT,
30 t: current time b: start time c: change in value d: duration
32 typedef double (*anim_transit_func_t) (double t, double b, double c, double d);
40 anim_transit_func_t transit_func;
49 anim_handle_t *create_animation();
51 void delete_animation(anim_handle_t *anim);
53 bool update_animation(anim_handle_t *anim, double current, double *value);
55 bool set_animation_type(anim_handle_t *anim, anim_type_t type);
57 bool set_animation(anim_handle_t *anim, int start, int end, double duration);