Skip to main content

lv_obj_set_grid_cell

Function lv_obj_set_grid_cell 

Source
pub unsafe extern "C" fn lv_obj_set_grid_cell(
    obj: *mut lv_obj_t,
    column_align: lv_grid_align_t,
    col_pos: i32,
    col_span: i32,
    row_align: lv_grid_align_t,
    row_pos: i32,
    row_span: i32,
)
Expand description

Set the cell of an object. The object’s parent needs to have grid layout, else nothing will happen @param obj pointer to an object @param column_align the vertical alignment in the cell. LV_GRID_START/END/CENTER/STRETCH @param col_pos column ID @param col_span number of columns to take (>= 1) @param row_align the horizontal alignment in the cell. LV_GRID_START/END/CENTER/STRETCH @param row_pos row ID @param row_span number of rows to take (>= 1)