/lvgl-3.5.0/src/draw/sdl/ |
D | lv_draw_sdl_texture_cache.c | 43 static draw_cache_value_t * draw_cache_get_entry(lv_draw_sdl_ctx_t * ctx, const void * key, size_t … 68 SDL_Texture * lv_draw_sdl_texture_cache_get(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_l… in lv_draw_sdl_texture_cache_get() argument 70 return lv_draw_sdl_texture_cache_get_with_userdata(ctx, key, key_length, found, NULL); in lv_draw_sdl_texture_cache_get() 73 SDL_Texture * lv_draw_sdl_texture_cache_get_with_userdata(lv_draw_sdl_ctx_t * ctx, const void * key… in lv_draw_sdl_texture_cache_get_with_userdata() argument 76 draw_cache_value_t * value = draw_cache_get_entry(ctx, key, key_length, found); in lv_draw_sdl_texture_cache_get_with_userdata() 84 void lv_draw_sdl_texture_cache_put(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_length, SD… in lv_draw_sdl_texture_cache_put() argument 86 lv_draw_sdl_texture_cache_put_advanced(ctx, key, key_length, texture, NULL, NULL, 0); in lv_draw_sdl_texture_cache_put() 89 void lv_draw_sdl_texture_cache_put_advanced(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_l… in lv_draw_sdl_texture_cache_put_advanced() argument 100 lv_lru_set(lru, key, key_length, value, 1); in lv_draw_sdl_texture_cache_put_advanced() 106 lv_lru_set(lru, key, key_length, value, 1); in lv_draw_sdl_texture_cache_put_advanced() [all …]
|
D | lv_draw_sdl_rect.c | 180 lv_draw_rect_bg_key_t key = rect_bg_key_create(radius, radius); in lv_draw_sdl_rect_bg_frag_obtain() local 181 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in lv_draw_sdl_rect_bg_frag_obtain() 191 lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), texture); in lv_draw_sdl_rect_bg_frag_obtain() 199 lv_draw_rect_grad_frag_key_t key = rect_grad_frag_key_create(grad, w, h, radius); in lv_draw_sdl_rect_grad_frag_obtain() local 200 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in lv_draw_sdl_rect_grad_frag_obtain() 243 lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), texture); in lv_draw_sdl_rect_grad_frag_obtain() 250 lv_draw_rect_grad_strip_key_t key = rect_grad_strip_key_create(grad); in lv_draw_sdl_rect_grad_strip_obtain() local 251 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in lv_draw_sdl_rect_grad_strip_obtain() 268 lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), texture); in lv_draw_sdl_rect_grad_strip_obtain() 528 …lv_draw_sdl_cache_key_head_img_t * key = lv_draw_sdl_texture_img_key_create(dsc->bg_img_src, 0, &k… in draw_bg_img() local [all …]
|
D | lv_draw_sdl_line.c | 67 lv_draw_line_key_t key = line_key_create(dsc, (lv_coord_t) length); in lv_draw_sdl_draw_line() local 68 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(sdl_ctx, &key, sizeof(key), NULL); in lv_draw_sdl_draw_line() 71 lv_draw_sdl_texture_cache_put(sdl_ctx, &key, sizeof(key), texture); in lv_draw_sdl_draw_line() 112 lv_draw_line_key_t key; in line_key_create() local 113 lv_memset_00(&key, sizeof(lv_draw_line_key_t)); in line_key_create() 114 key.magic = LV_GPU_CACHE_KEY_MAGIC_LINE; in line_key_create() 115 key.length = length; in line_key_create() 116 key.width = dsc->width; in line_key_create() 117 key.round = (dsc->round_start ? ROUND_START : 0) | (dsc->round_end ? ROUND_END : 0); in line_key_create() 118 return key; in line_key_create()
|
D | lv_draw_sdl_texture_cache.h | 80 SDL_Texture * lv_draw_sdl_texture_cache_get(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_l… 82 SDL_Texture * lv_draw_sdl_texture_cache_get_with_userdata(lv_draw_sdl_ctx_t * ctx, const void * key… 85 void lv_draw_sdl_texture_cache_put(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_length, SD… 87 void lv_draw_sdl_texture_cache_put_advanced(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_l…
|
D | lv_draw_sdl_img.c | 104 …lv_draw_sdl_cache_key_head_img_t * key = lv_draw_sdl_texture_img_key_create(src, draw_dsc->frame_i… in lv_draw_sdl_img_core() local 107 …SDL_Texture * texture = lv_draw_sdl_texture_cache_get_with_userdata(ctx, key, key_size, &texture_f… in lv_draw_sdl_img_core() 110 … lv_draw_sdl_img_load_texture(ctx, key, key_size, src, draw_dsc->frame_id, &texture, &header); in lv_draw_sdl_img_core() 112 SDL_free(key); in lv_draw_sdl_img_core() 186 bool lv_draw_sdl_img_load_texture(lv_draw_sdl_ctx_t * ctx, lv_draw_sdl_cache_key_head_img_t * key, … in lv_draw_sdl_img_load_texture() argument 216 …lv_draw_sdl_texture_cache_put_advanced(ctx, key, key_size, *texture, *header, SDL_free, tex_flags); in lv_draw_sdl_img_load_texture() 219 lv_draw_sdl_texture_cache_put(ctx, key, key_size, NULL); in lv_draw_sdl_img_load_texture() 382 lv_draw_img_rounded_key_t key = rounded_key_create(texture, w, h, radius); in img_rounded_frag_obtain() local 384 SDL_Texture * img_frag = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in img_rounded_frag_obtain() 449 lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), img_frag); in img_rounded_frag_obtain() [all …]
|
D | lv_draw_sdl_label.c | 167 lv_font_glyph_key_t key; in font_key_glyph_create() local 169 SDL_memset(&key, 0, sizeof(key)); in font_key_glyph_create() 170 key.magic = LV_GPU_CACHE_KEY_MAGIC_FONT_GLYPH; in font_key_glyph_create() 171 key.font_p = font_p; in font_key_glyph_create() 172 key.letter = letter; in font_key_glyph_create() 173 return key; in font_key_glyph_create()
|
D | lv_draw_sdl_composite.c | 212 composite_key_t key; in mask_key_create() local 214 SDL_memset(&key, 0, sizeof(key)); in mask_key_create() 215 key.magic = LV_GPU_CACHE_KEY_MAGIC_MASK; in mask_key_create() 216 key.type = type; in mask_key_create() 217 return key; in mask_key_create()
|
D | lv_draw_sdl_img.h | 59 bool lv_draw_sdl_img_load_texture(lv_draw_sdl_ctx_t * ctx, lv_draw_sdl_cache_key_head_img_t * key, …
|
/lvgl-3.5.0/src/misc/ |
D | lv_lru.c | 27 void * key; member 43 static uint32_t lv_lru_hash(lv_lru_t * cache, const void * key, uint32_t key_length); 46 static int lv_lru_cmp_keys(lv_lru_item_t * item, const void * key, uint32_t key_length); 65 #define test_for_missing_key() error_for(!key, LV_LRU_MISSING_KEY) 116 cache->key_free(item->key); in lv_lru_del() 139 lv_lru_res_t lv_lru_set(lv_lru_t * cache, const void * key, size_t key_length, void * value, size_t… in lv_lru_set() argument 147 uint32_t hash_index = lv_lru_hash(cache, key, key_length); in lv_lru_set() 152 while(item && lv_lru_cmp_keys(item, key, key_length)) { in lv_lru_set() 169 item->key = lv_mem_alloc(key_length); in lv_lru_set() 170 memcpy(item->key, key, key_length); in lv_lru_set() [all …]
|
D | lv_lru.h | 68 lv_lru_res_t lv_lru_set(lv_lru_t * cache, const void * key, size_t key_length, void * value, size_t… 70 lv_lru_res_t lv_lru_get(lv_lru_t * cache, const void * key, size_t key_size, void ** value); 72 lv_lru_res_t lv_lru_remove(lv_lru_t * cache, const void * key, size_t key_size);
|
D | lv_utils.c | 54 void * _lv_utils_bsearch(const void * key, const void * base, uint32_t n, uint32_t size, in _lv_utils_bsearch() argument 62 if((c = (*cmp)(key, middle)) > 0) { in _lv_utils_bsearch()
|
D | lv_utils.h | 47 void * _lv_utils_bsearch(const void * key, const void * base, uint32_t n, uint32_t size,
|
/lvgl-3.5.0/tests/src/test_cases/ |
D | test_slider.c | 48 char key = LV_KEY_RIGHT; in test_slider_event_keys_right_and_up_increment_value_by_one() local 52 lv_event_send(slider, LV_EVENT_KEY, (void *) &key); in test_slider_event_keys_right_and_up_increment_value_by_one() 57 key = LV_KEY_UP; in test_slider_event_keys_right_and_up_increment_value_by_one() 58 lv_event_send(slider, LV_EVENT_KEY, (void *) &key); in test_slider_event_keys_right_and_up_increment_value_by_one() 64 char key = LV_KEY_LEFT; in test_slider_event_keys_left_and_down_decrement_value_by_one() local 68 lv_event_send(slider, LV_EVENT_KEY, (void *) &key); in test_slider_event_keys_left_and_down_decrement_value_by_one() 73 key = LV_KEY_DOWN; in test_slider_event_keys_left_and_down_decrement_value_by_one() 74 lv_event_send(slider, LV_EVENT_KEY, (void *) &key); in test_slider_event_keys_left_and_down_decrement_value_by_one() 80 char key = LV_KEY_ENTER; in test_slider_event_invalid_key_should_not_change_values() local 84 lv_event_send(slider, LV_EVENT_KEY, (void *) &key); in test_slider_event_invalid_key_should_not_change_values()
|
/lvgl-3.5.0/src/extra/libs/gif/ |
D | gifdec.c | 302 int key; in new_table() local 309 for (key = 0; key < (1 << key_size); key++) in new_table() 310 table->entries[key] = (Entry) {1, 0xFFF, key}; in new_table() 343 uint16_t key; in get_key() local 345 key = 0; in get_key() 358 key |= ((uint16_t) ((*byte) >> rpad)) << bits_read; in get_key() 361 key &= (1 << key_size) - 1; in get_key() 363 return key; in get_key() 396 uint16_t key, clear, stop; in read_image_data() local 414 key = get_key(gif, key_size, &sub_len, &shift, &byte); /* clear code */ in read_image_data() [all …]
|
/lvgl-3.5.0/examples/others/ime/ |
D | index.rst | 2 Pinyin IME 26 key input 8 Pinyin IME 9 key input
|
/lvgl-3.5.0/src/core/ |
D | lv_indev.c | 420 i->proc.types.keypad.last_key = data->key; in indev_keypad_proc() 430 LV_LOG_INFO("%" LV_PRIu32 " key is pressed", data->key); in indev_keypad_proc() 434 if(data->key == LV_KEY_NEXT) { in indev_keypad_proc() 440 else if(data->key == LV_KEY_PREV) { in indev_keypad_proc() 447 if(data->key == LV_KEY_ENTER) { in indev_keypad_proc() 455 else if(data->key == LV_KEY_ESC) { in indev_keypad_proc() 465 lv_group_send_data(g, data->key); in indev_keypad_proc() 473 if(data->key == LV_KEY_ENTER) { in indev_keypad_proc() 481 if(data->key == LV_KEY_ENTER) { in indev_keypad_proc() 494 if(data->key == LV_KEY_ENTER) { in indev_keypad_proc() [all …]
|
/lvgl-3.5.0/docs/others/ |
D | ime_pinyin.md | 3 …n input method (Chinese input) for keyboard object, which supports 26 key and 9 key input modes. Y… 123 …key and 9 key input modes. The mode switching is very simple, just call the function `lv_ime_pinyi…
|
D | gridnav.md | 15 This way, if the object with gridnav is focused, the arrow key presses are automatically forwarded … 18 … group use `LV_KEY_NEXT/PREV` or `lv_group_focus_next/prev()` or the `TAB` key on keyboard as usua…
|
/lvgl-3.5.0/src/extra/others/gridnav/ |
D | lv_gridnav.c | 122 uint32_t key = lv_event_get_key(e); in gridnav_event_cb() local 125 if(key == LV_KEY_RIGHT) { in gridnav_event_cb() 145 else if(key == LV_KEY_LEFT) { in gridnav_event_cb() 165 else if(key == LV_KEY_DOWN) { in gridnav_event_cb() 184 else if(key == LV_KEY_UP) { in gridnav_event_cb() 205 lv_event_send(dsc->focused_obj, LV_EVENT_KEY, &key); in gridnav_event_cb()
|
/lvgl-3.5.0/src/hal/ |
D | lv_hal_indev.c | 177 data->key = indev->proc.types.keypad.last_key; in _lv_indev_read() 181 data->key = LV_KEY_ENTER; in _lv_indev_read()
|
/lvgl-3.5.0/src/draw/sw/ |
D | lv_draw_sw_gradient.h | 41 uint32_t key; /**< A discriminating key that's built from the drawing operation. member
|
D | lv_draw_sw_gradient.c | 154 if(c->key == *k) return LV_RES_OK; in find_item() 199 item->key = compute_key(g, size, w); in allocate_item() 265 uint32_t key = compute_key(g, size, w); in lv_gradient_get() local 267 if(iterate_cache(&find_item, &key, &item) == LV_RES_OK) { in lv_gradient_get()
|
/lvgl-3.5.0/src/extra/libs/png/ |
D | lodepng.c | 2908 static unsigned lodepng_add_text_sized(LodePNGInfo* info, const char* key, const char* str, size_t … in lodepng_add_text_sized() argument 2918 info->text_keys[info->text_num - 1] = alloc_string(key); in lodepng_add_text_sized() 2925 unsigned lodepng_add_text(LodePNGInfo* info, const char* key, const char* str) { in lodepng_add_text() argument 2926 return lodepng_add_text_sized(info, key, str, lodepng_strlen(str)); in lodepng_add_text() 2975 static unsigned lodepng_add_itext_sized(LodePNGInfo* info, const char* key, const char* langtag, in lodepng_add_itext_sized() argument 2991 info->itext_keys[info->itext_num - 1] = alloc_string(key); in lodepng_add_itext_sized() 2999 unsigned lodepng_add_itext(LodePNGInfo* info, const char* key, const char* langtag, in lodepng_add_itext() argument 3001 return lodepng_add_itext_sized(info, key, langtag, transkey, str, lodepng_strlen(str)); in lodepng_add_itext() 3663 stats->key = 0; in lodepng_color_stats_init() 3765 if(a != 65535 && (a != 0 || (stats->key && !matchkey))) { in lodepng_compute_color_stats() [all …]
|
/lvgl-3.5.0/src/font/ |
D | lv_font_fmt_txt.c | 233 uint16_t key = rcp; in get_glyph_dsc_id() local 234 … uint16_t * p = _lv_utils_bsearch(&key, fdsc->cmaps[i].unicode_list, fdsc->cmaps[i].list_length, in get_glyph_dsc_id() 243 uint16_t key = rcp; in get_glyph_dsc_id() local 244 … uint16_t * p = _lv_utils_bsearch(&key, fdsc->cmaps[i].unicode_list, fdsc->cmaps[i].list_length, in get_glyph_dsc_id()
|
/lvgl-3.5.0/tests/src/ |
D | lv_test_indev.c | 63 data->key = key_act; in lv_test_keypad_read_cb()
|