lv_grid.h
Defines
-
LV_GRID_FR(x)
Can be used track size to make the track fill the free space.
- 参数:
x -- how much space to take proportionally to other FR tracks
- 返回:
a special track size
-
LV_GRID_CONTENT
-
LV_GRID_TEMPLATE_LAST
Enums
Functions
-
void lv_grid_init(void)
-
void lv_obj_set_grid_align(lv_obj_t *obj, lv_grid_align_t column_align, lv_grid_align_t row_align)
-
void lv_obj_set_grid_cell(lv_obj_t *obj, lv_grid_align_t column_align, int32_t col_pos, int32_t col_span, lv_grid_align_t row_align, int32_t row_pos, int32_t row_span)
Set the cell of an object. The object's parent needs to have grid layout, else nothing will happen
- 参数:
obj -- pointer to an object
column_align -- the vertical alignment in the cell.
LV_GRID_START/END/CENTER/STRETCH
col_pos -- column ID
col_span -- number of columns to take (>= 1)
row_align -- the horizontal alignment in the cell.
LV_GRID_START/END/CENTER/STRETCH
row_pos -- row ID
row_span -- number of rows to take (>= 1)
-
static inline int32_t lv_grid_fr(uint8_t x)
Just a wrapper to
LV_GRID_FR
for bindings.