diff --git a/scripts/style_api_gen.py b/scripts/style_api_gen.py index 31b8ff2c9..27d7b1e90 100755 --- a/scripts/style_api_gen.py +++ b/scripts/style_api_gen.py @@ -384,24 +384,29 @@ def style_set_cast(style_type): cast = "(int32_t)" return cast -def style_set(p): +def style_set_c(p): if 'section' in p: return cast = style_set_cast(p['style_type']) - print("static inline void lv_style_set_" + p['name'].lower() +"(lv_style_t * style, "+ p['var_type'] +" value)") + print("void lv_style_set_" + p['name'].lower() +"(lv_style_t * style, "+ p['var_type'] +" value)") print("{") - print(" lv_style_value_t v = {0};") - print(" " + p['var_type'] +" * v2 = ("+ p['var_type'] +" *) &v;") - print(" *v2 = value;") - print(" lv_style_set_prop(style, LV_STYLE_" + p['name'] +", v);") + print(" lv_style_value_t v = {") + print(" ." + p['style_type'] +" = " + cast + "value") + print(" };") + print(" lv_style_set_prop(style, LV_STYLE_" + p['name'] +", v);") print("}") print("") -def local_style_set(p): +def style_set_h(p): + if 'section' in p: return + + print("void lv_style_set_" + p['name'].lower() +"(lv_style_t * style, "+ p['var_type'] +" value);") + +def local_style_set_c(p): if 'section' in p: return cast = style_set_cast(p['style_type']) - print("static inline void lv_obj_set_style_" + p['name'].lower() + "(struct _lv_obj_t * obj, " + p['var_type'] +" value, lv_style_selector_t selector)") + print("void lv_obj_set_style_" + p['name'].lower() + "(struct _lv_obj_t * obj, " + p['var_type'] +" value, lv_style_selector_t selector)") print("{") print(" lv_style_value_t v = {") print(" ." + p['style_type'] +" = " + cast + "value") @@ -410,6 +415,12 @@ def local_style_set(p): print("}") print("") + +def local_style_set_h(p): + if 'section' in p: return + print("void lv_obj_set_style_" + p['name'].lower() + "(struct _lv_obj_t * obj, " + p['var_type'] +" value, lv_style_selector_t selector);") + + def style_const_set(p): if 'section' in p: return @@ -477,14 +488,29 @@ sys.stdout = open(base_dir + '/../src/core/lv_obj_style_gen.h', 'w') for p in props: obj_style_get(p) - + for p in props: - local_style_set(p) + local_style_set_h(p) +sys.stdout = open(base_dir + '/../src/core/lv_obj_style_gen.c', 'w') + +print("#include \"lv_obj.h\"") +for p in props: + local_style_set_c(p) + +sys.stdout = open(base_dir + '/../src/misc/lv_style_gen.c', 'w') + +print("#include \"lv_style.h\"") +print("#include ") +for p in props: + style_set_c(p) + sys.stdout = open(base_dir + '/../src/misc/lv_style_gen.h', 'w') for p in props: - style_set(p) + style_set_h(p) + +for p in props: style_const_set(p) sys.stdout = open(base_dir + '/../docs/overview/style-props.md', 'w') diff --git a/src/core/lv_obj_style_gen.c b/src/core/lv_obj_style_gen.c new file mode 100644 index 000000000..47038e1a0 --- /dev/null +++ b/src/core/lv_obj_style_gen.c @@ -0,0 +1,713 @@ +#include "lv_obj.h" +void lv_obj_set_style_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_WIDTH, v, selector); +} + +void lv_obj_set_style_min_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_MIN_WIDTH, v, selector); +} + +void lv_obj_set_style_max_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_MAX_WIDTH, v, selector); +} + +void lv_obj_set_style_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_HEIGHT, v, selector); +} + +void lv_obj_set_style_min_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_MIN_HEIGHT, v, selector); +} + +void lv_obj_set_style_max_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_MAX_HEIGHT, v, selector); +} + +void lv_obj_set_style_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_X, v, selector); +} + +void lv_obj_set_style_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_Y, v, selector); +} + +void lv_obj_set_style_align(struct _lv_obj_t * obj, lv_align_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_ALIGN, v, selector); +} + +void lv_obj_set_style_transform_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSFORM_WIDTH, v, selector); +} + +void lv_obj_set_style_transform_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSFORM_HEIGHT, v, selector); +} + +void lv_obj_set_style_translate_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSLATE_X, v, selector); +} + +void lv_obj_set_style_translate_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSLATE_Y, v, selector); +} + +void lv_obj_set_style_transform_zoom(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSFORM_ZOOM, v, selector); +} + +void lv_obj_set_style_transform_angle(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSFORM_ANGLE, v, selector); +} + +void lv_obj_set_style_pad_top(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_PAD_TOP, v, selector); +} + +void lv_obj_set_style_pad_bottom(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_PAD_BOTTOM, v, selector); +} + +void lv_obj_set_style_pad_left(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_PAD_LEFT, v, selector); +} + +void lv_obj_set_style_pad_right(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_PAD_RIGHT, v, selector); +} + +void lv_obj_set_style_pad_row(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_PAD_ROW, v, selector); +} + +void lv_obj_set_style_pad_column(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_PAD_COLUMN, v, selector); +} + +void lv_obj_set_style_radius(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_RADIUS, v, selector); +} + +void lv_obj_set_style_clip_corner(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_CLIP_CORNER, v, selector); +} + +void lv_obj_set_style_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_OPA, v, selector); +} + +void lv_obj_set_style_color_filter_dsc(struct _lv_obj_t * obj, const lv_color_filter_dsc_t * value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .ptr = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_COLOR_FILTER_DSC, v, selector); +} + +void lv_obj_set_style_color_filter_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_COLOR_FILTER_OPA, v, selector); +} + +void lv_obj_set_style_anim_time(struct _lv_obj_t * obj, uint32_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_ANIM_TIME, v, selector); +} + +void lv_obj_set_style_anim_speed(struct _lv_obj_t * obj, uint32_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_ANIM_SPEED, v, selector); +} + +void lv_obj_set_style_transition(struct _lv_obj_t * obj, const lv_style_transition_dsc_t * value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .ptr = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSITION, v, selector); +} + +void lv_obj_set_style_blend_mode(struct _lv_obj_t * obj, lv_blend_mode_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BLEND_MODE, v, selector); +} + +void lv_obj_set_style_layout(struct _lv_obj_t * obj, uint16_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_LAYOUT, v, selector); +} + +void lv_obj_set_style_base_dir(struct _lv_obj_t * obj, lv_base_dir_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BASE_DIR, v, selector); +} + +void lv_obj_set_style_bg_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BG_COLOR, v, selector); +} + +void lv_obj_set_style_bg_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BG_COLOR_FILTERED, v, selector); +} + +void lv_obj_set_style_bg_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BG_OPA, v, selector); +} + +void lv_obj_set_style_bg_grad_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BG_GRAD_COLOR, v, selector); +} + +void lv_obj_set_style_bg_grad_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BG_GRAD_COLOR_FILTERED, v, selector); +} + +void lv_obj_set_style_bg_grad_dir(struct _lv_obj_t * obj, lv_grad_dir_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BG_GRAD_DIR, v, selector); +} + +void lv_obj_set_style_bg_main_stop(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BG_MAIN_STOP, v, selector); +} + +void lv_obj_set_style_bg_grad_stop(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BG_GRAD_STOP, v, selector); +} + +void lv_obj_set_style_bg_img_src(struct _lv_obj_t * obj, const void * value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .ptr = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BG_IMG_SRC, v, selector); +} + +void lv_obj_set_style_bg_img_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BG_IMG_OPA, v, selector); +} + +void lv_obj_set_style_bg_img_recolor(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BG_IMG_RECOLOR, v, selector); +} + +void lv_obj_set_style_bg_img_recolor_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BG_IMG_RECOLOR_FILTERED, v, selector); +} + +void lv_obj_set_style_bg_img_recolor_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BG_IMG_RECOLOR_OPA, v, selector); +} + +void lv_obj_set_style_bg_img_tiled(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BG_IMG_TILED, v, selector); +} + +void lv_obj_set_style_border_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BORDER_COLOR, v, selector); +} + +void lv_obj_set_style_border_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BORDER_COLOR_FILTERED, v, selector); +} + +void lv_obj_set_style_border_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BORDER_OPA, v, selector); +} + +void lv_obj_set_style_border_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BORDER_WIDTH, v, selector); +} + +void lv_obj_set_style_border_side(struct _lv_obj_t * obj, lv_border_side_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BORDER_SIDE, v, selector); +} + +void lv_obj_set_style_border_post(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_BORDER_POST, v, selector); +} + +void lv_obj_set_style_text_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_COLOR, v, selector); +} + +void lv_obj_set_style_text_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_COLOR_FILTERED, v, selector); +} + +void lv_obj_set_style_text_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_OPA, v, selector); +} + +void lv_obj_set_style_text_font(struct _lv_obj_t * obj, const lv_font_t * value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .ptr = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_FONT, v, selector); +} + +void lv_obj_set_style_text_letter_space(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_LETTER_SPACE, v, selector); +} + +void lv_obj_set_style_text_line_space(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_LINE_SPACE, v, selector); +} + +void lv_obj_set_style_text_decor(struct _lv_obj_t * obj, lv_text_decor_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_DECOR, v, selector); +} + +void lv_obj_set_style_text_align(struct _lv_obj_t * obj, lv_text_align_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_ALIGN, v, selector); +} + +void lv_obj_set_style_img_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_IMG_OPA, v, selector); +} + +void lv_obj_set_style_img_recolor(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_IMG_RECOLOR, v, selector); +} + +void lv_obj_set_style_img_recolor_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_IMG_RECOLOR_FILTERED, v, selector); +} + +void lv_obj_set_style_img_recolor_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_IMG_RECOLOR_OPA, v, selector); +} + +void lv_obj_set_style_outline_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_OUTLINE_WIDTH, v, selector); +} + +void lv_obj_set_style_outline_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_OUTLINE_COLOR, v, selector); +} + +void lv_obj_set_style_outline_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_OUTLINE_COLOR_FILTERED, v, selector); +} + +void lv_obj_set_style_outline_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_OUTLINE_OPA, v, selector); +} + +void lv_obj_set_style_outline_pad(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_OUTLINE_PAD, v, selector); +} + +void lv_obj_set_style_shadow_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_WIDTH, v, selector); +} + +void lv_obj_set_style_shadow_ofs_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_OFS_X, v, selector); +} + +void lv_obj_set_style_shadow_ofs_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_OFS_Y, v, selector); +} + +void lv_obj_set_style_shadow_spread(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_SPREAD, v, selector); +} + +void lv_obj_set_style_shadow_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_COLOR, v, selector); +} + +void lv_obj_set_style_shadow_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_COLOR_FILTERED, v, selector); +} + +void lv_obj_set_style_shadow_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_OPA, v, selector); +} + +void lv_obj_set_style_line_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_WIDTH, v, selector); +} + +void lv_obj_set_style_line_dash_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_DASH_WIDTH, v, selector); +} + +void lv_obj_set_style_line_dash_gap(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_DASH_GAP, v, selector); +} + +void lv_obj_set_style_line_rounded(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_ROUNDED, v, selector); +} + +void lv_obj_set_style_line_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_COLOR, v, selector); +} + +void lv_obj_set_style_line_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_COLOR_FILTERED, v, selector); +} + +void lv_obj_set_style_line_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_OPA, v, selector); +} + +void lv_obj_set_style_arc_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_ARC_WIDTH, v, selector); +} + +void lv_obj_set_style_arc_rounded(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_ARC_ROUNDED, v, selector); +} + +void lv_obj_set_style_arc_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_ARC_COLOR, v, selector); +} + +void lv_obj_set_style_arc_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .color = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_ARC_COLOR_FILTERED, v, selector); +} + +void lv_obj_set_style_arc_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_ARC_OPA, v, selector); +} + +void lv_obj_set_style_arc_img_src(struct _lv_obj_t * obj, const void * value, lv_style_selector_t selector) +{ + lv_style_value_t v = { + .ptr = value + }; + lv_obj_set_local_style_prop(obj, LV_STYLE_ARC_IMG_SRC, v, selector); +} + diff --git a/src/core/lv_obj_style_gen.h b/src/core/lv_obj_style_gen.h index 557cb538c..a0c53525a 100644 --- a/src/core/lv_obj_style_gen.h +++ b/src/core/lv_obj_style_gen.h @@ -532,715 +532,92 @@ static inline const void * lv_obj_get_style_arc_img_src(const struct _lv_obj_t * return (const void *)v.ptr; } -static inline void lv_obj_set_style_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_WIDTH, v, selector); -} - -static inline void lv_obj_set_style_min_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_MIN_WIDTH, v, selector); -} - -static inline void lv_obj_set_style_max_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_MAX_WIDTH, v, selector); -} - -static inline void lv_obj_set_style_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_HEIGHT, v, selector); -} - -static inline void lv_obj_set_style_min_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_MIN_HEIGHT, v, selector); -} - -static inline void lv_obj_set_style_max_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_MAX_HEIGHT, v, selector); -} - -static inline void lv_obj_set_style_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_X, v, selector); -} - -static inline void lv_obj_set_style_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_Y, v, selector); -} - -static inline void lv_obj_set_style_align(struct _lv_obj_t * obj, lv_align_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_ALIGN, v, selector); -} - -static inline void lv_obj_set_style_transform_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSFORM_WIDTH, v, selector); -} - -static inline void lv_obj_set_style_transform_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSFORM_HEIGHT, v, selector); -} - -static inline void lv_obj_set_style_translate_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSLATE_X, v, selector); -} - -static inline void lv_obj_set_style_translate_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSLATE_Y, v, selector); -} - -static inline void lv_obj_set_style_transform_zoom(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSFORM_ZOOM, v, selector); -} - -static inline void lv_obj_set_style_transform_angle(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSFORM_ANGLE, v, selector); -} - -static inline void lv_obj_set_style_pad_top(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_PAD_TOP, v, selector); -} - -static inline void lv_obj_set_style_pad_bottom(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_PAD_BOTTOM, v, selector); -} - -static inline void lv_obj_set_style_pad_left(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_PAD_LEFT, v, selector); -} - -static inline void lv_obj_set_style_pad_right(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_PAD_RIGHT, v, selector); -} - -static inline void lv_obj_set_style_pad_row(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_PAD_ROW, v, selector); -} - -static inline void lv_obj_set_style_pad_column(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_PAD_COLUMN, v, selector); -} - -static inline void lv_obj_set_style_radius(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_RADIUS, v, selector); -} - -static inline void lv_obj_set_style_clip_corner(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_CLIP_CORNER, v, selector); -} - -static inline void lv_obj_set_style_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_OPA, v, selector); -} - -static inline void lv_obj_set_style_color_filter_dsc(struct _lv_obj_t * obj, const lv_color_filter_dsc_t * value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .ptr = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_COLOR_FILTER_DSC, v, selector); -} - -static inline void lv_obj_set_style_color_filter_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_COLOR_FILTER_OPA, v, selector); -} - -static inline void lv_obj_set_style_anim_time(struct _lv_obj_t * obj, uint32_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_ANIM_TIME, v, selector); -} - -static inline void lv_obj_set_style_anim_speed(struct _lv_obj_t * obj, uint32_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_ANIM_SPEED, v, selector); -} - -static inline void lv_obj_set_style_transition(struct _lv_obj_t * obj, const lv_style_transition_dsc_t * value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .ptr = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_TRANSITION, v, selector); -} - -static inline void lv_obj_set_style_blend_mode(struct _lv_obj_t * obj, lv_blend_mode_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BLEND_MODE, v, selector); -} - -static inline void lv_obj_set_style_layout(struct _lv_obj_t * obj, uint16_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_LAYOUT, v, selector); -} - -static inline void lv_obj_set_style_base_dir(struct _lv_obj_t * obj, lv_base_dir_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BASE_DIR, v, selector); -} - -static inline void lv_obj_set_style_bg_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BG_COLOR, v, selector); -} - -static inline void lv_obj_set_style_bg_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BG_COLOR_FILTERED, v, selector); -} - -static inline void lv_obj_set_style_bg_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BG_OPA, v, selector); -} - -static inline void lv_obj_set_style_bg_grad_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BG_GRAD_COLOR, v, selector); -} - -static inline void lv_obj_set_style_bg_grad_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BG_GRAD_COLOR_FILTERED, v, selector); -} - -static inline void lv_obj_set_style_bg_grad_dir(struct _lv_obj_t * obj, lv_grad_dir_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BG_GRAD_DIR, v, selector); -} - -static inline void lv_obj_set_style_bg_main_stop(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BG_MAIN_STOP, v, selector); -} - -static inline void lv_obj_set_style_bg_grad_stop(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BG_GRAD_STOP, v, selector); -} - -static inline void lv_obj_set_style_bg_img_src(struct _lv_obj_t * obj, const void * value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .ptr = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BG_IMG_SRC, v, selector); -} - -static inline void lv_obj_set_style_bg_img_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BG_IMG_OPA, v, selector); -} - -static inline void lv_obj_set_style_bg_img_recolor(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BG_IMG_RECOLOR, v, selector); -} - -static inline void lv_obj_set_style_bg_img_recolor_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BG_IMG_RECOLOR_FILTERED, v, selector); -} - -static inline void lv_obj_set_style_bg_img_recolor_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BG_IMG_RECOLOR_OPA, v, selector); -} - -static inline void lv_obj_set_style_bg_img_tiled(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BG_IMG_TILED, v, selector); -} - -static inline void lv_obj_set_style_border_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BORDER_COLOR, v, selector); -} - -static inline void lv_obj_set_style_border_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BORDER_COLOR_FILTERED, v, selector); -} - -static inline void lv_obj_set_style_border_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BORDER_OPA, v, selector); -} - -static inline void lv_obj_set_style_border_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BORDER_WIDTH, v, selector); -} - -static inline void lv_obj_set_style_border_side(struct _lv_obj_t * obj, lv_border_side_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BORDER_SIDE, v, selector); -} - -static inline void lv_obj_set_style_border_post(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_BORDER_POST, v, selector); -} - -static inline void lv_obj_set_style_text_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_COLOR, v, selector); -} - -static inline void lv_obj_set_style_text_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_COLOR_FILTERED, v, selector); -} - -static inline void lv_obj_set_style_text_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_OPA, v, selector); -} - -static inline void lv_obj_set_style_text_font(struct _lv_obj_t * obj, const lv_font_t * value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .ptr = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_FONT, v, selector); -} - -static inline void lv_obj_set_style_text_letter_space(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_LETTER_SPACE, v, selector); -} - -static inline void lv_obj_set_style_text_line_space(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_LINE_SPACE, v, selector); -} - -static inline void lv_obj_set_style_text_decor(struct _lv_obj_t * obj, lv_text_decor_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_DECOR, v, selector); -} - -static inline void lv_obj_set_style_text_align(struct _lv_obj_t * obj, lv_text_align_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_TEXT_ALIGN, v, selector); -} - -static inline void lv_obj_set_style_img_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_IMG_OPA, v, selector); -} - -static inline void lv_obj_set_style_img_recolor(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_IMG_RECOLOR, v, selector); -} - -static inline void lv_obj_set_style_img_recolor_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_IMG_RECOLOR_FILTERED, v, selector); -} - -static inline void lv_obj_set_style_img_recolor_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_IMG_RECOLOR_OPA, v, selector); -} - -static inline void lv_obj_set_style_outline_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_OUTLINE_WIDTH, v, selector); -} - -static inline void lv_obj_set_style_outline_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_OUTLINE_COLOR, v, selector); -} - -static inline void lv_obj_set_style_outline_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_OUTLINE_COLOR_FILTERED, v, selector); -} - -static inline void lv_obj_set_style_outline_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_OUTLINE_OPA, v, selector); -} - -static inline void lv_obj_set_style_outline_pad(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_OUTLINE_PAD, v, selector); -} - -static inline void lv_obj_set_style_shadow_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_WIDTH, v, selector); -} - -static inline void lv_obj_set_style_shadow_ofs_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_OFS_X, v, selector); -} - -static inline void lv_obj_set_style_shadow_ofs_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_OFS_Y, v, selector); -} - -static inline void lv_obj_set_style_shadow_spread(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_SPREAD, v, selector); -} - -static inline void lv_obj_set_style_shadow_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_COLOR, v, selector); -} - -static inline void lv_obj_set_style_shadow_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_COLOR_FILTERED, v, selector); -} - -static inline void lv_obj_set_style_shadow_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_SHADOW_OPA, v, selector); -} - -static inline void lv_obj_set_style_line_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_WIDTH, v, selector); -} - -static inline void lv_obj_set_style_line_dash_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_DASH_WIDTH, v, selector); -} - -static inline void lv_obj_set_style_line_dash_gap(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_DASH_GAP, v, selector); -} - -static inline void lv_obj_set_style_line_rounded(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_ROUNDED, v, selector); -} - -static inline void lv_obj_set_style_line_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_COLOR, v, selector); -} - -static inline void lv_obj_set_style_line_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_COLOR_FILTERED, v, selector); -} - -static inline void lv_obj_set_style_line_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_LINE_OPA, v, selector); -} - -static inline void lv_obj_set_style_arc_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_ARC_WIDTH, v, selector); -} - -static inline void lv_obj_set_style_arc_rounded(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_ARC_ROUNDED, v, selector); -} - -static inline void lv_obj_set_style_arc_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_ARC_COLOR, v, selector); -} - -static inline void lv_obj_set_style_arc_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .color = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_ARC_COLOR_FILTERED, v, selector); -} - -static inline void lv_obj_set_style_arc_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .num = (int32_t)value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_ARC_OPA, v, selector); -} - -static inline void lv_obj_set_style_arc_img_src(struct _lv_obj_t * obj, const void * value, lv_style_selector_t selector) -{ - lv_style_value_t v = { - .ptr = value - }; - lv_obj_set_local_style_prop(obj, LV_STYLE_ARC_IMG_SRC, v, selector); -} - +void lv_obj_set_style_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_min_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_max_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_min_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_max_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_align(struct _lv_obj_t * obj, lv_align_t value, lv_style_selector_t selector); +void lv_obj_set_style_transform_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_transform_height(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_translate_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_translate_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_transform_zoom(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_transform_angle(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_pad_top(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_pad_bottom(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_pad_left(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_pad_right(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_pad_row(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_pad_column(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_radius(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_clip_corner(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector); +void lv_obj_set_style_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector); +void lv_obj_set_style_color_filter_dsc(struct _lv_obj_t * obj, const lv_color_filter_dsc_t * value, lv_style_selector_t selector); +void lv_obj_set_style_color_filter_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector); +void lv_obj_set_style_anim_time(struct _lv_obj_t * obj, uint32_t value, lv_style_selector_t selector); +void lv_obj_set_style_anim_speed(struct _lv_obj_t * obj, uint32_t value, lv_style_selector_t selector); +void lv_obj_set_style_transition(struct _lv_obj_t * obj, const lv_style_transition_dsc_t * value, lv_style_selector_t selector); +void lv_obj_set_style_blend_mode(struct _lv_obj_t * obj, lv_blend_mode_t value, lv_style_selector_t selector); +void lv_obj_set_style_layout(struct _lv_obj_t * obj, uint16_t value, lv_style_selector_t selector); +void lv_obj_set_style_base_dir(struct _lv_obj_t * obj, lv_base_dir_t value, lv_style_selector_t selector); +void lv_obj_set_style_bg_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_bg_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_bg_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector); +void lv_obj_set_style_bg_grad_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_bg_grad_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_bg_grad_dir(struct _lv_obj_t * obj, lv_grad_dir_t value, lv_style_selector_t selector); +void lv_obj_set_style_bg_main_stop(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_bg_grad_stop(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_bg_img_src(struct _lv_obj_t * obj, const void * value, lv_style_selector_t selector); +void lv_obj_set_style_bg_img_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector); +void lv_obj_set_style_bg_img_recolor(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_bg_img_recolor_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_bg_img_recolor_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector); +void lv_obj_set_style_bg_img_tiled(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector); +void lv_obj_set_style_border_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_border_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_border_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector); +void lv_obj_set_style_border_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_border_side(struct _lv_obj_t * obj, lv_border_side_t value, lv_style_selector_t selector); +void lv_obj_set_style_border_post(struct _lv_obj_t * obj, bool value, lv_style_selector_t selector); +void lv_obj_set_style_text_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_text_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_text_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector); +void lv_obj_set_style_text_font(struct _lv_obj_t * obj, const lv_font_t * value, lv_style_selector_t selector); +void lv_obj_set_style_text_letter_space(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_text_line_space(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_text_decor(struct _lv_obj_t * obj, lv_text_decor_t value, lv_style_selector_t selector); +void lv_obj_set_style_text_align(struct _lv_obj_t * obj, lv_text_align_t value, lv_style_selector_t selector); +void lv_obj_set_style_img_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector); +void lv_obj_set_style_img_recolor(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_img_recolor_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_img_recolor_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector); +void lv_obj_set_style_outline_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_outline_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_outline_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_outline_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector); +void lv_obj_set_style_outline_pad(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_shadow_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_shadow_ofs_x(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_shadow_ofs_y(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_shadow_spread(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_shadow_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_shadow_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_shadow_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector); +void lv_obj_set_style_line_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_line_dash_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_line_dash_gap(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_line_rounded(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_line_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_line_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_line_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector); +void lv_obj_set_style_arc_width(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_arc_rounded(struct _lv_obj_t * obj, lv_coord_t value, lv_style_selector_t selector); +void lv_obj_set_style_arc_color(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_arc_color_filtered(struct _lv_obj_t * obj, lv_color_t value, lv_style_selector_t selector); +void lv_obj_set_style_arc_opa(struct _lv_obj_t * obj, lv_opa_t value, lv_style_selector_t selector); +void lv_obj_set_style_arc_img_src(struct _lv_obj_t * obj, const void * value, lv_style_selector_t selector); diff --git a/src/misc/lv_style_gen.c b/src/misc/lv_style_gen.c new file mode 100644 index 000000000..bdcd1d147 --- /dev/null +++ b/src/misc/lv_style_gen.c @@ -0,0 +1,714 @@ +#include "lv_style.h" +#include +void lv_style_set_width(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_WIDTH, v); +} + +void lv_style_set_min_width(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_MIN_WIDTH, v); +} + +void lv_style_set_max_width(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_MAX_WIDTH, v); +} + +void lv_style_set_height(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_HEIGHT, v); +} + +void lv_style_set_min_height(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_MIN_HEIGHT, v); +} + +void lv_style_set_max_height(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_MAX_HEIGHT, v); +} + +void lv_style_set_x(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_X, v); +} + +void lv_style_set_y(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_Y, v); +} + +void lv_style_set_align(lv_style_t * style, lv_align_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_ALIGN, v); +} + +void lv_style_set_transform_width(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_TRANSFORM_WIDTH, v); +} + +void lv_style_set_transform_height(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_TRANSFORM_HEIGHT, v); +} + +void lv_style_set_translate_x(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_TRANSLATE_X, v); +} + +void lv_style_set_translate_y(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_TRANSLATE_Y, v); +} + +void lv_style_set_transform_zoom(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_TRANSFORM_ZOOM, v); +} + +void lv_style_set_transform_angle(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_TRANSFORM_ANGLE, v); +} + +void lv_style_set_pad_top(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_PAD_TOP, v); +} + +void lv_style_set_pad_bottom(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_PAD_BOTTOM, v); +} + +void lv_style_set_pad_left(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_PAD_LEFT, v); +} + +void lv_style_set_pad_right(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_PAD_RIGHT, v); +} + +void lv_style_set_pad_row(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_PAD_ROW, v); +} + +void lv_style_set_pad_column(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_PAD_COLUMN, v); +} + +void lv_style_set_radius(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_RADIUS, v); +} + +void lv_style_set_clip_corner(lv_style_t * style, bool value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_CLIP_CORNER, v); +} + +void lv_style_set_opa(lv_style_t * style, lv_opa_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_OPA, v); +} + +void lv_style_set_color_filter_dsc(lv_style_t * style, const lv_color_filter_dsc_t * value) +{ + lv_style_value_t v = { + .ptr = value + }; + lv_style_set_prop(style, LV_STYLE_COLOR_FILTER_DSC, v); +} + +void lv_style_set_color_filter_opa(lv_style_t * style, lv_opa_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_COLOR_FILTER_OPA, v); +} + +void lv_style_set_anim_time(lv_style_t * style, uint32_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_ANIM_TIME, v); +} + +void lv_style_set_anim_speed(lv_style_t * style, uint32_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_ANIM_SPEED, v); +} + +void lv_style_set_transition(lv_style_t * style, const lv_style_transition_dsc_t * value) +{ + lv_style_value_t v = { + .ptr = value + }; + lv_style_set_prop(style, LV_STYLE_TRANSITION, v); +} + +void lv_style_set_blend_mode(lv_style_t * style, lv_blend_mode_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_BLEND_MODE, v); +} + +void lv_style_set_layout(lv_style_t * style, uint16_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_LAYOUT, v); +} + +void lv_style_set_base_dir(lv_style_t * style, lv_base_dir_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_BASE_DIR, v); +} + +void lv_style_set_bg_color(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_BG_COLOR, v); +} + +void lv_style_set_bg_color_filtered(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_BG_COLOR_FILTERED, v); +} + +void lv_style_set_bg_opa(lv_style_t * style, lv_opa_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_BG_OPA, v); +} + +void lv_style_set_bg_grad_color(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_BG_GRAD_COLOR, v); +} + +void lv_style_set_bg_grad_color_filtered(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_BG_GRAD_COLOR_FILTERED, v); +} + +void lv_style_set_bg_grad_dir(lv_style_t * style, lv_grad_dir_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_BG_GRAD_DIR, v); +} + +void lv_style_set_bg_main_stop(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_BG_MAIN_STOP, v); +} + +void lv_style_set_bg_grad_stop(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_BG_GRAD_STOP, v); +} + +void lv_style_set_bg_img_src(lv_style_t * style, const void * value) +{ + lv_style_value_t v = { + .ptr = value + }; + lv_style_set_prop(style, LV_STYLE_BG_IMG_SRC, v); +} + +void lv_style_set_bg_img_opa(lv_style_t * style, lv_opa_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_BG_IMG_OPA, v); +} + +void lv_style_set_bg_img_recolor(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_BG_IMG_RECOLOR, v); +} + +void lv_style_set_bg_img_recolor_filtered(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_BG_IMG_RECOLOR_FILTERED, v); +} + +void lv_style_set_bg_img_recolor_opa(lv_style_t * style, lv_opa_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_BG_IMG_RECOLOR_OPA, v); +} + +void lv_style_set_bg_img_tiled(lv_style_t * style, bool value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_BG_IMG_TILED, v); +} + +void lv_style_set_border_color(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_BORDER_COLOR, v); +} + +void lv_style_set_border_color_filtered(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_BORDER_COLOR_FILTERED, v); +} + +void lv_style_set_border_opa(lv_style_t * style, lv_opa_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_BORDER_OPA, v); +} + +void lv_style_set_border_width(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_BORDER_WIDTH, v); +} + +void lv_style_set_border_side(lv_style_t * style, lv_border_side_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_BORDER_SIDE, v); +} + +void lv_style_set_border_post(lv_style_t * style, bool value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_BORDER_POST, v); +} + +void lv_style_set_text_color(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_TEXT_COLOR, v); +} + +void lv_style_set_text_color_filtered(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_TEXT_COLOR_FILTERED, v); +} + +void lv_style_set_text_opa(lv_style_t * style, lv_opa_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_TEXT_OPA, v); +} + +void lv_style_set_text_font(lv_style_t * style, const lv_font_t * value) +{ + lv_style_value_t v = { + .ptr = value + }; + lv_style_set_prop(style, LV_STYLE_TEXT_FONT, v); +} + +void lv_style_set_text_letter_space(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_TEXT_LETTER_SPACE, v); +} + +void lv_style_set_text_line_space(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_TEXT_LINE_SPACE, v); +} + +void lv_style_set_text_decor(lv_style_t * style, lv_text_decor_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_TEXT_DECOR, v); +} + +void lv_style_set_text_align(lv_style_t * style, lv_text_align_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_TEXT_ALIGN, v); +} + +void lv_style_set_img_opa(lv_style_t * style, lv_opa_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_IMG_OPA, v); +} + +void lv_style_set_img_recolor(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_IMG_RECOLOR, v); +} + +void lv_style_set_img_recolor_filtered(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_IMG_RECOLOR_FILTERED, v); +} + +void lv_style_set_img_recolor_opa(lv_style_t * style, lv_opa_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_IMG_RECOLOR_OPA, v); +} + +void lv_style_set_outline_width(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_OUTLINE_WIDTH, v); +} + +void lv_style_set_outline_color(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_OUTLINE_COLOR, v); +} + +void lv_style_set_outline_color_filtered(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_OUTLINE_COLOR_FILTERED, v); +} + +void lv_style_set_outline_opa(lv_style_t * style, lv_opa_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_OUTLINE_OPA, v); +} + +void lv_style_set_outline_pad(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_OUTLINE_PAD, v); +} + +void lv_style_set_shadow_width(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_SHADOW_WIDTH, v); +} + +void lv_style_set_shadow_ofs_x(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_SHADOW_OFS_X, v); +} + +void lv_style_set_shadow_ofs_y(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_SHADOW_OFS_Y, v); +} + +void lv_style_set_shadow_spread(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_SHADOW_SPREAD, v); +} + +void lv_style_set_shadow_color(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_SHADOW_COLOR, v); +} + +void lv_style_set_shadow_color_filtered(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_SHADOW_COLOR_FILTERED, v); +} + +void lv_style_set_shadow_opa(lv_style_t * style, lv_opa_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_SHADOW_OPA, v); +} + +void lv_style_set_line_width(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_LINE_WIDTH, v); +} + +void lv_style_set_line_dash_width(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_LINE_DASH_WIDTH, v); +} + +void lv_style_set_line_dash_gap(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_LINE_DASH_GAP, v); +} + +void lv_style_set_line_rounded(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_LINE_ROUNDED, v); +} + +void lv_style_set_line_color(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_LINE_COLOR, v); +} + +void lv_style_set_line_color_filtered(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_LINE_COLOR_FILTERED, v); +} + +void lv_style_set_line_opa(lv_style_t * style, lv_opa_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_LINE_OPA, v); +} + +void lv_style_set_arc_width(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_ARC_WIDTH, v); +} + +void lv_style_set_arc_rounded(lv_style_t * style, lv_coord_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_ARC_ROUNDED, v); +} + +void lv_style_set_arc_color(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_ARC_COLOR, v); +} + +void lv_style_set_arc_color_filtered(lv_style_t * style, lv_color_t value) +{ + lv_style_value_t v = { + .color = value + }; + lv_style_set_prop(style, LV_STYLE_ARC_COLOR_FILTERED, v); +} + +void lv_style_set_arc_opa(lv_style_t * style, lv_opa_t value) +{ + lv_style_value_t v = { + .num = (int32_t)value + }; + lv_style_set_prop(style, LV_STYLE_ARC_OPA, v); +} + +void lv_style_set_arc_img_src(lv_style_t * style, const void * value) +{ + lv_style_value_t v = { + .ptr = value + }; + lv_style_set_prop(style, LV_STYLE_ARC_IMG_SRC, v); +} + diff --git a/src/misc/lv_style_gen.h b/src/misc/lv_style_gen.h index a339049fa..08afb0476 100644 --- a/src/misc/lv_style_gen.h +++ b/src/misc/lv_style_gen.h @@ -1,11 +1,92 @@ -static inline void lv_style_set_width(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_WIDTH, v); -} - +void lv_style_set_width(lv_style_t * style, lv_coord_t value); +void lv_style_set_min_width(lv_style_t * style, lv_coord_t value); +void lv_style_set_max_width(lv_style_t * style, lv_coord_t value); +void lv_style_set_height(lv_style_t * style, lv_coord_t value); +void lv_style_set_min_height(lv_style_t * style, lv_coord_t value); +void lv_style_set_max_height(lv_style_t * style, lv_coord_t value); +void lv_style_set_x(lv_style_t * style, lv_coord_t value); +void lv_style_set_y(lv_style_t * style, lv_coord_t value); +void lv_style_set_align(lv_style_t * style, lv_align_t value); +void lv_style_set_transform_width(lv_style_t * style, lv_coord_t value); +void lv_style_set_transform_height(lv_style_t * style, lv_coord_t value); +void lv_style_set_translate_x(lv_style_t * style, lv_coord_t value); +void lv_style_set_translate_y(lv_style_t * style, lv_coord_t value); +void lv_style_set_transform_zoom(lv_style_t * style, lv_coord_t value); +void lv_style_set_transform_angle(lv_style_t * style, lv_coord_t value); +void lv_style_set_pad_top(lv_style_t * style, lv_coord_t value); +void lv_style_set_pad_bottom(lv_style_t * style, lv_coord_t value); +void lv_style_set_pad_left(lv_style_t * style, lv_coord_t value); +void lv_style_set_pad_right(lv_style_t * style, lv_coord_t value); +void lv_style_set_pad_row(lv_style_t * style, lv_coord_t value); +void lv_style_set_pad_column(lv_style_t * style, lv_coord_t value); +void lv_style_set_radius(lv_style_t * style, lv_coord_t value); +void lv_style_set_clip_corner(lv_style_t * style, bool value); +void lv_style_set_opa(lv_style_t * style, lv_opa_t value); +void lv_style_set_color_filter_dsc(lv_style_t * style, const lv_color_filter_dsc_t * value); +void lv_style_set_color_filter_opa(lv_style_t * style, lv_opa_t value); +void lv_style_set_anim_time(lv_style_t * style, uint32_t value); +void lv_style_set_anim_speed(lv_style_t * style, uint32_t value); +void lv_style_set_transition(lv_style_t * style, const lv_style_transition_dsc_t * value); +void lv_style_set_blend_mode(lv_style_t * style, lv_blend_mode_t value); +void lv_style_set_layout(lv_style_t * style, uint16_t value); +void lv_style_set_base_dir(lv_style_t * style, lv_base_dir_t value); +void lv_style_set_bg_color(lv_style_t * style, lv_color_t value); +void lv_style_set_bg_color_filtered(lv_style_t * style, lv_color_t value); +void lv_style_set_bg_opa(lv_style_t * style, lv_opa_t value); +void lv_style_set_bg_grad_color(lv_style_t * style, lv_color_t value); +void lv_style_set_bg_grad_color_filtered(lv_style_t * style, lv_color_t value); +void lv_style_set_bg_grad_dir(lv_style_t * style, lv_grad_dir_t value); +void lv_style_set_bg_main_stop(lv_style_t * style, lv_coord_t value); +void lv_style_set_bg_grad_stop(lv_style_t * style, lv_coord_t value); +void lv_style_set_bg_img_src(lv_style_t * style, const void * value); +void lv_style_set_bg_img_opa(lv_style_t * style, lv_opa_t value); +void lv_style_set_bg_img_recolor(lv_style_t * style, lv_color_t value); +void lv_style_set_bg_img_recolor_filtered(lv_style_t * style, lv_color_t value); +void lv_style_set_bg_img_recolor_opa(lv_style_t * style, lv_opa_t value); +void lv_style_set_bg_img_tiled(lv_style_t * style, bool value); +void lv_style_set_border_color(lv_style_t * style, lv_color_t value); +void lv_style_set_border_color_filtered(lv_style_t * style, lv_color_t value); +void lv_style_set_border_opa(lv_style_t * style, lv_opa_t value); +void lv_style_set_border_width(lv_style_t * style, lv_coord_t value); +void lv_style_set_border_side(lv_style_t * style, lv_border_side_t value); +void lv_style_set_border_post(lv_style_t * style, bool value); +void lv_style_set_text_color(lv_style_t * style, lv_color_t value); +void lv_style_set_text_color_filtered(lv_style_t * style, lv_color_t value); +void lv_style_set_text_opa(lv_style_t * style, lv_opa_t value); +void lv_style_set_text_font(lv_style_t * style, const lv_font_t * value); +void lv_style_set_text_letter_space(lv_style_t * style, lv_coord_t value); +void lv_style_set_text_line_space(lv_style_t * style, lv_coord_t value); +void lv_style_set_text_decor(lv_style_t * style, lv_text_decor_t value); +void lv_style_set_text_align(lv_style_t * style, lv_text_align_t value); +void lv_style_set_img_opa(lv_style_t * style, lv_opa_t value); +void lv_style_set_img_recolor(lv_style_t * style, lv_color_t value); +void lv_style_set_img_recolor_filtered(lv_style_t * style, lv_color_t value); +void lv_style_set_img_recolor_opa(lv_style_t * style, lv_opa_t value); +void lv_style_set_outline_width(lv_style_t * style, lv_coord_t value); +void lv_style_set_outline_color(lv_style_t * style, lv_color_t value); +void lv_style_set_outline_color_filtered(lv_style_t * style, lv_color_t value); +void lv_style_set_outline_opa(lv_style_t * style, lv_opa_t value); +void lv_style_set_outline_pad(lv_style_t * style, lv_coord_t value); +void lv_style_set_shadow_width(lv_style_t * style, lv_coord_t value); +void lv_style_set_shadow_ofs_x(lv_style_t * style, lv_coord_t value); +void lv_style_set_shadow_ofs_y(lv_style_t * style, lv_coord_t value); +void lv_style_set_shadow_spread(lv_style_t * style, lv_coord_t value); +void lv_style_set_shadow_color(lv_style_t * style, lv_color_t value); +void lv_style_set_shadow_color_filtered(lv_style_t * style, lv_color_t value); +void lv_style_set_shadow_opa(lv_style_t * style, lv_opa_t value); +void lv_style_set_line_width(lv_style_t * style, lv_coord_t value); +void lv_style_set_line_dash_width(lv_style_t * style, lv_coord_t value); +void lv_style_set_line_dash_gap(lv_style_t * style, lv_coord_t value); +void lv_style_set_line_rounded(lv_style_t * style, lv_coord_t value); +void lv_style_set_line_color(lv_style_t * style, lv_color_t value); +void lv_style_set_line_color_filtered(lv_style_t * style, lv_color_t value); +void lv_style_set_line_opa(lv_style_t * style, lv_opa_t value); +void lv_style_set_arc_width(lv_style_t * style, lv_coord_t value); +void lv_style_set_arc_rounded(lv_style_t * style, lv_coord_t value); +void lv_style_set_arc_color(lv_style_t * style, lv_color_t value); +void lv_style_set_arc_color_filtered(lv_style_t * style, lv_color_t value); +void lv_style_set_arc_opa(lv_style_t * style, lv_opa_t value); +void lv_style_set_arc_img_src(lv_style_t * style, const void * value); #define LV_STYLE_CONST_WIDTH(val) \ { \ .prop = LV_STYLE_WIDTH, \ @@ -14,14 +95,6 @@ static inline void lv_style_set_width(lv_style_t * style, lv_coord_t value) } \ } -static inline void lv_style_set_min_width(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_MIN_WIDTH, v); -} - #define LV_STYLE_CONST_MIN_WIDTH(val) \ { \ .prop = LV_STYLE_MIN_WIDTH, \ @@ -30,14 +103,6 @@ static inline void lv_style_set_min_width(lv_style_t * style, lv_coord_t value) } \ } -static inline void lv_style_set_max_width(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_MAX_WIDTH, v); -} - #define LV_STYLE_CONST_MAX_WIDTH(val) \ { \ .prop = LV_STYLE_MAX_WIDTH, \ @@ -46,14 +111,6 @@ static inline void lv_style_set_max_width(lv_style_t * style, lv_coord_t value) } \ } -static inline void lv_style_set_height(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_HEIGHT, v); -} - #define LV_STYLE_CONST_HEIGHT(val) \ { \ .prop = LV_STYLE_HEIGHT, \ @@ -62,14 +119,6 @@ static inline void lv_style_set_height(lv_style_t * style, lv_coord_t value) } \ } -static inline void lv_style_set_min_height(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_MIN_HEIGHT, v); -} - #define LV_STYLE_CONST_MIN_HEIGHT(val) \ { \ .prop = LV_STYLE_MIN_HEIGHT, \ @@ -78,14 +127,6 @@ static inline void lv_style_set_min_height(lv_style_t * style, lv_coord_t value) } \ } -static inline void lv_style_set_max_height(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_MAX_HEIGHT, v); -} - #define LV_STYLE_CONST_MAX_HEIGHT(val) \ { \ .prop = LV_STYLE_MAX_HEIGHT, \ @@ -94,14 +135,6 @@ static inline void lv_style_set_max_height(lv_style_t * style, lv_coord_t value) } \ } -static inline void lv_style_set_x(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_X, v); -} - #define LV_STYLE_CONST_X(val) \ { \ .prop = LV_STYLE_X, \ @@ -110,14 +143,6 @@ static inline void lv_style_set_x(lv_style_t * style, lv_coord_t value) } \ } -static inline void lv_style_set_y(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_Y, v); -} - #define LV_STYLE_CONST_Y(val) \ { \ .prop = LV_STYLE_Y, \ @@ -126,14 +151,6 @@ static inline void lv_style_set_y(lv_style_t * style, lv_coord_t value) } \ } -static inline void lv_style_set_align(lv_style_t * style, lv_align_t value) -{ - lv_style_value_t v = {0}; - lv_align_t * v2 = (lv_align_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_ALIGN, v); -} - #define LV_STYLE_CONST_ALIGN(val) \ { \ .prop = LV_STYLE_ALIGN, \ @@ -142,14 +159,6 @@ static inline void lv_style_set_align(lv_style_t * style, lv_align_t value) } \ } -static inline void lv_style_set_transform_width(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_TRANSFORM_WIDTH, v); -} - #define LV_STYLE_CONST_TRANSFORM_WIDTH(val) \ { \ .prop = LV_STYLE_TRANSFORM_WIDTH, \ @@ -158,14 +167,6 @@ static inline void lv_style_set_transform_width(lv_style_t * style, lv_coord_t v } \ } -static inline void lv_style_set_transform_height(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_TRANSFORM_HEIGHT, v); -} - #define LV_STYLE_CONST_TRANSFORM_HEIGHT(val) \ { \ .prop = LV_STYLE_TRANSFORM_HEIGHT, \ @@ -174,14 +175,6 @@ static inline void lv_style_set_transform_height(lv_style_t * style, lv_coord_t } \ } -static inline void lv_style_set_translate_x(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_TRANSLATE_X, v); -} - #define LV_STYLE_CONST_TRANSLATE_X(val) \ { \ .prop = LV_STYLE_TRANSLATE_X, \ @@ -190,14 +183,6 @@ static inline void lv_style_set_translate_x(lv_style_t * style, lv_coord_t value } \ } -static inline void lv_style_set_translate_y(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_TRANSLATE_Y, v); -} - #define LV_STYLE_CONST_TRANSLATE_Y(val) \ { \ .prop = LV_STYLE_TRANSLATE_Y, \ @@ -206,14 +191,6 @@ static inline void lv_style_set_translate_y(lv_style_t * style, lv_coord_t value } \ } -static inline void lv_style_set_transform_zoom(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_TRANSFORM_ZOOM, v); -} - #define LV_STYLE_CONST_TRANSFORM_ZOOM(val) \ { \ .prop = LV_STYLE_TRANSFORM_ZOOM, \ @@ -222,14 +199,6 @@ static inline void lv_style_set_transform_zoom(lv_style_t * style, lv_coord_t va } \ } -static inline void lv_style_set_transform_angle(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_TRANSFORM_ANGLE, v); -} - #define LV_STYLE_CONST_TRANSFORM_ANGLE(val) \ { \ .prop = LV_STYLE_TRANSFORM_ANGLE, \ @@ -238,14 +207,6 @@ static inline void lv_style_set_transform_angle(lv_style_t * style, lv_coord_t v } \ } -static inline void lv_style_set_pad_top(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_PAD_TOP, v); -} - #define LV_STYLE_CONST_PAD_TOP(val) \ { \ .prop = LV_STYLE_PAD_TOP, \ @@ -254,14 +215,6 @@ static inline void lv_style_set_pad_top(lv_style_t * style, lv_coord_t value) } \ } -static inline void lv_style_set_pad_bottom(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_PAD_BOTTOM, v); -} - #define LV_STYLE_CONST_PAD_BOTTOM(val) \ { \ .prop = LV_STYLE_PAD_BOTTOM, \ @@ -270,14 +223,6 @@ static inline void lv_style_set_pad_bottom(lv_style_t * style, lv_coord_t value) } \ } -static inline void lv_style_set_pad_left(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_PAD_LEFT, v); -} - #define LV_STYLE_CONST_PAD_LEFT(val) \ { \ .prop = LV_STYLE_PAD_LEFT, \ @@ -286,14 +231,6 @@ static inline void lv_style_set_pad_left(lv_style_t * style, lv_coord_t value) } \ } -static inline void lv_style_set_pad_right(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_PAD_RIGHT, v); -} - #define LV_STYLE_CONST_PAD_RIGHT(val) \ { \ .prop = LV_STYLE_PAD_RIGHT, \ @@ -302,14 +239,6 @@ static inline void lv_style_set_pad_right(lv_style_t * style, lv_coord_t value) } \ } -static inline void lv_style_set_pad_row(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_PAD_ROW, v); -} - #define LV_STYLE_CONST_PAD_ROW(val) \ { \ .prop = LV_STYLE_PAD_ROW, \ @@ -318,14 +247,6 @@ static inline void lv_style_set_pad_row(lv_style_t * style, lv_coord_t value) } \ } -static inline void lv_style_set_pad_column(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_PAD_COLUMN, v); -} - #define LV_STYLE_CONST_PAD_COLUMN(val) \ { \ .prop = LV_STYLE_PAD_COLUMN, \ @@ -334,14 +255,6 @@ static inline void lv_style_set_pad_column(lv_style_t * style, lv_coord_t value) } \ } -static inline void lv_style_set_radius(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_RADIUS, v); -} - #define LV_STYLE_CONST_RADIUS(val) \ { \ .prop = LV_STYLE_RADIUS, \ @@ -350,14 +263,6 @@ static inline void lv_style_set_radius(lv_style_t * style, lv_coord_t value) } \ } -static inline void lv_style_set_clip_corner(lv_style_t * style, bool value) -{ - lv_style_value_t v = {0}; - bool * v2 = (bool *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_CLIP_CORNER, v); -} - #define LV_STYLE_CONST_CLIP_CORNER(val) \ { \ .prop = LV_STYLE_CLIP_CORNER, \ @@ -366,14 +271,6 @@ static inline void lv_style_set_clip_corner(lv_style_t * style, bool value) } \ } -static inline void lv_style_set_opa(lv_style_t * style, lv_opa_t value) -{ - lv_style_value_t v = {0}; - lv_opa_t * v2 = (lv_opa_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_OPA, v); -} - #define LV_STYLE_CONST_OPA(val) \ { \ .prop = LV_STYLE_OPA, \ @@ -382,14 +279,6 @@ static inline void lv_style_set_opa(lv_style_t * style, lv_opa_t value) } \ } -static inline void lv_style_set_color_filter_dsc(lv_style_t * style, const lv_color_filter_dsc_t * value) -{ - lv_style_value_t v = {0}; - const lv_color_filter_dsc_t * * v2 = (const lv_color_filter_dsc_t * *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_COLOR_FILTER_DSC, v); -} - #define LV_STYLE_CONST_COLOR_FILTER_DSC(val) \ { \ .prop = LV_STYLE_COLOR_FILTER_DSC, \ @@ -398,14 +287,6 @@ static inline void lv_style_set_color_filter_dsc(lv_style_t * style, const lv_co } \ } -static inline void lv_style_set_color_filter_opa(lv_style_t * style, lv_opa_t value) -{ - lv_style_value_t v = {0}; - lv_opa_t * v2 = (lv_opa_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_COLOR_FILTER_OPA, v); -} - #define LV_STYLE_CONST_COLOR_FILTER_OPA(val) \ { \ .prop = LV_STYLE_COLOR_FILTER_OPA, \ @@ -414,14 +295,6 @@ static inline void lv_style_set_color_filter_opa(lv_style_t * style, lv_opa_t va } \ } -static inline void lv_style_set_anim_time(lv_style_t * style, uint32_t value) -{ - lv_style_value_t v = {0}; - uint32_t * v2 = (uint32_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_ANIM_TIME, v); -} - #define LV_STYLE_CONST_ANIM_TIME(val) \ { \ .prop = LV_STYLE_ANIM_TIME, \ @@ -430,14 +303,6 @@ static inline void lv_style_set_anim_time(lv_style_t * style, uint32_t value) } \ } -static inline void lv_style_set_anim_speed(lv_style_t * style, uint32_t value) -{ - lv_style_value_t v = {0}; - uint32_t * v2 = (uint32_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_ANIM_SPEED, v); -} - #define LV_STYLE_CONST_ANIM_SPEED(val) \ { \ .prop = LV_STYLE_ANIM_SPEED, \ @@ -446,14 +311,6 @@ static inline void lv_style_set_anim_speed(lv_style_t * style, uint32_t value) } \ } -static inline void lv_style_set_transition(lv_style_t * style, const lv_style_transition_dsc_t * value) -{ - lv_style_value_t v = {0}; - const lv_style_transition_dsc_t * * v2 = (const lv_style_transition_dsc_t * *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_TRANSITION, v); -} - #define LV_STYLE_CONST_TRANSITION(val) \ { \ .prop = LV_STYLE_TRANSITION, \ @@ -462,14 +319,6 @@ static inline void lv_style_set_transition(lv_style_t * style, const lv_style_tr } \ } -static inline void lv_style_set_blend_mode(lv_style_t * style, lv_blend_mode_t value) -{ - lv_style_value_t v = {0}; - lv_blend_mode_t * v2 = (lv_blend_mode_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BLEND_MODE, v); -} - #define LV_STYLE_CONST_BLEND_MODE(val) \ { \ .prop = LV_STYLE_BLEND_MODE, \ @@ -478,14 +327,6 @@ static inline void lv_style_set_blend_mode(lv_style_t * style, lv_blend_mode_t v } \ } -static inline void lv_style_set_layout(lv_style_t * style, uint16_t value) -{ - lv_style_value_t v = {0}; - uint16_t * v2 = (uint16_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_LAYOUT, v); -} - #define LV_STYLE_CONST_LAYOUT(val) \ { \ .prop = LV_STYLE_LAYOUT, \ @@ -494,14 +335,6 @@ static inline void lv_style_set_layout(lv_style_t * style, uint16_t value) } \ } -static inline void lv_style_set_base_dir(lv_style_t * style, lv_base_dir_t value) -{ - lv_style_value_t v = {0}; - lv_base_dir_t * v2 = (lv_base_dir_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BASE_DIR, v); -} - #define LV_STYLE_CONST_BASE_DIR(val) \ { \ .prop = LV_STYLE_BASE_DIR, \ @@ -510,14 +343,6 @@ static inline void lv_style_set_base_dir(lv_style_t * style, lv_base_dir_t value } \ } -static inline void lv_style_set_bg_color(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BG_COLOR, v); -} - #define LV_STYLE_CONST_BG_COLOR(val) \ { \ .prop = LV_STYLE_BG_COLOR, \ @@ -526,14 +351,6 @@ static inline void lv_style_set_bg_color(lv_style_t * style, lv_color_t value) } \ } -static inline void lv_style_set_bg_color_filtered(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BG_COLOR_FILTERED, v); -} - #define LV_STYLE_CONST_BG_COLOR_FILTERED(val) \ { \ .prop = LV_STYLE_BG_COLOR_FILTERED, \ @@ -542,14 +359,6 @@ static inline void lv_style_set_bg_color_filtered(lv_style_t * style, lv_color_t } \ } -static inline void lv_style_set_bg_opa(lv_style_t * style, lv_opa_t value) -{ - lv_style_value_t v = {0}; - lv_opa_t * v2 = (lv_opa_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BG_OPA, v); -} - #define LV_STYLE_CONST_BG_OPA(val) \ { \ .prop = LV_STYLE_BG_OPA, \ @@ -558,14 +367,6 @@ static inline void lv_style_set_bg_opa(lv_style_t * style, lv_opa_t value) } \ } -static inline void lv_style_set_bg_grad_color(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BG_GRAD_COLOR, v); -} - #define LV_STYLE_CONST_BG_GRAD_COLOR(val) \ { \ .prop = LV_STYLE_BG_GRAD_COLOR, \ @@ -574,14 +375,6 @@ static inline void lv_style_set_bg_grad_color(lv_style_t * style, lv_color_t val } \ } -static inline void lv_style_set_bg_grad_color_filtered(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BG_GRAD_COLOR_FILTERED, v); -} - #define LV_STYLE_CONST_BG_GRAD_COLOR_FILTERED(val) \ { \ .prop = LV_STYLE_BG_GRAD_COLOR_FILTERED, \ @@ -590,14 +383,6 @@ static inline void lv_style_set_bg_grad_color_filtered(lv_style_t * style, lv_co } \ } -static inline void lv_style_set_bg_grad_dir(lv_style_t * style, lv_grad_dir_t value) -{ - lv_style_value_t v = {0}; - lv_grad_dir_t * v2 = (lv_grad_dir_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BG_GRAD_DIR, v); -} - #define LV_STYLE_CONST_BG_GRAD_DIR(val) \ { \ .prop = LV_STYLE_BG_GRAD_DIR, \ @@ -606,14 +391,6 @@ static inline void lv_style_set_bg_grad_dir(lv_style_t * style, lv_grad_dir_t va } \ } -static inline void lv_style_set_bg_main_stop(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BG_MAIN_STOP, v); -} - #define LV_STYLE_CONST_BG_MAIN_STOP(val) \ { \ .prop = LV_STYLE_BG_MAIN_STOP, \ @@ -622,14 +399,6 @@ static inline void lv_style_set_bg_main_stop(lv_style_t * style, lv_coord_t valu } \ } -static inline void lv_style_set_bg_grad_stop(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BG_GRAD_STOP, v); -} - #define LV_STYLE_CONST_BG_GRAD_STOP(val) \ { \ .prop = LV_STYLE_BG_GRAD_STOP, \ @@ -638,14 +407,6 @@ static inline void lv_style_set_bg_grad_stop(lv_style_t * style, lv_coord_t valu } \ } -static inline void lv_style_set_bg_img_src(lv_style_t * style, const void * value) -{ - lv_style_value_t v = {0}; - const void * * v2 = (const void * *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BG_IMG_SRC, v); -} - #define LV_STYLE_CONST_BG_IMG_SRC(val) \ { \ .prop = LV_STYLE_BG_IMG_SRC, \ @@ -654,14 +415,6 @@ static inline void lv_style_set_bg_img_src(lv_style_t * style, const void * valu } \ } -static inline void lv_style_set_bg_img_opa(lv_style_t * style, lv_opa_t value) -{ - lv_style_value_t v = {0}; - lv_opa_t * v2 = (lv_opa_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BG_IMG_OPA, v); -} - #define LV_STYLE_CONST_BG_IMG_OPA(val) \ { \ .prop = LV_STYLE_BG_IMG_OPA, \ @@ -670,14 +423,6 @@ static inline void lv_style_set_bg_img_opa(lv_style_t * style, lv_opa_t value) } \ } -static inline void lv_style_set_bg_img_recolor(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BG_IMG_RECOLOR, v); -} - #define LV_STYLE_CONST_BG_IMG_RECOLOR(val) \ { \ .prop = LV_STYLE_BG_IMG_RECOLOR, \ @@ -686,14 +431,6 @@ static inline void lv_style_set_bg_img_recolor(lv_style_t * style, lv_color_t va } \ } -static inline void lv_style_set_bg_img_recolor_filtered(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BG_IMG_RECOLOR_FILTERED, v); -} - #define LV_STYLE_CONST_BG_IMG_RECOLOR_FILTERED(val) \ { \ .prop = LV_STYLE_BG_IMG_RECOLOR_FILTERED, \ @@ -702,14 +439,6 @@ static inline void lv_style_set_bg_img_recolor_filtered(lv_style_t * style, lv_c } \ } -static inline void lv_style_set_bg_img_recolor_opa(lv_style_t * style, lv_opa_t value) -{ - lv_style_value_t v = {0}; - lv_opa_t * v2 = (lv_opa_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BG_IMG_RECOLOR_OPA, v); -} - #define LV_STYLE_CONST_BG_IMG_RECOLOR_OPA(val) \ { \ .prop = LV_STYLE_BG_IMG_RECOLOR_OPA, \ @@ -718,14 +447,6 @@ static inline void lv_style_set_bg_img_recolor_opa(lv_style_t * style, lv_opa_t } \ } -static inline void lv_style_set_bg_img_tiled(lv_style_t * style, bool value) -{ - lv_style_value_t v = {0}; - bool * v2 = (bool *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BG_IMG_TILED, v); -} - #define LV_STYLE_CONST_BG_IMG_TILED(val) \ { \ .prop = LV_STYLE_BG_IMG_TILED, \ @@ -734,14 +455,6 @@ static inline void lv_style_set_bg_img_tiled(lv_style_t * style, bool value) } \ } -static inline void lv_style_set_border_color(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BORDER_COLOR, v); -} - #define LV_STYLE_CONST_BORDER_COLOR(val) \ { \ .prop = LV_STYLE_BORDER_COLOR, \ @@ -750,14 +463,6 @@ static inline void lv_style_set_border_color(lv_style_t * style, lv_color_t valu } \ } -static inline void lv_style_set_border_color_filtered(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BORDER_COLOR_FILTERED, v); -} - #define LV_STYLE_CONST_BORDER_COLOR_FILTERED(val) \ { \ .prop = LV_STYLE_BORDER_COLOR_FILTERED, \ @@ -766,14 +471,6 @@ static inline void lv_style_set_border_color_filtered(lv_style_t * style, lv_col } \ } -static inline void lv_style_set_border_opa(lv_style_t * style, lv_opa_t value) -{ - lv_style_value_t v = {0}; - lv_opa_t * v2 = (lv_opa_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BORDER_OPA, v); -} - #define LV_STYLE_CONST_BORDER_OPA(val) \ { \ .prop = LV_STYLE_BORDER_OPA, \ @@ -782,14 +479,6 @@ static inline void lv_style_set_border_opa(lv_style_t * style, lv_opa_t value) } \ } -static inline void lv_style_set_border_width(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BORDER_WIDTH, v); -} - #define LV_STYLE_CONST_BORDER_WIDTH(val) \ { \ .prop = LV_STYLE_BORDER_WIDTH, \ @@ -798,14 +487,6 @@ static inline void lv_style_set_border_width(lv_style_t * style, lv_coord_t valu } \ } -static inline void lv_style_set_border_side(lv_style_t * style, lv_border_side_t value) -{ - lv_style_value_t v = {0}; - lv_border_side_t * v2 = (lv_border_side_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BORDER_SIDE, v); -} - #define LV_STYLE_CONST_BORDER_SIDE(val) \ { \ .prop = LV_STYLE_BORDER_SIDE, \ @@ -814,14 +495,6 @@ static inline void lv_style_set_border_side(lv_style_t * style, lv_border_side_t } \ } -static inline void lv_style_set_border_post(lv_style_t * style, bool value) -{ - lv_style_value_t v = {0}; - bool * v2 = (bool *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_BORDER_POST, v); -} - #define LV_STYLE_CONST_BORDER_POST(val) \ { \ .prop = LV_STYLE_BORDER_POST, \ @@ -830,14 +503,6 @@ static inline void lv_style_set_border_post(lv_style_t * style, bool value) } \ } -static inline void lv_style_set_text_color(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_TEXT_COLOR, v); -} - #define LV_STYLE_CONST_TEXT_COLOR(val) \ { \ .prop = LV_STYLE_TEXT_COLOR, \ @@ -846,14 +511,6 @@ static inline void lv_style_set_text_color(lv_style_t * style, lv_color_t value) } \ } -static inline void lv_style_set_text_color_filtered(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_TEXT_COLOR_FILTERED, v); -} - #define LV_STYLE_CONST_TEXT_COLOR_FILTERED(val) \ { \ .prop = LV_STYLE_TEXT_COLOR_FILTERED, \ @@ -862,14 +519,6 @@ static inline void lv_style_set_text_color_filtered(lv_style_t * style, lv_color } \ } -static inline void lv_style_set_text_opa(lv_style_t * style, lv_opa_t value) -{ - lv_style_value_t v = {0}; - lv_opa_t * v2 = (lv_opa_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_TEXT_OPA, v); -} - #define LV_STYLE_CONST_TEXT_OPA(val) \ { \ .prop = LV_STYLE_TEXT_OPA, \ @@ -878,14 +527,6 @@ static inline void lv_style_set_text_opa(lv_style_t * style, lv_opa_t value) } \ } -static inline void lv_style_set_text_font(lv_style_t * style, const lv_font_t * value) -{ - lv_style_value_t v = {0}; - const lv_font_t * * v2 = (const lv_font_t * *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_TEXT_FONT, v); -} - #define LV_STYLE_CONST_TEXT_FONT(val) \ { \ .prop = LV_STYLE_TEXT_FONT, \ @@ -894,14 +535,6 @@ static inline void lv_style_set_text_font(lv_style_t * style, const lv_font_t * } \ } -static inline void lv_style_set_text_letter_space(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_TEXT_LETTER_SPACE, v); -} - #define LV_STYLE_CONST_TEXT_LETTER_SPACE(val) \ { \ .prop = LV_STYLE_TEXT_LETTER_SPACE, \ @@ -910,14 +543,6 @@ static inline void lv_style_set_text_letter_space(lv_style_t * style, lv_coord_t } \ } -static inline void lv_style_set_text_line_space(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_TEXT_LINE_SPACE, v); -} - #define LV_STYLE_CONST_TEXT_LINE_SPACE(val) \ { \ .prop = LV_STYLE_TEXT_LINE_SPACE, \ @@ -926,14 +551,6 @@ static inline void lv_style_set_text_line_space(lv_style_t * style, lv_coord_t v } \ } -static inline void lv_style_set_text_decor(lv_style_t * style, lv_text_decor_t value) -{ - lv_style_value_t v = {0}; - lv_text_decor_t * v2 = (lv_text_decor_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_TEXT_DECOR, v); -} - #define LV_STYLE_CONST_TEXT_DECOR(val) \ { \ .prop = LV_STYLE_TEXT_DECOR, \ @@ -942,14 +559,6 @@ static inline void lv_style_set_text_decor(lv_style_t * style, lv_text_decor_t v } \ } -static inline void lv_style_set_text_align(lv_style_t * style, lv_text_align_t value) -{ - lv_style_value_t v = {0}; - lv_text_align_t * v2 = (lv_text_align_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_TEXT_ALIGN, v); -} - #define LV_STYLE_CONST_TEXT_ALIGN(val) \ { \ .prop = LV_STYLE_TEXT_ALIGN, \ @@ -958,14 +567,6 @@ static inline void lv_style_set_text_align(lv_style_t * style, lv_text_align_t v } \ } -static inline void lv_style_set_img_opa(lv_style_t * style, lv_opa_t value) -{ - lv_style_value_t v = {0}; - lv_opa_t * v2 = (lv_opa_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_IMG_OPA, v); -} - #define LV_STYLE_CONST_IMG_OPA(val) \ { \ .prop = LV_STYLE_IMG_OPA, \ @@ -974,14 +575,6 @@ static inline void lv_style_set_img_opa(lv_style_t * style, lv_opa_t value) } \ } -static inline void lv_style_set_img_recolor(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_IMG_RECOLOR, v); -} - #define LV_STYLE_CONST_IMG_RECOLOR(val) \ { \ .prop = LV_STYLE_IMG_RECOLOR, \ @@ -990,14 +583,6 @@ static inline void lv_style_set_img_recolor(lv_style_t * style, lv_color_t value } \ } -static inline void lv_style_set_img_recolor_filtered(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_IMG_RECOLOR_FILTERED, v); -} - #define LV_STYLE_CONST_IMG_RECOLOR_FILTERED(val) \ { \ .prop = LV_STYLE_IMG_RECOLOR_FILTERED, \ @@ -1006,14 +591,6 @@ static inline void lv_style_set_img_recolor_filtered(lv_style_t * style, lv_colo } \ } -static inline void lv_style_set_img_recolor_opa(lv_style_t * style, lv_opa_t value) -{ - lv_style_value_t v = {0}; - lv_opa_t * v2 = (lv_opa_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_IMG_RECOLOR_OPA, v); -} - #define LV_STYLE_CONST_IMG_RECOLOR_OPA(val) \ { \ .prop = LV_STYLE_IMG_RECOLOR_OPA, \ @@ -1022,14 +599,6 @@ static inline void lv_style_set_img_recolor_opa(lv_style_t * style, lv_opa_t val } \ } -static inline void lv_style_set_outline_width(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_OUTLINE_WIDTH, v); -} - #define LV_STYLE_CONST_OUTLINE_WIDTH(val) \ { \ .prop = LV_STYLE_OUTLINE_WIDTH, \ @@ -1038,14 +607,6 @@ static inline void lv_style_set_outline_width(lv_style_t * style, lv_coord_t val } \ } -static inline void lv_style_set_outline_color(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_OUTLINE_COLOR, v); -} - #define LV_STYLE_CONST_OUTLINE_COLOR(val) \ { \ .prop = LV_STYLE_OUTLINE_COLOR, \ @@ -1054,14 +615,6 @@ static inline void lv_style_set_outline_color(lv_style_t * style, lv_color_t val } \ } -static inline void lv_style_set_outline_color_filtered(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_OUTLINE_COLOR_FILTERED, v); -} - #define LV_STYLE_CONST_OUTLINE_COLOR_FILTERED(val) \ { \ .prop = LV_STYLE_OUTLINE_COLOR_FILTERED, \ @@ -1070,14 +623,6 @@ static inline void lv_style_set_outline_color_filtered(lv_style_t * style, lv_co } \ } -static inline void lv_style_set_outline_opa(lv_style_t * style, lv_opa_t value) -{ - lv_style_value_t v = {0}; - lv_opa_t * v2 = (lv_opa_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_OUTLINE_OPA, v); -} - #define LV_STYLE_CONST_OUTLINE_OPA(val) \ { \ .prop = LV_STYLE_OUTLINE_OPA, \ @@ -1086,14 +631,6 @@ static inline void lv_style_set_outline_opa(lv_style_t * style, lv_opa_t value) } \ } -static inline void lv_style_set_outline_pad(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_OUTLINE_PAD, v); -} - #define LV_STYLE_CONST_OUTLINE_PAD(val) \ { \ .prop = LV_STYLE_OUTLINE_PAD, \ @@ -1102,14 +639,6 @@ static inline void lv_style_set_outline_pad(lv_style_t * style, lv_coord_t value } \ } -static inline void lv_style_set_shadow_width(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_SHADOW_WIDTH, v); -} - #define LV_STYLE_CONST_SHADOW_WIDTH(val) \ { \ .prop = LV_STYLE_SHADOW_WIDTH, \ @@ -1118,14 +647,6 @@ static inline void lv_style_set_shadow_width(lv_style_t * style, lv_coord_t valu } \ } -static inline void lv_style_set_shadow_ofs_x(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_SHADOW_OFS_X, v); -} - #define LV_STYLE_CONST_SHADOW_OFS_X(val) \ { \ .prop = LV_STYLE_SHADOW_OFS_X, \ @@ -1134,14 +655,6 @@ static inline void lv_style_set_shadow_ofs_x(lv_style_t * style, lv_coord_t valu } \ } -static inline void lv_style_set_shadow_ofs_y(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_SHADOW_OFS_Y, v); -} - #define LV_STYLE_CONST_SHADOW_OFS_Y(val) \ { \ .prop = LV_STYLE_SHADOW_OFS_Y, \ @@ -1150,14 +663,6 @@ static inline void lv_style_set_shadow_ofs_y(lv_style_t * style, lv_coord_t valu } \ } -static inline void lv_style_set_shadow_spread(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_SHADOW_SPREAD, v); -} - #define LV_STYLE_CONST_SHADOW_SPREAD(val) \ { \ .prop = LV_STYLE_SHADOW_SPREAD, \ @@ -1166,14 +671,6 @@ static inline void lv_style_set_shadow_spread(lv_style_t * style, lv_coord_t val } \ } -static inline void lv_style_set_shadow_color(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_SHADOW_COLOR, v); -} - #define LV_STYLE_CONST_SHADOW_COLOR(val) \ { \ .prop = LV_STYLE_SHADOW_COLOR, \ @@ -1182,14 +679,6 @@ static inline void lv_style_set_shadow_color(lv_style_t * style, lv_color_t valu } \ } -static inline void lv_style_set_shadow_color_filtered(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_SHADOW_COLOR_FILTERED, v); -} - #define LV_STYLE_CONST_SHADOW_COLOR_FILTERED(val) \ { \ .prop = LV_STYLE_SHADOW_COLOR_FILTERED, \ @@ -1198,14 +687,6 @@ static inline void lv_style_set_shadow_color_filtered(lv_style_t * style, lv_col } \ } -static inline void lv_style_set_shadow_opa(lv_style_t * style, lv_opa_t value) -{ - lv_style_value_t v = {0}; - lv_opa_t * v2 = (lv_opa_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_SHADOW_OPA, v); -} - #define LV_STYLE_CONST_SHADOW_OPA(val) \ { \ .prop = LV_STYLE_SHADOW_OPA, \ @@ -1214,14 +695,6 @@ static inline void lv_style_set_shadow_opa(lv_style_t * style, lv_opa_t value) } \ } -static inline void lv_style_set_line_width(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_LINE_WIDTH, v); -} - #define LV_STYLE_CONST_LINE_WIDTH(val) \ { \ .prop = LV_STYLE_LINE_WIDTH, \ @@ -1230,14 +703,6 @@ static inline void lv_style_set_line_width(lv_style_t * style, lv_coord_t value) } \ } -static inline void lv_style_set_line_dash_width(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_LINE_DASH_WIDTH, v); -} - #define LV_STYLE_CONST_LINE_DASH_WIDTH(val) \ { \ .prop = LV_STYLE_LINE_DASH_WIDTH, \ @@ -1246,14 +711,6 @@ static inline void lv_style_set_line_dash_width(lv_style_t * style, lv_coord_t v } \ } -static inline void lv_style_set_line_dash_gap(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_LINE_DASH_GAP, v); -} - #define LV_STYLE_CONST_LINE_DASH_GAP(val) \ { \ .prop = LV_STYLE_LINE_DASH_GAP, \ @@ -1262,14 +719,6 @@ static inline void lv_style_set_line_dash_gap(lv_style_t * style, lv_coord_t val } \ } -static inline void lv_style_set_line_rounded(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_LINE_ROUNDED, v); -} - #define LV_STYLE_CONST_LINE_ROUNDED(val) \ { \ .prop = LV_STYLE_LINE_ROUNDED, \ @@ -1278,14 +727,6 @@ static inline void lv_style_set_line_rounded(lv_style_t * style, lv_coord_t valu } \ } -static inline void lv_style_set_line_color(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_LINE_COLOR, v); -} - #define LV_STYLE_CONST_LINE_COLOR(val) \ { \ .prop = LV_STYLE_LINE_COLOR, \ @@ -1294,14 +735,6 @@ static inline void lv_style_set_line_color(lv_style_t * style, lv_color_t value) } \ } -static inline void lv_style_set_line_color_filtered(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_LINE_COLOR_FILTERED, v); -} - #define LV_STYLE_CONST_LINE_COLOR_FILTERED(val) \ { \ .prop = LV_STYLE_LINE_COLOR_FILTERED, \ @@ -1310,14 +743,6 @@ static inline void lv_style_set_line_color_filtered(lv_style_t * style, lv_color } \ } -static inline void lv_style_set_line_opa(lv_style_t * style, lv_opa_t value) -{ - lv_style_value_t v = {0}; - lv_opa_t * v2 = (lv_opa_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_LINE_OPA, v); -} - #define LV_STYLE_CONST_LINE_OPA(val) \ { \ .prop = LV_STYLE_LINE_OPA, \ @@ -1326,14 +751,6 @@ static inline void lv_style_set_line_opa(lv_style_t * style, lv_opa_t value) } \ } -static inline void lv_style_set_arc_width(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_ARC_WIDTH, v); -} - #define LV_STYLE_CONST_ARC_WIDTH(val) \ { \ .prop = LV_STYLE_ARC_WIDTH, \ @@ -1342,14 +759,6 @@ static inline void lv_style_set_arc_width(lv_style_t * style, lv_coord_t value) } \ } -static inline void lv_style_set_arc_rounded(lv_style_t * style, lv_coord_t value) -{ - lv_style_value_t v = {0}; - lv_coord_t * v2 = (lv_coord_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_ARC_ROUNDED, v); -} - #define LV_STYLE_CONST_ARC_ROUNDED(val) \ { \ .prop = LV_STYLE_ARC_ROUNDED, \ @@ -1358,14 +767,6 @@ static inline void lv_style_set_arc_rounded(lv_style_t * style, lv_coord_t value } \ } -static inline void lv_style_set_arc_color(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_ARC_COLOR, v); -} - #define LV_STYLE_CONST_ARC_COLOR(val) \ { \ .prop = LV_STYLE_ARC_COLOR, \ @@ -1374,14 +775,6 @@ static inline void lv_style_set_arc_color(lv_style_t * style, lv_color_t value) } \ } -static inline void lv_style_set_arc_color_filtered(lv_style_t * style, lv_color_t value) -{ - lv_style_value_t v = {0}; - lv_color_t * v2 = (lv_color_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_ARC_COLOR_FILTERED, v); -} - #define LV_STYLE_CONST_ARC_COLOR_FILTERED(val) \ { \ .prop = LV_STYLE_ARC_COLOR_FILTERED, \ @@ -1390,14 +783,6 @@ static inline void lv_style_set_arc_color_filtered(lv_style_t * style, lv_color_ } \ } -static inline void lv_style_set_arc_opa(lv_style_t * style, lv_opa_t value) -{ - lv_style_value_t v = {0}; - lv_opa_t * v2 = (lv_opa_t *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_ARC_OPA, v); -} - #define LV_STYLE_CONST_ARC_OPA(val) \ { \ .prop = LV_STYLE_ARC_OPA, \ @@ -1406,14 +791,6 @@ static inline void lv_style_set_arc_opa(lv_style_t * style, lv_opa_t value) } \ } -static inline void lv_style_set_arc_img_src(lv_style_t * style, const void * value) -{ - lv_style_value_t v = {0}; - const void * * v2 = (const void * *) &v; - *v2 = value; - lv_style_set_prop(style, LV_STYLE_ARC_IMG_SRC, v); -} - #define LV_STYLE_CONST_ARC_IMG_SRC(val) \ { \ .prop = LV_STYLE_ARC_IMG_SRC, \