Home
last modified time | relevance | path

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

/lvgl-3.7.0/src/extra/others/gridnav/
Dlv_gridnav.c25 lv_obj_t * focused_obj; member
69 dsc->focused_obj = NULL; in lv_gridnav_add()
98 lv_obj_clear_state(dsc->focused_obj, LV_STATE_FOCUSED | LV_STATE_FOCUS_KEY); in lv_gridnav_set_focused()
101 dsc->focused_obj = to_focus; in lv_gridnav_set_focused()
119 if(dsc->focused_obj == NULL) dsc->focused_obj = find_first_focusable(obj); in gridnav_event_cb()
120 if(dsc->focused_obj == NULL) return; in gridnav_event_cb()
126 …if((dsc->ctrl & LV_GRIDNAV_CTRL_SCROLL_FIRST) && lv_obj_has_flag(dsc->focused_obj, LV_OBJ_FLAG_SCR… in gridnav_event_cb()
127 lv_obj_get_scroll_right(dsc->focused_obj) > 0) { in gridnav_event_cb()
128 lv_coord_t d = lv_obj_get_width(dsc->focused_obj) / 4; in gridnav_event_cb()
130 lv_obj_scroll_by_bounded(dsc->focused_obj, -d, 0, LV_ANIM_ON); in gridnav_event_cb()
[all …]