Searched refs:bar (Results 1 – 7 of 7) sorted by relevance
/lvgl-2.7.6/src/lv_widgets/ |
D | lv_bar.c | 41 static lv_design_res_t lv_bar_design(lv_obj_t * bar, const lv_area_t * clip_area, lv_design_mode_t … 42 static lv_res_t lv_bar_signal(lv_obj_t * bar, lv_signal_t sign, void * param); 43 static lv_style_list_t * lv_bar_get_style(lv_obj_t * bar, uint8_t part); 45 static void draw_bg(lv_obj_t * bar, const lv_area_t * clip_area); 46 static void draw_indic(lv_obj_t * bar, const lv_area_t * clip_area); 49 static void lv_bar_set_value_with_anim(lv_obj_t * bar, int16_t new_value, int16_t * value_ptr, 51 static void lv_bar_init_anim(lv_obj_t * bar, lv_bar_anim_t * bar_anim); 52 static void lv_bar_anim(lv_bar_anim_t * bar, lv_anim_value_t value); 81 lv_obj_t * bar = lv_obj_create(par, copy); in lv_bar_create() local 82 LV_ASSERT_MEM(bar); in lv_bar_create() [all …]
|
D | lv_bar.h | 55 lv_obj_t * bar; member 111 void lv_bar_set_value(lv_obj_t * bar, int16_t value, lv_anim_enable_t anim); 119 void lv_bar_set_start_value(lv_obj_t * bar, int16_t start_value, lv_anim_enable_t anim); 127 void lv_bar_set_range(lv_obj_t * bar, int16_t min, int16_t max); 134 void lv_bar_set_type(lv_obj_t * bar, lv_bar_type_t type); 141 void lv_bar_set_anim_time(lv_obj_t * bar, uint16_t anim_time); 152 int16_t lv_bar_get_value(const lv_obj_t * bar); 159 int16_t lv_bar_get_start_value(const lv_obj_t * bar); 166 int16_t lv_bar_get_min_value(const lv_obj_t * bar); 173 int16_t lv_bar_get_max_value(const lv_obj_t * bar); [all …]
|
D | lv_slider.c | 180 …if(ext->bar.type == LV_BAR_TYPE_SYMMETRICAL && ext->bar.min_value < 0 && ext->bar.max_value > 0) s… in lv_slider_design() 187 … knob_area.x1 = LV_SLIDER_KNOB_COORD(hor, base_dir == LV_BIDI_DIR_RTL, ext->bar.indic_area); in lv_slider_design() 190 if(ext->bar.cur_value >= 0) { in lv_slider_design() 191 … knob_area.x1 = LV_SLIDER_KNOB_COORD(hor, base_dir == LV_BIDI_DIR_RTL, ext->bar.indic_area); in lv_slider_design() 194 … knob_area.x1 = LV_SLIDER_KNOB_COORD(hor, base_dir != LV_BIDI_DIR_RTL, ext->bar.indic_area); in lv_slider_design() 201 knob_area.y1 = ext->bar.indic_area.y1; in lv_slider_design() 204 if(ext->bar.cur_value >= 0) { in lv_slider_design() 205 knob_area.y1 = ext->bar.indic_area.y1; in lv_slider_design() 208 knob_area.y1 = ext->bar.indic_area.y2; in lv_slider_design() 220 … knob_area.x1 = LV_SLIDER_KNOB_COORD(hor, base_dir != LV_BIDI_DIR_RTL, ext->bar.indic_area); in lv_slider_design() [all …]
|
D | lv_switch.c | 219 lv_coord_t act_indic_w = lv_area_get_width(&ext->bar.indic_area); in lv_switch_design() 221 knob_area.x1 = ext->bar.indic_area.x2 - ((act_indic_w * knob_size) / max_indic_w); in lv_switch_design() 225 knob_area.x2 = ext->bar.indic_area.x1 + ((act_indic_w * knob_size) / max_indic_w); in lv_switch_design() 346 style_dsc_p = &ext->bar.style_indic; in lv_switch_get_style()
|
D | lv_switch.h | 37 lv_bar_ext_t bar; /*Ext. of ancestor*/ member
|
D | lv_slider.h | 45 lv_bar_ext_t bar; /*Ext. of ancestor*/ member
|
/lvgl-2.7.6/src/ |
D | lv_api_map.h | 80 static inline void lv_bar_set_sym(lv_obj_t * bar, bool en) in lv_bar_set_sym() argument 83 lv_bar_set_type(bar, LV_BAR_TYPE_SYMMETRICAL); in lv_bar_set_sym() 85 lv_bar_set_type(bar, LV_BAR_TYPE_NORMAL); in lv_bar_set_sym() 94 static inline bool lv_bar_get_sym(lv_obj_t * bar) in lv_bar_get_sym() argument 96 return lv_bar_get_type(bar) == LV_BAR_TYPE_SYMMETRICAL; in lv_bar_get_sym()
|