[−][src]Function lvgl::widgets::tileview::set_valid_positions
pub fn set_valid_positions(
tileview: *mut lv_obj_t,
valid_pos: *const lv_point_t,
valid_pos_cnt: u16
) -> MynewtResult<()>
Set the valid position's indices. The scrolling will be possible only to these positions.
tileview
: pointer to a Tileview objectvalid_pos
: array width the indices. E.g.lv_point_t p[] = {{0,0}, {1,0}, {1,1}
. Only the pointer is saved so can't be a local variable.valid_pos_cnt
: number of elements invalid_pos
array