Searched refs:hint (Results 1 – 8 of 8) sorted by relevance
/lvgl-latest/src/draw/ |
D | lv_draw_label.c | 250 if(dsc->hint && y_ofs == 0 && coords->y1 < 0) { in lv_draw_label_iterate_characters() 252 if(LV_ABS(dsc->hint->coord_y - coords->y1) > LV_LABEL_HINT_UPDATE_TH - 2 * line_height) { in lv_draw_label_iterate_characters() 253 dsc->hint->line_start = -1; in lv_draw_label_iterate_characters() 255 last_line_start = dsc->hint->line_start; in lv_draw_label_iterate_characters() 259 if(dsc->hint && last_line_start >= 0) { in lv_draw_label_iterate_characters() 261 pos.y += dsc->hint->y; in lv_draw_label_iterate_characters() 277 if(dsc->hint && pos.y >= -LV_LABEL_HINT_UPDATE_TH && dsc->hint->line_start < 0) { in lv_draw_label_iterate_characters() 278 dsc->hint->line_start = line_start; in lv_draw_label_iterate_characters() 279 dsc->hint->y = pos.y - coords->y1; in lv_draw_label_iterate_characters() 280 dsc->hint->coord_y = coords->y1; in lv_draw_label_iterate_characters()
|
D | lv_draw_label.h | 63 lv_draw_label_hint_t * hint; member
|
/lvgl-latest/src/layouts/grid/ |
D | lv_grid.c | 61 static void item_repos(lv_obj_t * item, lv_grid_calc_t * c, item_repos_hint_t * hint); 199 item_repos_hint_t hint; in grid_update() local 200 lv_memzero(&hint, sizeof(hint)); in grid_update() 206 hint.grid_abs.x = pad_left + cont->coords.x1 - lv_obj_get_scroll_x(cont); in grid_update() 207 hint.grid_abs.y = pad_top + cont->coords.y1 - lv_obj_get_scroll_y(cont); in grid_update() 212 item_repos(item, &c, &hint); in grid_update() 464 static void item_repos(lv_obj_t * item, lv_grid_calc_t * c, item_repos_hint_t * hint) in item_repos() argument 563 int32_t diff_x = hint->grid_abs.x + x - item->coords.x1; in item_repos() 564 int32_t diff_y = hint->grid_abs.y + y - item->coords.y1; in item_repos()
|
/lvgl-latest/src/draw/nema_gfx/ |
D | lv_draw_nema_gfx_label.c | 440 if(dsc->hint && y_ofs == 0 && coords->y1 < 0) { in _draw_label_iterate_characters() 442 if(LV_ABS(dsc->hint->coord_y - coords->y1) > LV_LABEL_HINT_UPDATE_TH - 2 * line_height) { in _draw_label_iterate_characters() 443 dsc->hint->line_start = -1; in _draw_label_iterate_characters() 445 last_line_start = dsc->hint->line_start; in _draw_label_iterate_characters() 449 if(dsc->hint && last_line_start >= 0) { in _draw_label_iterate_characters() 451 pos.y += dsc->hint->y; in _draw_label_iterate_characters() 467 if(dsc->hint && pos.y >= -LV_LABEL_HINT_UPDATE_TH && dsc->hint->line_start < 0) { in _draw_label_iterate_characters() 468 dsc->hint->line_start = line_start; in _draw_label_iterate_characters() 469 dsc->hint->y = pos.y - coords->y1; in _draw_label_iterate_characters() 470 dsc->hint->coord_y = coords->y1; in _draw_label_iterate_characters()
|
/lvgl-latest/src/widgets/label/ |
D | lv_label_private.h | 38 lv_draw_label_hint_t hint; member
|
D | lv_label.c | 724 label->hint.line_start = -1; in lv_label_constructor() 725 label->hint.coord_y = 0; in lv_label_constructor() 726 label->hint.y = 0; in lv_label_constructor() 827 label_draw_dsc.hint = &label->hint; in draw_main() 939 label->hint.line_start = -1; /*The hint is invalid if the text changes*/ in lv_label_refr_text()
|
/lvgl-latest/demos/widgets/ |
D | lv_demo_widgets.c | 896 lv_obj_t * hint = lv_label_create(panel1); in shop_create() local 897 lv_label_set_text(hint, LV_SYMBOL_UP" 17% growth this week"); in shop_create() 898 lv_obj_set_style_text_color(hint, lv_palette_main(LV_PALETTE_GREEN), 0); in shop_create() 933 lv_obj_set_grid_cell(hint, LV_GRID_ALIGN_START, 0, 1, LV_GRID_ALIGN_START, 4, 1); in shop_create() 953 lv_obj_set_grid_cell(hint, LV_GRID_ALIGN_START, 1, 1, LV_GRID_ALIGN_CENTER, 1, 1); in shop_create() 975 lv_obj_set_grid_cell(hint, LV_GRID_ALIGN_START, 0, 1, LV_GRID_ALIGN_START, 3, 1); in shop_create()
|
/lvgl-latest/docs/details/widgets/ |
D | textarea.rst | 70 a handy way to provide the end user with a hint about what to type there.
|