/lvgl-2.7.6/src/lv_draw/ |
D | lv_img_decoder.c | 553 uint32_t pos = ((y * dsc->header.w + x) * px_size) >> 3; in lv_img_decoder_built_in_line_true_color() local 554 pos += 4; /*Skip the header*/ in lv_img_decoder_built_in_line_true_color() 555 res = lv_fs_seek(user_data->f, pos); in lv_img_decoder_built_in_line_true_color() 614 int8_t pos = 0; in lv_img_decoder_built_in_line_alpha() local 620 pos = 7 - (x & 0x7); in lv_img_decoder_built_in_line_alpha() 627 pos = 6 - ((x & 0x3) * 2); in lv_img_decoder_built_in_line_alpha() 634 pos = 4 - ((x & 0x1) * 4); in lv_img_decoder_built_in_line_alpha() 640 pos = 0; in lv_img_decoder_built_in_line_alpha() 668 uint8_t val_act = (*data_tmp & (mask << pos)) >> pos; in lv_img_decoder_built_in_line_alpha() 673 pos -= px_size; in lv_img_decoder_built_in_line_alpha() [all …]
|
D | lv_draw_label.c | 149 lv_point_t pos; in lv_draw_label() local 150 pos.x = coords->x1; in lv_draw_label() 151 pos.y = coords->y1; in lv_draw_label() 157 pos.y += y_ofs; in lv_draw_label() 174 pos.y += hint->y; in lv_draw_label() 180 while(pos.y + line_height_font < mask->y1) { in lv_draw_label() 184 pos.y += line_height; in lv_draw_label() 187 if(hint && pos.y >= -LV_LABEL_HINT_UPDATE_TH && hint->line_start < 0) { in lv_draw_label() 189 hint->y = pos.y - coords->y1; in lv_draw_label() 200 pos.x += (lv_area_get_width(coords) - line_width) / 2; in lv_draw_label() [all …]
|
/lvgl-2.7.6/src/lv_widgets/ |
D | lv_label.h | 236 void lv_label_get_letter_pos(const lv_obj_t * label, uint32_t index, lv_point_t * pos); 245 uint32_t lv_label_get_letter_on(const lv_obj_t * label, lv_point_t * pos); 253 bool lv_label_is_char_under_pos(const lv_obj_t * label, lv_point_t * pos); 283 void lv_label_ins_text(lv_obj_t * label, uint32_t pos, const char * txt); 292 void lv_label_cut_text(lv_obj_t * label, uint32_t pos, uint32_t cnt);
|
D | lv_textarea.c | 118 ext->cursor.pos = 0; in lv_textarea_create() 166 ext->cursor.pos = copy_ext->cursor.pos; in lv_textarea_create() 275 lv_label_ins_text(ext->label, ext->cursor.pos, letter_buf); /*Insert the character*/ in lv_textarea_add_char() 284 _lv_txt_ins(ext->pwd_tmp, ext->cursor.pos, (const char *)letter_buf); in lv_textarea_add_char() 359 lv_label_ins_text(ext->label, ext->cursor.pos, txt); in lv_textarea_add_text() 367 _lv_txt_ins(ext->pwd_tmp, ext->cursor.pos, txt); in lv_textarea_add_text() 412 uint32_t cur_pos = ext->cursor.pos; in lv_textarea_del_char() 424 _lv_txt_cut(label_txt, ext->cursor.pos - 1, 1); in lv_textarea_del_char() 443 uint32_t byte_pos = _lv_txt_encoded_get_byte_id(ext->pwd_tmp, ext->cursor.pos - 1); in lv_textarea_del_char() 444 … _lv_txt_cut(ext->pwd_tmp, ext->cursor.pos - 1, _lv_txt_encoded_size(&ext->pwd_tmp[byte_pos])); in lv_textarea_del_char() [all …]
|
D | lv_label.c | 569 void lv_label_get_letter_pos(const lv_obj_t * label, uint32_t char_id, lv_point_t * pos) in lv_label_get_letter_pos() argument 572 LV_ASSERT_NULL(pos); in lv_label_get_letter_pos() 578 pos->y = 0; in lv_label_get_letter_pos() 581 pos->x = 0; in lv_label_get_letter_pos() 584 pos->x = lv_obj_get_width(label); in lv_label_get_letter_pos() 587 pos->x = lv_obj_get_width(label) / 2; in lv_label_get_letter_pos() 676 pos->x = x; in lv_label_get_letter_pos() 677 pos->y = y; in lv_label_get_letter_pos() 696 lv_point_t pos; in lv_label_get_letter_on() local 697 pos.x = pos_in->x - lv_obj_get_style_pad_left(label, LV_LABEL_PART_MAIN); in lv_label_get_letter_on() [all …]
|
D | lv_spinbox.c | 440 if(txt[ext->ta.cursor.pos] == '.') { in lv_spinbox_signal() 443 else if(ext->ta.cursor.pos == (uint32_t)txt_len) { in lv_spinbox_signal() 446 else if(ext->ta.cursor.pos == 0 && ext->range_min < 0) { in lv_spinbox_signal() 451 uint16_t cp = ext->ta.cursor.pos; in lv_spinbox_signal() 453 if(ext->ta.cursor.pos > ext->dec_point_pos && ext->dec_point_pos != 0) cp--; in lv_spinbox_signal() 454 uint32_t pos = len - cp; in lv_spinbox_signal() local 456 if(ext->range_min < 0) pos++; in lv_spinbox_signal() 460 for(i = 0; i < pos; i++) ext->step *= 10; in lv_spinbox_signal()
|
D | lv_cpicker.c | 653 knob_area.x1 = cpicker->coords.x1 + ext->knob.pos.x - r - left; in get_knob_area() 654 knob_area.y1 = cpicker->coords.y1 + ext->knob.pos.y - r - right; in get_knob_area() 655 knob_area.x2 = cpicker->coords.x1 + ext->knob.pos.x + r + top; in get_knob_area() 656 knob_area.y2 = cpicker->coords.y1 + ext->knob.pos.y + r + bottom; in get_knob_area() 952 ext->knob.pos.x = ind_pos; in refr_knob_pos() 953 ext->knob.pos.y = h / 2; in refr_knob_pos() 959 ext->knob.pos.x = (((int32_t)r * _lv_trigo_sin(angle)) >> LV_TRIGO_SHIFT); in refr_knob_pos() 960 ext->knob.pos.y = (((int32_t)r * _lv_trigo_sin(angle + 90)) >> LV_TRIGO_SHIFT); in refr_knob_pos() 961 ext->knob.pos.x = ext->knob.pos.x + w / 2; in refr_knob_pos() 962 ext->knob.pos.y = ext->knob.pos.y + h / 2; in refr_knob_pos()
|
D | lv_textarea.h | 59 uint32_t pos; /* The current cursor position member 159 void lv_textarea_set_cursor_pos(lv_obj_t * ta, int32_t pos);
|
D | lv_cpicker.h | 50 lv_point_t pos; member
|
D | lv_dropdown.h | 128 void lv_dropdown_add_option(lv_obj_t * ddlist, const char * option, uint32_t pos);
|
D | lv_dropdown.c | 274 void lv_dropdown_add_option(lv_obj_t * ddlist, const char * option, uint32_t pos) in lv_dropdown_add_option() argument 306 if(pos != LV_DROPDOWN_POS_LAST) { in lv_dropdown_add_option() 309 if(opcnt == pos) in lv_dropdown_add_option() 317 if((insert_pos > 0) && (pos >= ext->option_cnt)) in lv_dropdown_add_option() 325 if(pos < ext->option_cnt) in lv_dropdown_add_option()
|
/lvgl-2.7.6/src/lv_misc/ |
D | lv_txt.c | 435 void _lv_txt_ins(char * txt_buf, uint32_t pos, const char * ins_txt) in _lv_txt_ins() argument 442 …pos = _lv_txt_encoded_get_byte_id(txt_buf, pos); /*Convert to byte index instead of l… in _lv_txt_ins() 446 for(i = new_len; i >= pos + ins_len; i--) { in _lv_txt_ins() 451 _lv_memcpy_small(txt_buf + pos, ins_txt, ins_len); in _lv_txt_ins() 461 void _lv_txt_cut(char * txt, uint32_t pos, uint32_t len) in _lv_txt_cut() argument 466 pos = _lv_txt_encoded_get_byte_id(txt, pos); /*Convert to byte index instead of letter index*/ in _lv_txt_cut() 467 len = _lv_txt_encoded_get_byte_id(&txt[pos], len); in _lv_txt_cut() 471 for(i = pos; i <= old_len - len; i++) { in _lv_txt_cut()
|
D | lv_fs.c | 237 lv_fs_res_t lv_fs_seek(lv_fs_file_t * file_p, uint32_t pos) in lv_fs_seek() argument 247 lv_fs_res_t res = file_p->drv->seek_cb(file_p->drv, file_p->file_d, pos); in lv_fs_seek() 258 lv_fs_res_t lv_fs_tell(lv_fs_file_t * file_p, uint32_t * pos) in lv_fs_tell() argument 261 pos = 0; in lv_fs_tell() 266 pos = 0; in lv_fs_tell() 270 lv_fs_res_t res = file_p->drv->tell_cb(file_p->drv, file_p->file_d, pos); in lv_fs_tell()
|
D | lv_fs.h | 74 lv_fs_res_t (*seek_cb)(struct _lv_fs_drv_t * drv, void * file_p, uint32_t pos); 188 lv_fs_res_t lv_fs_seek(lv_fs_file_t * file_p, uint32_t pos); 196 lv_fs_res_t lv_fs_tell(lv_fs_file_t * file_p, uint32_t * pos);
|
D | lv_txt.h | 119 void _lv_txt_ins(char * txt_buf, uint32_t pos, const char * ins_txt); 128 void _lv_txt_cut(char * txt, uint32_t pos, uint32_t len);
|
/lvgl-2.7.6/tests/ |
D | lv_test_main.c | 60 static lv_fs_res_t seek_cb(struct _lv_fs_drv_t * drv, void * file_p, uint32_t pos) in seek_cb() argument 65 fseek (fp, pos, SEEK_SET); in seek_cb()
|
/lvgl-2.7.6/examples/porting/ |
D | lv_port_fs_template.c | 49 static lv_fs_res_t fs_seek (lv_fs_drv_t * drv, void * file_p, uint32_t pos); 222 static lv_fs_res_t fs_seek (lv_fs_drv_t * drv, void * file_p, uint32_t pos)
|
/lvgl-2.7.6/docs/ |
D | CODING_STYLE.md | 21 …* Use only very straightforward and well-known abbreviations (e.g. pos: position, def: default, bt…
|