Home
last modified time | relevance | path

Searched refs:hint (Results 1 – 6 of 6) sorted by relevance

/lvgl-latest/src/draw/
Dlv_draw_label.c78 … const lv_area_t * coords, const char * txt, lv_draw_label_hint_t * hint) in lv_draw_label() argument
140 if(hint && y_ofs == 0 && coords->y1 < 0) { in lv_draw_label()
142 if(LV_ABS(hint->coord_y - coords->y1) > LV_LABEL_HINT_UPDATE_TH - 2 * line_height) { in lv_draw_label()
143 hint->line_start = -1; in lv_draw_label()
145 last_line_start = hint->line_start; in lv_draw_label()
149 if(hint && last_line_start >= 0) { in lv_draw_label()
151 pos.y += hint->y; in lv_draw_label()
164 if(hint && pos.y >= -LV_LABEL_HINT_UPDATE_TH && hint->line_start < 0) { in lv_draw_label()
165 hint->line_start = line_start; in lv_draw_label()
166 hint->y = pos.y - coords->y1; in lv_draw_label()
[all …]
Dlv_draw_label.h83 … const lv_area_t * coords, const char * txt, lv_draw_label_hint_t * hint);
/lvgl-latest/src/extra/layouts/grid/
Dlv_grid.c55 static void item_repos(lv_obj_t * item, _lv_grid_calc_t * c, item_repos_hint_t * hint);
349 item_repos_hint_t hint; in grid_update() local
350 lv_memset_00(&hint, sizeof(hint)); in grid_update()
357 hint.grid_abs.x = pad_left + cont->coords.x1 - lv_obj_get_scroll_x(cont); in grid_update()
358 hint.grid_abs.y = pad_top + cont->coords.y1 - lv_obj_get_scroll_y(cont); in grid_update()
363 item_repos(item, &c, &hint); in grid_update()
574 static void item_repos(lv_obj_t * item, _lv_grid_calc_t * c, item_repos_hint_t * hint) in item_repos() argument
671 lv_coord_t diff_x = hint->grid_abs.x + x - item->coords.x1; in item_repos()
672 lv_coord_t diff_y = hint->grid_abs.y + y - item->coords.y1; in item_repos()
/lvgl-latest/src/widgets/
Dlv_label.c704 label->hint.line_start = -1; in lv_label_constructor()
705 label->hint.coord_y = 0; in lv_label_constructor()
706 label->hint.y = 0; in lv_label_constructor()
832 lv_draw_label_hint_t * hint = &label->hint; in draw_main() local
834 hint = NULL; in draw_main()
838 lv_draw_label_hint_t * hint = NULL; in draw_main() local
853 lv_draw_label(draw_ctx, &label_draw_dsc, &txt_coords, label->text, hint); in draw_main()
857 lv_draw_label(draw_ctx, &label_draw_dsc, &txt_coords, label->text, hint); in draw_main()
874 lv_draw_label(draw_ctx, &label_draw_dsc, &txt_coords, label->text, hint); in draw_main()
882 lv_draw_label(draw_ctx, &label_draw_dsc, &txt_coords, label->text, hint); in draw_main()
[all …]
Dlv_label.h63 lv_draw_label_hint_t hint; member
/lvgl-latest/demos/widgets/
Dlv_demo_widgets.c814 lv_obj_t * hint = lv_label_create(panel1); in shop_create() local
815 lv_label_set_text(hint, LV_SYMBOL_UP" 17% growth this week"); in shop_create()
816 lv_obj_set_style_text_color(hint, lv_palette_main(LV_PALETTE_GREEN), 0); in shop_create()
858 lv_obj_set_grid_cell(hint, LV_GRID_ALIGN_START, 0, 1, LV_GRID_ALIGN_START, 4, 1); in shop_create()
878 lv_obj_set_grid_cell(hint, LV_GRID_ALIGN_START, 1, 1, LV_GRID_ALIGN_CENTER, 1, 1); in shop_create()
901 lv_obj_set_grid_cell(hint, LV_GRID_ALIGN_START, 0, 1, LV_GRID_ALIGN_START, 3, 1); in shop_create()