Searched refs:line_cnt (Results 1 – 6 of 6) sorted by relevance
/AliOS-Things-master/components/littlevgl/src/lv_objx/ |
A D | lv_lmeter.c | 74 ext->line_cnt = 21; /*Odd scale number looks better*/ in lv_lmeter_create() 97 ext->line_cnt = copy_ext->line_cnt; in lv_lmeter_create() 160 void lv_lmeter_set_scale(lv_obj_t * lmeter, uint16_t angle, uint8_t line_cnt) in lv_lmeter_set_scale() argument 163 if(ext->scale_angle == angle && ext->line_cnt == line_cnt) return; in lv_lmeter_set_scale() 166 ext->line_cnt = line_cnt; in lv_lmeter_set_scale() 216 return ext->line_cnt; in lv_lmeter_get_line_count() 273 …(int32_t)((int32_t)(ext->cur_value - ext->min_value) * ext->line_cnt) / (ext->max_value - ext->min… in lv_lmeter_design() 282 for(i = 0; i < ext->line_cnt; i++) { in lv_lmeter_design() 284 int16_t angle = (i * ext->scale_angle) / (ext->line_cnt - 1) + angle_ofs; in lv_lmeter_design() 310 … lv_color_mix(style->body.grad_color, style->body.main_color, (255 * i) / ext->line_cnt); in lv_lmeter_design()
|
A D | lv_lmeter.h | 39 uint8_t line_cnt; /*Count of lines */ member 89 void lv_lmeter_set_scale(lv_obj_t * lmeter, uint16_t angle, uint8_t line_cnt);
|
A D | lv_gauge.c | 194 void lv_gauge_set_scale(lv_obj_t * gauge, uint16_t angle, uint8_t line_cnt, uint8_t label_cnt) in lv_gauge_set_scale() argument 196 lv_lmeter_set_scale(gauge, angle, line_cnt); in lv_gauge_set_scale() 279 uint16_t line_cnt_tmp = ext->lmeter.line_cnt; in lv_gauge_design() 285 ext->lmeter.line_cnt = ext->label_count; /*Only to labels*/ in lv_gauge_design() 292 ext->lmeter.line_cnt = line_cnt_tmp; /*Restore the parameters*/ in lv_gauge_design()
|
A D | lv_gauge.h | 121 void lv_gauge_set_scale(lv_obj_t * gauge, uint16_t angle, uint8_t line_cnt, uint8_t label_cnt);
|
A D | lv_ddlist.c | 776 uint32_t line_cnt = 0; in release_handler() local 778 for(line_cnt = 0; line_cnt < letter_i; line_cnt++) { in release_handler()
|
A D | lv_btnm.c | 173 uint8_t line_cnt = 1; in lv_btnm_set_map() local 176 if(strcmp(map[li], "\n") == 0) line_cnt++; in lv_btnm_set_map() 179 lv_coord_t btn_h = max_h - ((line_cnt - 1) * style_bg->body.padding.inner); in lv_btnm_set_map() 180 btn_h = btn_h / line_cnt; in lv_btnm_set_map()
|
Completed in 10 milliseconds