/lvgl-latest/src/draw/sdl/ |
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 *in_cache = lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), texture); in lv_draw_sdl_rect_bg_frag_obtain() 202 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 203 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in lv_draw_sdl_rect_grad_frag_obtain() 246 *in_cache = lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), texture); in lv_draw_sdl_rect_grad_frag_obtain() 256 lv_draw_rect_grad_strip_key_t key = rect_grad_strip_key_create(grad); in lv_draw_sdl_rect_grad_strip_obtain() local 257 SDL_Texture * texture = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in lv_draw_sdl_rect_grad_strip_obtain() 274 *in_cache = lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), texture); in lv_draw_sdl_rect_grad_strip_obtain() 555 …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_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 bool 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 return lv_draw_sdl_texture_cache_put_advanced(ctx, key, key_length, texture, NULL, NULL, 0); in lv_draw_sdl_texture_cache_put() 89 bool 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 return lv_lru_set(lru, key, key_length, value, 1) == LV_LRU_OK; in lv_draw_sdl_texture_cache_put_advanced() 105 return lv_lru_set(lru, key, key_length, value, 1) == LV_LRU_OK; in lv_draw_sdl_texture_cache_put_advanced() [all …]
|
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() 111 lv_draw_sdl_img_load_texture(ctx, key, key_size, src, draw_dsc->frame_id, &texture, &header, in lv_draw_sdl_img_core() 117 SDL_free(key); in lv_draw_sdl_img_core() 199 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 230 …*texture_in_cache = lv_draw_sdl_texture_cache_put_advanced(ctx, key, key_size, *texture, *header, … in lv_draw_sdl_img_load_texture() 235 *texture_in_cache = lv_draw_sdl_texture_cache_put(ctx, key, key_size, NULL); in lv_draw_sdl_img_load_texture() 403 lv_draw_img_rounded_key_t key = rounded_key_create(texture, w, h, radius); in img_rounded_frag_obtain() local 406 SDL_Texture * img_frag = lv_draw_sdl_texture_cache_get(ctx, &key, sizeof(key), NULL); in img_rounded_frag_obtain() 472 *in_cache = lv_draw_sdl_texture_cache_put(ctx, &key, sizeof(key), img_frag); in img_rounded_frag_obtain() [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 *in_cache = 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_label.c | 179 lv_font_glyph_key_t key; in font_key_glyph_create() local 181 SDL_memset(&key, 0, sizeof(key)); in font_key_glyph_create() 182 key.magic = LV_GPU_CACHE_KEY_MAGIC_FONT_GLYPH; in font_key_glyph_create() 183 key.font_p = font_p; in font_key_glyph_create() 184 key.letter = letter; in font_key_glyph_create() 185 return key; in font_key_glyph_create()
|
D | lv_draw_sdl_composite.c | 229 composite_key_t key; in mask_key_create() local 231 SDL_memset(&key, 0, sizeof(key)); in mask_key_create() 232 key.magic = LV_GPU_CACHE_KEY_MAGIC_MASK; in mask_key_create() 233 key.type = type; in mask_key_create() 234 return key; in mask_key_create()
|
D | lv_draw_sdl_texture_cache.h | 78 * Find cached texture by key. The texture can be destroyed during usage. 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… 88 bool lv_draw_sdl_texture_cache_put(lv_draw_sdl_ctx_t * ctx, const void * key, size_t key_length, SD… 93 bool 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.h | 62 * @param key Texture cache key 63 * @param key_size Size of texture cache key 72 bool lv_draw_sdl_img_load_texture(lv_draw_sdl_ctx_t * ctx, lv_draw_sdl_cache_key_head_img_t * key, …
|
/lvgl-latest/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); 45 /** compare a key against an existing item's key */ 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) 115 cache->key_free(item->key); in lv_lru_del() 137 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 144 // see if the key already exists in lv_lru_set() 145 uint32_t hash_index = lv_lru_hash(cache, key, key_length); in lv_lru_set() 150 while(item && lv_lru_cmp_keys(item, key, key_length)) { in lv_lru_set() [all …]
|
D | lv_utils.c | 37 /** Searches base[0] to base[n - 1] for an item that matches *key. 40 * argument (the search key) is less than its second (a table entry), 45 * @param key Pointer to item being searched for 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 | 30 /** Searches base[0] to base[n - 1] for an item that matches *key. 33 * argument (the search key) is less that it's second (a table entry), 38 * @param key Pointer to item being searched for 47 void * _lv_utils_bsearch(const void * key, const void * base, uint32_t n, uint32_t size,
|
D | lv_lru.h | 66 lv_lru_res_t lv_lru_set(lv_lru_t * cache, const void * key, size_t key_length, void * value, size_t… 68 lv_lru_res_t lv_lru_get(lv_lru_t * cache, const void * key, size_t key_size, void ** value); 70 lv_lru_res_t lv_lru_remove(lv_lru_t * cache, const void * key, size_t key_size);
|
/lvgl-latest/src/core/ |
D | lv_indev.c | 414 /*Save the last key to compare it with the current latter on RELEASE*/ in indev_keypad_proc() 417 /*Save the last key. in indev_keypad_proc() 418 *It must be done here else `lv_indev_get_key` will return the last key in events*/ in indev_keypad_proc() 419 i->proc.types.keypad.last_key = data->key; in indev_keypad_proc() 427 /*Key press happened*/ in indev_keypad_proc() 429 LV_LOG_INFO("%" LV_PRIu32 " key is pressed", data->key); in indev_keypad_proc() 433 if(data->key == LV_KEY_NEXT) { in indev_keypad_proc() 439 else if(data->key == LV_KEY_PREV) { in indev_keypad_proc() 446 if(data->key == LV_KEY_ENTER) { in indev_keypad_proc() 447 /*Send the ENTER as a normal KEY*/ in indev_keypad_proc() [all …]
|
D | lv_event.h | 48 …LV_EVENT_KEY, /**< A key is sent to the object. Get the key with `lv_indev_get_key… 303 * Get the key passed as parameter to an event. Can be used in `LV_EVENT_KEY` 305 * @return the triggering key or NULL if called on an unrelated event
|
/lvgl-latest/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() 317 * +1 if key size must be incremented after this addition 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 [all …]
|
/lvgl-latest/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-latest/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() 3607 any palette index but doesn't have an alpha channel. Idem with ignoring color key. */ 3663 stats->key = 0; in lodepng_color_stats_init() [all …]
|
D | lodepng.h | 364 transparent color key (tRNS) 370 pixels with this key to transparent already in the raw RGBA output. 372 The color key is only supported for color types 0 and 2. 374 unsigned key_defined; /*is a transparent color key given? 0 = false, 1 = true*/ 375 unsigned key_r; /*red/grayscale component of color key*/ 376 unsigned key_g; /*green component of color key*/ 377 unsigned key_b; /*blue component of color key*/ 611 unsigned lodepng_add_text(LodePNGInfo* info, const char* key, const char* str); /*push back both te… 614 unsigned lodepng_add_itext(LodePNGInfo* info, const char* key, const char* langtag, 707 unsigned key; /*image is not opaque and color key is possible instead of full alpha*/ member [all …]
|
/lvgl-latest/src/extra/others/ime/ |
D | lv_ime_pinyin.h | 39 /*Data of 9-key input(k9) mode*/ 54 char k9_input_str[LV_IME_PINYIN_K9_MAX_INPUT]; /* 9-key input(k9) mode input string */ 57 uint16_t k9_input_str_len; /* 9-key input(k9) mode input string max len */ 64 … uint8_t mode : 1; /* Set mode, 1: 26-key input(k26), 0: 9-key input(k9). Default: 1. */ 95 * Set mode, 26-key input(k26) or 9-key input(k9).
|
/lvgl-latest/examples/porting/ |
D | lv_port_indev_template.c | 76 * - Keypad (supports GUI usage only with key) 285 /*Get whether the a key is pressed and save the pressed key*/ 290 /*Translate the keys to LVGL control characters according to your key definitions*/ 315 data->key = last_key; 318 /*Get the currently being pressed key. 0 if no key is pressed*/
|
/lvgl-latest/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…
|
/lvgl-latest/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-latest/src/draw/sw/ |
D | lv_draw_sw_gradient.c | 153 if(c->key == *k) return LV_RES_OK; in find_item() 198 item->key = compute_key(g, size, w); in allocate_item() 261 /* Step 1: Search cache for the given key */ in lv_gradient_get() 263 uint32_t key = compute_key(g, size, w); in lv_gradient_get() local 265 if(iterate_cache(&find_item, &key, &item) == LV_RES_OK) { in lv_gradient_get()
|
/lvgl-latest/docs/porting/ |
D | indev.md | 69 data->key = last_key(); /*Get the last pressed or released key*/ 126 data->key = last_key(); /*Get the last pressed or released key*/
|
/lvgl-latest/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()
|