27#define LV_GRID_FR(x) (LV_COORD_MAX - 100 + x)
29#define LV_GRID_CONTENT (LV_COORD_MAX - 101)
30LV_EXPORT_CONST_INT(LV_GRID_CONTENT);
32#define LV_GRID_TEMPLATE_LAST (LV_COORD_MAX)
33LV_EXPORT_CONST_INT(LV_GRID_TEMPLATE_LAST);
46 LV_GRID_ALIGN_STRETCH,
47 LV_GRID_ALIGN_SPACE_EVENLY,
48 LV_GRID_ALIGN_SPACE_AROUND,
49 LV_GRID_ALIGN_SPACE_BETWEEN,
56extern uint16_t LV_LAYOUT_GRID;
72void lv_grid_init(
void);
74void lv_obj_set_grid_dsc_array(
lv_obj_t * obj,
const lv_coord_t col_dsc[],
const lv_coord_t row_dsc[]);
76void lv_obj_set_grid_align(
lv_obj_t * obj, lv_grid_align_t column_align, lv_grid_align_t row_align);
88void lv_obj_set_grid_cell(
lv_obj_t * obj, lv_grid_align_t column_align, uint8_t col_pos, uint8_t col_span,
89 lv_grid_align_t row_align, uint8_t row_pos, uint8_t row_span);
94static inline lv_coord_t lv_grid_fr(uint8_t x)
99void lv_style_set_grid_row_dsc_array(
lv_style_t * style,
const lv_coord_t value[]);
100void lv_style_set_grid_column_dsc_array(
lv_style_t * style,
const lv_coord_t value[]);
101void lv_style_set_grid_row_align(
lv_style_t * style, lv_grid_align_t value);
102void lv_style_set_grid_column_align(
lv_style_t * style, lv_grid_align_t value);
103void lv_style_set_grid_cell_column_pos(
lv_style_t * style, lv_coord_t value);
104void lv_style_set_grid_cell_column_span(
lv_style_t * style, lv_coord_t value);
105void lv_style_set_grid_cell_row_pos(
lv_style_t * style, lv_coord_t value);
106void lv_style_set_grid_cell_row_span(
lv_style_t * style, lv_coord_t value);
107void lv_style_set_grid_cell_x_align(
lv_style_t * style, lv_coord_t value);
108void lv_style_set_grid_cell_y_align(
lv_style_t * style, lv_coord_t value);
110void lv_obj_set_style_grid_row_dsc_array(
lv_obj_t * obj,
const lv_coord_t value[], lv_style_selector_t selector);
111void lv_obj_set_style_grid_column_dsc_array(
lv_obj_t * obj,
const lv_coord_t value[], lv_style_selector_t selector);
112void lv_obj_set_style_grid_row_align(
lv_obj_t * obj, lv_grid_align_t value, lv_style_selector_t selector);
113void lv_obj_set_style_grid_column_align(
lv_obj_t * obj, lv_grid_align_t value, lv_style_selector_t selector);
114void lv_obj_set_style_grid_cell_column_pos(
lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
115void lv_obj_set_style_grid_cell_column_span(
lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
116void lv_obj_set_style_grid_cell_row_pos(
lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
117void lv_obj_set_style_grid_cell_row_span(
lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
118void lv_obj_set_style_grid_cell_x_align(
lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
119void lv_obj_set_style_grid_cell_y_align(
lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector);
121static inline const lv_coord_t * lv_obj_get_style_grid_row_dsc_array(
const lv_obj_t * obj, uint32_t part)
124 return (
const lv_coord_t *)v.
ptr;
127static inline const lv_coord_t * lv_obj_get_style_grid_column_dsc_array(
const lv_obj_t * obj, uint32_t part)
130 return (
const lv_coord_t *)v.
ptr;
133static inline lv_grid_align_t lv_obj_get_style_grid_row_align(
const lv_obj_t * obj, uint32_t part)
136 return (lv_grid_align_t)v.
num;
139static inline lv_grid_align_t lv_obj_get_style_grid_column_align(
const lv_obj_t * obj, uint32_t part)
142 return (lv_grid_align_t)v.
num;
145static inline lv_coord_t lv_obj_get_style_grid_cell_column_pos(
const lv_obj_t * obj, uint32_t part)
148 return (lv_coord_t)v.
num;
151static inline lv_coord_t lv_obj_get_style_grid_cell_column_span(
const lv_obj_t * obj, uint32_t part)
154 return (lv_coord_t)v.
num;
157static inline lv_coord_t lv_obj_get_style_grid_cell_row_pos(
const lv_obj_t * obj, uint32_t part)
160 return (lv_coord_t)v.
num;
163static inline lv_coord_t lv_obj_get_style_grid_cell_row_span(
const lv_obj_t * obj, uint32_t part)
166 return (lv_coord_t)v.
num;
169static inline lv_coord_t lv_obj_get_style_grid_cell_x_align(
const lv_obj_t * obj, uint32_t part)
172 return (lv_coord_t)v.
num;
175static inline lv_coord_t lv_obj_get_style_grid_cell_y_align(
const lv_obj_t * obj, uint32_t part)
178 return (lv_coord_t)v.
num;
lv_style_value_t lv_obj_get_style_prop(const struct _lv_obj_t *obj, lv_part_t part, lv_style_prop_t prop)
lv_style_prop_t
Definition lv_style.h:178
Definition lv_style.h:318
Definition lv_style.h:167
const void * ptr
Definition lv_style.h:169
int32_t num
Definition lv_style.h:168