Home
last modified time | relevance | path

Searched refs:digit_count (Results 1 – 3 of 3) sorted by relevance

/lvgl-3.7.0/src/extra/widgets/spinbox/
Dlv_spinbox.c100 void lv_spinbox_set_digit_format(lv_obj_t * obj, uint8_t digit_count, uint8_t separator_position) in lv_spinbox_set_digit_format() argument
105 if(digit_count > LV_SPINBOX_MAX_DIGIT_COUNT) digit_count = LV_SPINBOX_MAX_DIGIT_COUNT; in lv_spinbox_set_digit_format()
107 if(separator_position >= digit_count) separator_position = 0; in lv_spinbox_set_digit_format()
109 if(digit_count < LV_SPINBOX_MAX_DIGIT_COUNT) { in lv_spinbox_set_digit_format()
110 int64_t max_val = lv_pow(10, digit_count); in lv_spinbox_set_digit_format()
115 spinbox->digit_count = digit_count; in lv_spinbox_set_digit_format()
330 spinbox->digit_count = 5; in lv_spinbox_constructor()
362 if(spinbox->digit_count > 1) { in lv_spinbox_event()
369 spinbox->step = lv_pow(10, spinbox->digit_count - 2); in lv_spinbox_event()
374 if(spinbox->step < lv_pow(10, spinbox->digit_count - 1)) { in lv_spinbox_event()
[all …]
Dlv_spinbox.h42 uint16_t digit_count : 4; member
86 void lv_spinbox_set_digit_format(lv_obj_t * obj, uint8_t digit_count, uint8_t separator_position);
/lvgl-3.7.0/docs/widgets/extra/
Dspinbox.md25 `lv_spinbox_set_digit_format(spinbox, digit_count, separator_position)` sets the number format. `di…