Home
last modified time | relevance | path

Searched refs:scrl (Results 1 – 9 of 9) sorted by relevance

/lvgl-2.7.6/src/lv_widgets/
Dlv_page.c51 static lv_res_t lv_page_scrollable_signal(lv_obj_t * scrl, lv_signal_t sign, void * param);
52 static void scrl_def_event_cb(lv_obj_t * scrl, lv_event_t event);
100 ext->scrl = NULL; in lv_page_create()
120 ext->scrl = lv_cont_create(page, NULL); in lv_page_create()
121 lv_obj_set_focus_parent(ext->scrl, true); in lv_page_create()
122 lv_obj_set_drag(ext->scrl, true); in lv_page_create()
123 lv_obj_set_drag_throw(ext->scrl, true); in lv_page_create()
124 lv_obj_add_protect(ext->scrl, LV_PROTECT_PARENT | LV_PROTECT_PRESS_LOST); in lv_page_create()
125 lv_cont_set_fit(ext->scrl, LV_FIT_MAX); in lv_page_create()
126 lv_obj_set_event_cb(ext->scrl, scrl_def_event_cb); /*Propagate some event to the background in lv_page_create()
[all …]
Dlv_tileview.c40 static lv_res_t lv_tileview_scrl_signal(lv_obj_t * scrl, lv_signal_t sign, void * param);
231 lv_obj_t * scrl = lv_page_get_scrollable(tileview); in lv_tileview_set_tile_act() local
234 lv_coord_t x_act = lv_obj_get_x(scrl); in lv_tileview_set_tile_act()
235 lv_coord_t y_act = lv_obj_get_y(scrl); in lv_tileview_set_tile_act()
239 lv_anim_set_var(&a, scrl); in lv_tileview_set_tile_act()
257 lv_obj_set_pos(scrl, x_coord, y_coord); in lv_tileview_set_tile_act()
330 static lv_res_t lv_tileview_scrl_signal(lv_obj_t * scrl, lv_signal_t sign, void * param) in lv_tileview_scrl_signal() argument
336 res = ancestor_scrl_signal(scrl, sign, param); in lv_tileview_scrl_signal()
340 lv_obj_t * tileview = lv_obj_get_parent(scrl); in lv_tileview_scrl_signal()
357 lv_coord_t x = lv_obj_get_x(scrl); in lv_tileview_scrl_signal()
[all …]
Dlv_list.c134 lv_obj_t * scrl = lv_page_get_scrollable(list); in lv_list_clean() local
135 lv_obj_clean(scrl); in lv_list_clean()
158 lv_obj_t * scrl = lv_page_get_scrollable(list); in lv_list_add_btn() local
159 lv_obj_add_protect(scrl, LV_PROTECT_CHILD_CHG); in lv_list_add_btn()
233 lv_obj_clear_protect(scrl, LV_PROTECT_CHILD_CHG); in lv_list_add_btn()
419 lv_obj_t * scrl = lv_page_get_scrollable(list); in lv_list_get_prev_btn() local
421 btn = lv_obj_get_child(scrl, prev_btn); in lv_list_get_prev_btn()
425 btn = lv_obj_get_child(scrl, btn); in lv_list_get_prev_btn()
446 lv_obj_t * scrl = lv_page_get_scrollable(list); in lv_list_get_next_btn() local
448 btn = lv_obj_get_child_back(scrl, prev_btn); in lv_list_get_next_btn()
[all …]
Dlv_textarea.c49 static lv_design_res_t lv_textarea_scrollable_design(lv_obj_t * scrl, const lv_area_t * clip_area,
52 static lv_res_t lv_textarea_scrollable_signal(lv_obj_t * scrl, lv_signal_t sign, void * param);
146 lv_obj_set_design_cb(ext->page.scrl, lv_textarea_scrollable_design); in lv_textarea_create()
160 lv_obj_set_design_cb(ext->page.scrl, lv_textarea_scrollable_design); in lv_textarea_create()
1315 static lv_design_res_t lv_textarea_scrollable_design(lv_obj_t * scrl, const lv_area_t * clip_area, in lv_textarea_scrollable_design() argument
1320 return scrl_design(scrl, clip_area, mode); in lv_textarea_scrollable_design()
1324 scrl_design(scrl, clip_area, mode); in lv_textarea_scrollable_design()
1327 scrl_design(scrl, clip_area, mode); in lv_textarea_scrollable_design()
1329 lv_obj_t * ta = lv_obj_get_parent(scrl); in lv_textarea_scrollable_design()
1351 lv_draw_label(&scrl->coords, clip_area, &ph_dsc, ext->placeholder_txt, NULL); in lv_textarea_scrollable_design()
[all …]
Dlv_roller.c109 lv_obj_t * scrl = lv_page_get_scrollable(roller); in lv_roller_create() local
110 lv_obj_set_drag(scrl, true); in lv_roller_create()
115 lv_obj_set_signal_cb(scrl, lv_roller_scrl_signal); in lv_roller_create()
133 lv_obj_t * scrl = lv_page_get_scrollable(roller); in lv_roller_create() local
134 lv_obj_set_signal_cb(scrl, lv_roller_scrl_signal); in lv_roller_create()
1002 static void inf_normalize(void * scrl) in inf_normalize() argument
1004 lv_obj_t * roller_scrl = (lv_obj_t *)scrl; in inf_normalize()
1032 lv_obj_t * scrl = lv_page_get_scrollable(roller); in get_label() local
1033 … if(scrl == NULL) return NULL; /*The roller is being deleted, the scrollable already not exists*/ in get_label()
1034 return lv_obj_get_child(scrl, NULL); in get_label()
Dlv_dropdown.c50 static lv_res_t lv_dropdown_page_scrl_signal(lv_obj_t * scrl, lv_signal_t sign, void * param);
1039 lv_obj_t * scrl = lv_page_get_scrollable(page); in lv_dropdown_page_signal() local
1040 scrl->ext_draw_pad = LV_MATH_MAX3(scrl->ext_draw_pad, left, right); in lv_dropdown_page_signal()
1065 static lv_res_t lv_dropdown_page_scrl_signal(lv_obj_t * scrl, lv_signal_t sign, void * param) in lv_dropdown_page_scrl_signal() argument
1070 res = ancestor_page_scrl_signal(scrl, sign, param); in lv_dropdown_page_scrl_signal()
1074 lv_obj_t * page = lv_obj_get_parent(scrl); in lv_dropdown_page_scrl_signal()
1097 scrl->ext_draw_pad = LV_MATH_MAX3(scrl->ext_draw_pad, left, right); in lv_dropdown_page_scrl_signal()
1321 lv_obj_t * scrl = lv_page_get_scrollable(ext->page); in position_to_selected() local
1328 … lv_coord_t line_y1 = ext->sel_opt_id * (font_h + line_space) + label->coords.y1 - scrl->coords.y1; in position_to_selected()
1330 lv_obj_set_y(scrl, -line_y1 + (h - font_h) / 2); in position_to_selected()
Dlv_win.c176 lv_obj_t * scrl = lv_page_get_scrollable(win); in lv_win_clean() local
177 lv_obj_clean(scrl); in lv_win_clean()
486 lv_obj_t * scrl = lv_page_get_scrollable(ext->page); in lv_win_get_width() local
490 return lv_obj_get_width_fit(scrl) - left - right; in lv_win_get_width()
Dlv_page.h56 lv_obj_t * scrl; /*The scrollable object on the background*/ member
Dlv_tabview.c296 lv_obj_t * scrl = lv_page_get_scrollable(tab); in lv_tabview_clean_tab() local
297 lv_obj_clean(scrl); in lv_tabview_clean_tab()