Lines Matching refs:ext

75     lv_spinner_ext_t * ext = lv_obj_allocate_ext_attr(spinner, sizeof(lv_spinner_ext_t));  in lv_spinner_create()  local
76 LV_ASSERT_MEM(ext); in lv_spinner_create()
77 if(ext == NULL) { in lv_spinner_create()
86 ext->arc_length = LV_SPINNER_DEF_ARC_LENGTH; in lv_spinner_create()
87 ext->anim_type = LV_SPINNER_DEF_ANIM; in lv_spinner_create()
88 ext->anim_dir = LV_SPINNER_DIR_FORWARD; in lv_spinner_create()
89 ext->time = LV_SPINNER_DEF_SPIN_TIME; in lv_spinner_create()
96 ext->arc.bg_angle_start = 0; in lv_spinner_create()
97 ext->arc.bg_angle_end = 360; in lv_spinner_create()
105 ext->arc_length = copy_ext->arc_length; in lv_spinner_create()
106 ext->time = copy_ext->time; in lv_spinner_create()
107 ext->anim_dir = copy_ext->anim_dir; in lv_spinner_create()
112 lv_spinner_set_type(spinner, ext->anim_type); in lv_spinner_create()
132 lv_spinner_ext_t * ext = lv_obj_get_ext_attr(spinner); in lv_spinner_set_arc_length() local
134 ext->arc_length = deg; in lv_spinner_set_arc_length()
146 lv_spinner_ext_t * ext = lv_obj_get_ext_attr(spinner); in lv_spinner_set_spin_time() local
148 ext->time = time; in lv_spinner_set_spin_time()
149 lv_spinner_set_type(spinner, ext->anim_type); in lv_spinner_set_spin_time()
164 lv_spinner_ext_t * ext = lv_obj_get_ext_attr(spinner); in lv_spinner_set_type() local
170 ext->anim_type = LV_SPINNER_TYPE_FILLSPIN_ARC; in lv_spinner_set_type()
181 lv_anim_set_time(&a, ext->time); in lv_spinner_set_type()
182 if(ext->anim_dir == LV_SPINNER_DIR_FORWARD) lv_anim_set_values(&a, 0, 360); in lv_spinner_set_type()
187 …if(ext->anim_dir == LV_SPINNER_DIR_FORWARD) lv_anim_set_values(&a, ext->arc_length, 360 - ext->arc… in lv_spinner_set_type()
188 else lv_anim_set_values(&a, 360 - ext->arc_length, ext->arc_length); in lv_spinner_set_type()
190 lv_anim_set_playback_time(&a, ext->time); in lv_spinner_set_type()
197 ext->anim_type = type; in lv_spinner_set_type()
207 lv_anim_set_time(&a, ext->time); in lv_spinner_set_type()
210 if(ext->anim_dir == LV_SPINNER_DIR_FORWARD) lv_anim_set_values(&a, 0, 360); in lv_spinner_set_type()
222 lv_spinner_ext_t * ext = lv_obj_get_ext_attr(spinner); in lv_spinner_set_dir() local
224 ext->anim_dir = dir; in lv_spinner_set_dir()
225 lv_spinner_set_type(spinner, ext->anim_type); in lv_spinner_set_dir()
240 lv_spinner_ext_t * ext = lv_obj_get_ext_attr(spinner); in lv_spinner_get_arc_length() local
241 return ext->arc_length; in lv_spinner_get_arc_length()
252 lv_spinner_ext_t * ext = lv_obj_get_ext_attr(spinner); in lv_spinner_get_spin_time() local
253 return ext->time; in lv_spinner_get_spin_time()
265 lv_spinner_ext_t * ext = lv_obj_get_ext_attr(spinner); in lv_spinner_get_type() local
266 return ext->anim_type; in lv_spinner_get_type()
271 lv_spinner_ext_t * ext = lv_obj_get_ext_attr(spinner); in lv_spinner_get_dir() local
272 return ext->anim_dir; in lv_spinner_get_dir()
287 lv_spinner_ext_t * ext = lv_obj_get_ext_attr(spinner); in lv_spinner_anim_cb() local
289 int16_t angle_start = val - ext->arc_length / 2 - 90; in lv_spinner_anim_cb()
291 int16_t angle_end = angle_start + ext->arc_length; in lv_spinner_anim_cb()