mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-23 07:46:36 +08:00
feat(style): add a "set all" function for margin (#6904)
This commit is contained in:
@@ -584,6 +584,14 @@ static inline void lv_style_set_pad_gap(lv_style_t * style, int32_t value)
|
||||
lv_style_set_pad_column(style, value);
|
||||
}
|
||||
|
||||
static inline void lv_style_set_margin_all(lv_style_t * style, int32_t value)
|
||||
{
|
||||
lv_style_set_margin_left(style, value);
|
||||
lv_style_set_margin_right(style, value);
|
||||
lv_style_set_margin_top(style, value);
|
||||
lv_style_set_margin_bottom(style, value);
|
||||
}
|
||||
|
||||
static inline void lv_style_set_transform_scale(lv_style_t * style, int32_t value)
|
||||
{
|
||||
lv_style_set_transform_scale_x(style, value);
|
||||
|
||||
Reference in New Issue
Block a user