anim: template anim_t initilizaton added in anim.h

This commit is contained in:
Gabor
2017-02-06 08:53:44 +01:00
parent 253fbe0ee5
commit bff43f09a0

View File

@@ -48,6 +48,21 @@ typedef struct
uint8_t playback_now :1; /*Play back is in progress*/
}anim_t;
/*Example initialization
anim_t a;
a.var = obj;
a.start = lv_obj_get_height(obj);
a.end = new_height;
a.fp = (anim_fp_t)lv_obj_set_height;
a.path = anim_get_path(ANIM_PATH_LIN);
a.end_cb = NULL;
a.act_time = 0;
a.time = 200;
a.playback = 0;
a.playback_pause = 0;
a.repeat = 0;
a.repeat_pause = 0;
*/
/**********************
* GLOBAL PROTOTYPES
**********************/