lv_obj_style_gen.hΒΆ
Functions
-
static inline int32_t lv_obj_get_style_width(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets width of Widget. Pixel, percentage and
LV_SIZE_CONTENTvalues can be used. Percentage values are relative to the width of the parent's content area. Default: Widget dependent, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_min_width(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets a minimal width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_max_width(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets a maximal width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area. Default: LV_COORD_MAX, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_height(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets height of Widget. Pixel, percentage and
LV_SIZE_CONTENTcan be used. Percentage values are relative to the height of the parent's content area. Default: Widget dependent, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_min_height(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets a minimal height. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_max_height(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets a maximal height. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area. Default: LV_COORD_MAX, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_length(const lv_obj_t *obj, lv_part_t part)ΒΆ
Its meaning depends on the type of Widget. For example in case of lv_scale it means the length of the ticks. Default: 0, inherited: No, layout: No, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_x(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get X coordinate of Widget considering the
alignsetting. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area. Default: 0, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_y(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get Y coordinate of Widget considering the
alignsetting. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area. Default: 0, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_align_t lv_obj_get_style_align(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get the alignment which tells from which point of the parent the X and Y coordinates should be interpreted. Possible values are:
LV_ALIGN_DEFAULT,LV_ALIGN_TOP_LEFT/MID/RIGHT,LV_ALIGN_BOTTOM_LEFT/MID/RIGHT,LV_ALIGN_LEFT/RIGHT_MID,LV_ALIGN_CENTER.LV_ALIGN_DEFAULTmeansLV_ALIGN_TOP_LEFTwith LTR base direction andLV_ALIGN_TOP_RIGHTwith RTL base direction. Default:LV_ALIGN_DEFAULT, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_transform_width(const lv_obj_t *obj, lv_part_t part)ΒΆ
Make Widget wider on both sides with this value. Pixel and percentage (with
lv_pct(x)) values can be used. Percentage values are relative to Widget's width. Default: 0, inherited: No, layout: No, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_transform_height(const lv_obj_t *obj, lv_part_t part)ΒΆ
Make Widget higher on both sides with this value. Pixel and percentage (with
lv_pct(x)) values can be used. Percentage values are relative to Widget's height. Default: 0, inherited: No, layout: No, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_translate_x(const lv_obj_t *obj, lv_part_t part)ΒΆ
Move Widget with this value in X direction. Applied after layouts, aligns and other positioning. Pixel and percentage (with
lv_pct(x)) values can be used. Percentage values are relative to Widget's width. Default: 0, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_translate_y(const lv_obj_t *obj, lv_part_t part)ΒΆ
Move Widget with this value in Y direction. Applied after layouts, aligns and other positioning. Pixel and percentage (with
lv_pct(x)) values can be used. Percentage values are relative to Widget's height. Default: 0, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_translate_radial(const lv_obj_t *obj, lv_part_t part)ΒΆ
Move object around the centre of the parent object (e.g. around the circumference of a scale). Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_transform_scale_x(const lv_obj_t *obj, lv_part_t part)ΒΆ
Zoom Widget horizontally. The value 256 (or
LV_SCALE_NONE) means normal size, 128 half size, 512 double size, and so on. Default: 0, inherited: No, layout: Yes, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_transform_scale_y(const lv_obj_t *obj, lv_part_t part)ΒΆ
Zoom Widget vertically. The value 256 (or
LV_SCALE_NONE) means normal size, 128 half size, 512 double size, and so on. Default: 0, inherited: No, layout: Yes, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_transform_rotation(const lv_obj_t *obj, lv_part_t part)ΒΆ
Rotate Widget. The value is interpreted in 0.1 degree units. E.g. 450 means 45 deg. Default: 0, inherited: No, layout: Yes, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_transform_pivot_x(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get pivot point's X coordinate for transformations. Relative to Widget's top left corner. Default: 0, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_transform_pivot_y(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get pivot point's Y coordinate for transformations. Relative to Widget's top left corner. Default: 0, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_transform_skew_x(const lv_obj_t *obj, lv_part_t part)ΒΆ
Skew Widget horizontally. The value is interpreted in 0.1 degree units. E.g. 450 means 45 deg. Default: 0, inherited: No, layout: Yes, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_transform_skew_y(const lv_obj_t *obj, lv_part_t part)ΒΆ
Skew Widget vertically. The value is interpreted in 0.1 degree units. E.g. 450 means 45 deg. Default: 0, inherited: No, layout: Yes, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_pad_top(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets the padding on the top. It makes the content area smaller in this direction. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_pad_bottom(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets the padding on the bottom. It makes the content area smaller in this direction. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_pad_left(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets the padding on the left. It makes the content area smaller in this direction. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_pad_right(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets the padding on the right. It makes the content area smaller in this direction. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_pad_row(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets the padding between the rows. Used by the layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_pad_column(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets the padding between the columns. Used by the layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_pad_radial(const lv_obj_t *obj, lv_part_t part)ΒΆ
Pad text labels away from the scale ticks/remainder of the
LV_PART_. Default: 0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_margin_top(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets margin on the top. Widget will keep this space from its siblings in layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_margin_bottom(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets margin on the bottom. Widget will keep this space from its siblings in layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_margin_left(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets margin on the left. Widget will keep this space from its siblings in layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_margin_right(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets margin on the right. Widget will keep this space from its siblings in layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_bg_color(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get background color of Widget. Default:
0xffffff, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_bg_color_filtered(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get background color of Widget. Default:
0xffffff, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_bg_opa(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get opacity of the background. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_TRANSP, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_bg_grad_color(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get gradient color of the background. Used only if
grad_diris notLV_GRAD_DIR_NONE. Default:0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_bg_grad_color_filtered(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get gradient color of the background. Used only if
grad_diris notLV_GRAD_DIR_NONE. Default:0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_grad_dir_t lv_obj_get_style_bg_grad_dir(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get direction of the gradient of the background. Possible values are
LV_GRAD_DIR_NONE/HOR/VER. Default:LV_GRAD_DIR_NONE, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_bg_main_stop(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get point from which background color should start for gradients. 0 means to top/left side, 255 the bottom/right side, 128 the center, and so on. Default: 0, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_bg_grad_stop(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get point from which background's gradient color should start. 0 means to top/left side, 255 the bottom/right side, 128 the center, and so on. Default: 255, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_bg_main_opa(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get opacity of the first gradient color. Default: 255, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_bg_grad_opa(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get opacity of the second gradient color. Default: 255, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline const lv_grad_dsc_t *lv_obj_get_style_bg_grad(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get gradient definition. The pointed instance must exist while Widget is alive. NULL to disable. It wraps
BG_GRAD_COLOR,BG_GRAD_DIR,BG_MAIN_STOPandBG_GRAD_STOPinto one descriptor and allows creating gradients with more colors as well. If it's set other gradient related properties will be ignored. Default:NULL, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline const void *lv_obj_get_style_bg_image_src(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get a background image. Can be a pointer to
lv_image_dsc_t, a path to a file or anLV_SYMBOL_.... Default:NULL, inherited: No, layout: No, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_bg_image_opa(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get opacity of the background image. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_COVER, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_bg_image_recolor(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get a color to mix to the background image. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_bg_image_recolor_filtered(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get a color to mix to the background image. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_bg_image_recolor_opa(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get intensity of background image recoloring. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans no mixing, 255,LV_OPA_100orLV_OPA_COVERmeans full recoloring, other values or LV_OPA_10, LV_OPA_20, etc are interpreted proportionally. Default:LV_OPA_TRANSP, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline bool lv_obj_get_style_bg_image_tiled(const lv_obj_t *obj, lv_part_t part)ΒΆ
If enabled the background image will be tiled. Possible values are
trueorfalse. Default: 0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_border_color(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get color of the border. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_border_color_filtered(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get color of the border. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_border_opa(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get opacity of the border. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_COVER, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_border_width(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get width of the border. Only pixel values can be used. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_border_side_t lv_obj_get_style_border_side(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get only which side(s) the border should be drawn. Possible values are
LV_BORDER_SIDE_NONE/TOP/BOTTOM/LEFT/RIGHT/INTERNAL. OR-ed values can be used as well, e.g.LV_BORDER_SIDE_TOP | LV_BORDER_SIDE_LEFT. Default:LV_BORDER_SIDE_FULL, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline bool lv_obj_get_style_border_post(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets whether the border should be drawn before or after the children are drawn.
true: after children,false: before children. Default: 0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_outline_width(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get width of outline in pixels. Default: 0, inherited: No, layout: No, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_outline_color(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get color of outline. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_outline_color_filtered(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get color of outline. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_outline_opa(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get opacity of outline. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_COVER, inherited: No, layout: No, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_outline_pad(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get padding of outline, i.e. the gap between Widget and the outline. Default: 0, inherited: No, layout: No, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_shadow_width(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get width of the shadow in pixels. The value should be >= 0. Default: 0, inherited: No, layout: No, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_shadow_offset_x(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get an offset on the shadow in pixels in X direction. Default: 0, inherited: No, layout: No, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_shadow_offset_y(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get an offset on the shadow in pixels in Y direction. Default: 0, inherited: No, layout: No, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_shadow_spread(const lv_obj_t *obj, lv_part_t part)ΒΆ
Make shadow calculation to use a larger or smaller rectangle as base. The value can be in pixels to make the area larger/smaller. Default: 0, inherited: No, layout: No, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_shadow_color(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get color of shadow. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_shadow_color_filtered(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get color of shadow. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_shadow_opa(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get opacity of shadow. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_COVER, inherited: No, layout: No, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_image_opa(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get opacity of an image. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_COVER, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_image_recolor(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get color to mix with the image. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_image_recolor_filtered(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get color to mix with the image. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_image_recolor_opa(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get intensity of color mixing. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default: 0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline const lv_image_colorkey_t *lv_obj_get_style_image_colorkey(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get image colorkey definition. The lv_image_colorkey_t contains two color values:
high_colorandlow_color. the color of pixels ranging fromlow_colortohigh_colorwill be transparent. Default:NULL, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_line_width(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get width of lines in pixels. Default: 0, inherited: No, layout: No, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_line_dash_width(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get width of dashes in pixels. Note that dash works only on horizontal and vertical lines. Default: 0, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_line_dash_gap(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get gap between dashes in pixels. Note that dash works only on horizontal and vertical lines. Default: 0, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline bool lv_obj_get_style_line_rounded(const lv_obj_t *obj, lv_part_t part)ΒΆ
Make end points of the lines rounded.
true: rounded,false: perpendicular line ending. Default: 0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_line_color(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get color of lines. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_line_color_filtered(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get color of lines. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_line_opa(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get opacity of lines. Default:
LV_OPA_COVER, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_arc_width(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get width (thickness) of arcs in pixels. Default: 0, inherited: No, layout: No, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline bool lv_obj_get_style_arc_rounded(const lv_obj_t *obj, lv_part_t part)ΒΆ
Make end points of arcs rounded.
true: rounded,false: perpendicular line ending. Default: 0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_arc_color(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get color of arc. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_arc_color_filtered(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get color of arc. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_arc_opa(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get opacity of arcs. Default:
LV_OPA_COVER, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline const void *lv_obj_get_style_arc_image_src(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get an image from which arc will be masked out. It's useful to display complex effects on the arcs. Can be a pointer to
lv_image_dsc_tor a path to a file. Default:NULL, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_text_color(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets color of text. Default:
0x000000, inherited: Yes, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_text_color_filtered(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets color of text. Default:
0x000000, inherited: Yes, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_text_opa(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get opacity of text. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_COVER, inherited: Yes, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline const lv_font_t *lv_obj_get_style_text_font(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get font of text (a pointer
lv_font_t *). Default:LV_FONT_DEFAULT, inherited: Yes, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_text_letter_space(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get letter space in pixels. Default: 0, inherited: Yes, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_text_line_space(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get line space in pixels. Default: 0, inherited: Yes, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_text_decor_t lv_obj_get_style_text_decor(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get decoration for the text. Possible values are
LV_TEXT_DECOR_NONE/UNDERLINE/STRIKETHROUGH. OR-ed values can be used as well. Default:LV_TEXT_DECOR_NONE, inherited: Yes, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_text_align_t lv_obj_get_style_text_align(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get how to align the lines of the text. Note that it doesn't align the Widget itself, only the lines inside the Widget. Possible values are
LV_TEXT_ALIGN_LEFT/CENTER/RIGHT/AUTO.LV_TEXT_ALIGN_AUTOdetect the text base direction and uses left or right alignment accordingly. Default:LV_TEXT_ALIGN_AUTO, inherited: Yes, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_text_outline_stroke_color(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets the color of letter outline stroke. Default:
0x000000, inherited: Yes, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_text_outline_stroke_color_filtered(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets the color of letter outline stroke. Default:
0x000000, inherited: Yes, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_text_outline_stroke_width(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get the letter outline stroke width in pixels. Default: 0, inherited: Yes, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_text_outline_stroke_opa(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get the opacity of the letter outline stroke. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_COVER, inherited: Yes, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_blur_radius(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets the intensity of blurring. Applied on each lv_part separately before the children are rendered. Default:
0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline bool lv_obj_get_style_blur_backdrop(const lv_obj_t *obj, lv_part_t part)ΒΆ
If
truethe background of the widget will be blurred. The part should have < 100% opacity to make it visible. Iffalsethe given part will be blurred when it's rendered but before drawing the children. Default:false, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_blur_quality_t lv_obj_get_style_blur_quality(const lv_obj_t *obj, lv_part_t part)ΒΆ
Setting to
LV_BLUR_QUALITY_SPEEDthe blurring algorithm will prefer speed over quality.LV_BLUR_QUALITY_PRECISIONwill force using higher quality but slower blur. WithLV_BLUR_QUALITY_AUTOthe quality will be selected automatically. Default:LV_BLUR_QUALITY_AUTO, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_drop_shadow_radius(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets the intensity of blurring. Applied on each lv_part separately before the children are rendered. Default:
0, inherited: No, layout: No, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_drop_shadow_offset_x(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get an offset on the shadow in pixels in X direction. Default:
0, inherited: No, layout: No, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_drop_shadow_offset_y(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get an offset on the shadow in pixels in Y direction. Default:
0, inherited: No, layout: No, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_drop_shadow_color(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get the color of the shadow. Default:
0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_drop_shadow_color_filtered(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get the color of the shadow. Default:
0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_drop_shadow_opa(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get the opacity of the shadow. Default:
0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_blur_quality_t lv_obj_get_style_drop_shadow_quality(const lv_obj_t *obj, lv_part_t part)ΒΆ
Setting to
LV_BLUR_QUALITY_SPEEDthe blurring algorithm will prefer speed over quality.LV_BLUR_QUALITY_PRECISIONwill force using higher quality but slower blur. WithLV_BLUR_QUALITY_AUTOthe quality will be selected automatically. Default:LV_BLUR_QUALITY_PRECISION, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_radius(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get radius on every corner. The value is interpreted in pixels (>= 0) or
LV_RADIUS_CIRCLEfor max radius. Default: 0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_radial_offset(const lv_obj_t *obj, lv_part_t part)ΒΆ
Move start point of object (e.g. scale tick) radially. Default: 0, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline bool lv_obj_get_style_clip_corner(const lv_obj_t *obj, lv_part_t part)ΒΆ
Enable clipping of content that overflows rounded corners of parent Widget. Can be
trueorfalse. Default: 0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_opa(const lv_obj_t *obj, lv_part_t part)ΒΆ
Scale down all opacity values of the Widget by this factor. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_COVER, inherited: Yes, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_opa_layered(const lv_obj_t *obj, lv_part_t part)ΒΆ
First draw Widget on the layer, then scale down layer opacity factor. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_COVER, inherited: Yes, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline const lv_color_filter_dsc_t *lv_obj_get_style_color_filter_dsc(const lv_obj_t *obj, lv_part_t part)ΒΆ
Mix a color with all colors of the Widget. Default:
NULL, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_color_filter_opa(const lv_obj_t *obj, lv_part_t part)ΒΆ
The intensity of mixing of color filter. Default:
LV_OPA_TRANSP, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_color_t lv_obj_get_style_recolor(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get a color to mix to the obj. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_opa_t lv_obj_get_style_recolor_opa(const lv_obj_t *obj, lv_part_t part)ΒΆ
Gets the intensity of color mixing. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent. A value of 255,LV_OPA_100orLV_OPA_COVERmeans fully opaque. Intermediate values like LV_OPA_10, LV_OPA_20, etc result in semi-transparency. Default:LV_OPA_TRANSP, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline const lv_anim_t *lv_obj_get_style_anim(const lv_obj_t *obj, lv_part_t part)ΒΆ
Animation template for Widget's animation. Should be a pointer to
lv_anim_t. The animation parameters are widget specific, e.g. animation time could be the E.g. blink time of the cursor on the Text Area or scroll time of a roller. See Widgets' documentation to learn more. Default:NULL, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline uint32_t lv_obj_get_style_anim_duration(const lv_obj_t *obj, lv_part_t part)ΒΆ
Animation duration in milliseconds. Its meaning is widget specific. E.g. blink time of the cursor on the Text Area or scroll time of a roller. See Widgets' documentation to learn more. Default: 0, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline const lv_style_transition_dsc_t *lv_obj_get_style_transition(const lv_obj_t *obj, lv_part_t part)ΒΆ
An initialized
lv_style_transition_dsc_tto describe a transition. Default:NULL, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_blend_mode_t lv_obj_get_style_blend_mode(const lv_obj_t *obj, lv_part_t part)ΒΆ
Describes how to blend the colors to the background. Possible values are
LV_BLEND_MODE_NORMAL/ADDITIVE/SUBTRACTIVE/MULTIPLY/DIFFERENCE. Default:LV_BLEND_MODE_NORMAL, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline uint16_t lv_obj_get_style_layout(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get layout of Widget. Children will be repositioned and resized according to policies set for the layout. For possible values see documentation of the layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_base_dir_t lv_obj_get_style_base_dir(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get base direction of Widget. Possible values are
LV_BIDI_DIR_LTR/RTL/AUTO. Default:LV_BASE_DIR_AUTO, inherited: Yes, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline const void *lv_obj_get_style_bitmap_mask_src(const lv_obj_t *obj, lv_part_t part)ΒΆ
If set, a layer will be created for the widget and the layer will be masked with this A8 bitmap mask. Default:
NULL, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline uint32_t lv_obj_get_style_rotary_sensitivity(const lv_obj_t *obj, lv_part_t part)ΒΆ
Adjust sensitivity for rotary encoders in 1/256 unit. It means, 128: slow down the rotary to half, 512: speeds up to double, 256: no change. Default:
256, inherited: Yes, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_flex_flow_t lv_obj_get_style_flex_flow(const lv_obj_t *obj, lv_part_t part)ΒΆ
Defines in which direction the flex layout should arrange the children. Default:
LV_FLEX_FLOW_NONE, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_flex_align_t lv_obj_get_style_flex_main_place(const lv_obj_t *obj, lv_part_t part)ΒΆ
Defines how to align the children in the direction of flex flow. Default:
LV_FLEX_ALIGN_NONE, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_flex_align_t lv_obj_get_style_flex_cross_place(const lv_obj_t *obj, lv_part_t part)ΒΆ
Defines how to align the children perpendicular to the direction of flex flow. Default:
LV_FLEX_ALIGN_NONE, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_flex_align_t lv_obj_get_style_flex_track_place(const lv_obj_t *obj, lv_part_t part)ΒΆ
Defines how to align the tracks of the flow. Default:
LV_FLEX_ALIGN_NONE, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline uint8_t lv_obj_get_style_flex_grow(const lv_obj_t *obj, lv_part_t part)ΒΆ
Defines how much space to take proportionally from the free space of the Widget's track. Default:
0, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline const int32_t *lv_obj_get_style_grid_column_dsc_array(const lv_obj_t *obj, lv_part_t part)ΒΆ
An array to describe the columns of the grid. Should be LV_GRID_TEMPLATE_LAST terminated. Default:
NULL, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_grid_align_t lv_obj_get_style_grid_column_align(const lv_obj_t *obj, lv_part_t part)ΒΆ
Defines how to distribute the columns. Default:
LV_GRID_ALIGN_START, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline const int32_t *lv_obj_get_style_grid_row_dsc_array(const lv_obj_t *obj, lv_part_t part)ΒΆ
An array to describe the rows of the grid. Should be LV_GRID_TEMPLATE_LAST terminated. Default:
NULL, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_grid_align_t lv_obj_get_style_grid_row_align(const lv_obj_t *obj, lv_part_t part)ΒΆ
Defines how to distribute the rows. Default:
LV_GRID_ALIGN_START, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_grid_cell_column_pos(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get column in which Widget should be placed. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_grid_align_t lv_obj_get_style_grid_cell_x_align(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get how to align Widget horizontally. Default:
LV_GRID_ALIGN_START, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_grid_cell_column_span(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get how many columns Widget should span. Needs to be >= 1. Default: 1, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_grid_cell_row_pos(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get row in which Widget should be placed. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline lv_grid_align_t lv_obj_get_style_grid_cell_y_align(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get how to align Widget vertically. Default:
LV_GRID_ALIGN_START, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
static inline int32_t lv_obj_get_style_grid_cell_row_span(const lv_obj_t *obj, lv_part_t part)ΒΆ
Get how many rows Widget should span. Needs to be >= 1. Default: 1, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
part β One of the
LV_PART_...enum values
-
void lv_obj_set_style_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Sets width of Widget. Pixel, percentage and
LV_SIZE_CONTENTvalues can be used. Percentage values are relative to the width of the parent's content area. Default: Widget dependent, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_min_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Sets a minimal width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_max_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Sets a maximal width. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area. Default: LV_COORD_MAX, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_height(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Sets height of Widget. Pixel, percentage and
LV_SIZE_CONTENTcan be used. Percentage values are relative to the height of the parent's content area. Default: Widget dependent, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_min_height(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Sets a minimal height. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_max_height(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Sets a maximal height. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area. Default: LV_COORD_MAX, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_length(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Its meaning depends on the type of Widget. For example in case of lv_scale it means the length of the ticks. Default: 0, inherited: No, layout: No, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_x(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set X coordinate of Widget considering the
alignsetting. Pixel and percentage values can be used. Percentage values are relative to the width of the parent's content area. Default: 0, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_y(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set Y coordinate of Widget considering the
alignsetting. Pixel and percentage values can be used. Percentage values are relative to the height of the parent's content area. Default: 0, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_align(lv_obj_t *obj, lv_align_t value, lv_style_selector_t selector)ΒΆ
Set the alignment which tells from which point of the parent the X and Y coordinates should be interpreted. Possible values are:
LV_ALIGN_DEFAULT,LV_ALIGN_TOP_LEFT/MID/RIGHT,LV_ALIGN_BOTTOM_LEFT/MID/RIGHT,LV_ALIGN_LEFT/RIGHT_MID,LV_ALIGN_CENTER.LV_ALIGN_DEFAULTmeansLV_ALIGN_TOP_LEFTwith LTR base direction andLV_ALIGN_TOP_RIGHTwith RTL base direction. Default:LV_ALIGN_DEFAULT, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_transform_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Make Widget wider on both sides with this value. Pixel and percentage (with
lv_pct(x)) values can be used. Percentage values are relative to Widget's width. Default: 0, inherited: No, layout: No, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_transform_height(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Make Widget higher on both sides with this value. Pixel and percentage (with
lv_pct(x)) values can be used. Percentage values are relative to Widget's height. Default: 0, inherited: No, layout: No, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_translate_x(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Move Widget with this value in X direction. Applied after layouts, aligns and other positioning. Pixel and percentage (with
lv_pct(x)) values can be used. Percentage values are relative to Widget's width. Default: 0, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_translate_y(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Move Widget with this value in Y direction. Applied after layouts, aligns and other positioning. Pixel and percentage (with
lv_pct(x)) values can be used. Percentage values are relative to Widget's height. Default: 0, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_translate_radial(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Move object around the centre of the parent object (e.g. around the circumference of a scale). Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_transform_scale_x(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Zoom Widget horizontally. The value 256 (or
LV_SCALE_NONE) means normal size, 128 half size, 512 double size, and so on. Default: 0, inherited: No, layout: Yes, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_transform_scale_y(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Zoom Widget vertically. The value 256 (or
LV_SCALE_NONE) means normal size, 128 half size, 512 double size, and so on. Default: 0, inherited: No, layout: Yes, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_transform_rotation(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Rotate Widget. The value is interpreted in 0.1 degree units. E.g. 450 means 45 deg. Default: 0, inherited: No, layout: Yes, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_transform_pivot_x(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set pivot point's X coordinate for transformations. Relative to Widget's top left corner. Default: 0, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_transform_pivot_y(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set pivot point's Y coordinate for transformations. Relative to Widget's top left corner. Default: 0, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_transform_skew_x(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Skew Widget horizontally. The value is interpreted in 0.1 degree units. E.g. 450 means 45 deg. Default: 0, inherited: No, layout: Yes, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_transform_skew_y(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Skew Widget vertically. The value is interpreted in 0.1 degree units. E.g. 450 means 45 deg. Default: 0, inherited: No, layout: Yes, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_pad_top(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Sets the padding on the top. It makes the content area smaller in this direction. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_pad_bottom(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Sets the padding on the bottom. It makes the content area smaller in this direction. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_pad_left(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Sets the padding on the left. It makes the content area smaller in this direction. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_pad_right(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Sets the padding on the right. It makes the content area smaller in this direction. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_pad_row(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Sets the padding between the rows. Used by the layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_pad_column(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Sets the padding between the columns. Used by the layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_pad_radial(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Pad text labels away from the scale ticks/remainder of the
LV_PART_. Default: 0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_margin_top(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Sets margin on the top. Widget will keep this space from its siblings in layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_margin_bottom(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Sets margin on the bottom. Widget will keep this space from its siblings in layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_margin_left(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Sets margin on the left. Widget will keep this space from its siblings in layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_margin_right(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Sets margin on the right. Widget will keep this space from its siblings in layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_bg_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)ΒΆ
Set background color of Widget. Default:
0xffffff, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Color to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_bg_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
Set opacity of the background. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_TRANSP, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_bg_grad_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)ΒΆ
Set gradient color of the background. Used only if
grad_diris notLV_GRAD_DIR_NONE. Default:0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Color to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_bg_grad_dir(lv_obj_t *obj, lv_grad_dir_t value, lv_style_selector_t selector)ΒΆ
Set direction of the gradient of the background. Possible values are
LV_GRAD_DIR_NONE/HOR/VER. Default:LV_GRAD_DIR_NONE, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_bg_main_stop(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set point from which background color should start for gradients. 0 means to top/left side, 255 the bottom/right side, 128 the center, and so on. Default: 0, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_bg_grad_stop(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set point from which background's gradient color should start. 0 means to top/left side, 255 the bottom/right side, 128 the center, and so on. Default: 255, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_bg_main_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
Set opacity of the first gradient color. Default: 255, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_bg_grad_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
Set opacity of the second gradient color. Default: 255, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_bg_grad(lv_obj_t *obj, const lv_grad_dsc_t *value, lv_style_selector_t selector)ΒΆ
Set gradient definition. The pointed instance must exist while Widget is alive. NULL to disable. It wraps
BG_GRAD_COLOR,BG_GRAD_DIR,BG_MAIN_STOPandBG_GRAD_STOPinto one descriptor and allows creating gradients with more colors as well. If it's set other gradient related properties will be ignored. Default:NULL, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Pointer to gradient descriptor
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_bg_image_src(lv_obj_t *obj, const void *value, lv_style_selector_t selector)ΒΆ
Set a background image. Can be a pointer to
lv_image_dsc_t, a path to a file or anLV_SYMBOL_.... Default:NULL, inherited: No, layout: No, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
value β Pointer to image source
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_bg_image_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
Set opacity of the background image. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_COVER, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_bg_image_recolor(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)ΒΆ
Set a color to mix to the background image. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Color to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_bg_image_recolor_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
Set intensity of background image recoloring. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans no mixing, 255,LV_OPA_100orLV_OPA_COVERmeans full recoloring, other values or LV_OPA_10, LV_OPA_20, etc are interpreted proportionally. Default:LV_OPA_TRANSP, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_bg_image_tiled(lv_obj_t *obj, bool value, lv_style_selector_t selector)ΒΆ
If enabled the background image will be tiled. Possible values are
trueorfalse. Default: 0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_border_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)ΒΆ
Set color of the border. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Color to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_border_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
Set opacity of the border. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_COVER, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_border_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set width of the border. Only pixel values can be used. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_border_side(lv_obj_t *obj, lv_border_side_t value, lv_style_selector_t selector)ΒΆ
Set only which side(s) the border should be drawn. Possible values are
LV_BORDER_SIDE_NONE/TOP/BOTTOM/LEFT/RIGHT/INTERNAL. OR-ed values can be used as well, e.g.LV_BORDER_SIDE_TOP | LV_BORDER_SIDE_LEFT. Default:LV_BORDER_SIDE_FULL, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_border_post(lv_obj_t *obj, bool value, lv_style_selector_t selector)ΒΆ
Sets whether the border should be drawn before or after the children are drawn.
true: after children,false: before children. Default: 0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_outline_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set width of outline in pixels. Default: 0, inherited: No, layout: No, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_outline_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)ΒΆ
Set color of outline. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Color to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_outline_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
Set opacity of outline. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_COVER, inherited: No, layout: No, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_outline_pad(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set padding of outline, i.e. the gap between Widget and the outline. Default: 0, inherited: No, layout: No, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_shadow_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set width of the shadow in pixels. The value should be >= 0. Default: 0, inherited: No, layout: No, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_shadow_offset_x(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set an offset on the shadow in pixels in X direction. Default: 0, inherited: No, layout: No, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_shadow_offset_y(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set an offset on the shadow in pixels in Y direction. Default: 0, inherited: No, layout: No, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_shadow_spread(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Make shadow calculation to use a larger or smaller rectangle as base. The value can be in pixels to make the area larger/smaller. Default: 0, inherited: No, layout: No, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_shadow_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)ΒΆ
Set color of shadow. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Color to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_shadow_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
Set opacity of shadow. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_COVER, inherited: No, layout: No, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_image_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
Set opacity of an image. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_COVER, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_image_recolor(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)ΒΆ
Set color to mix with the image. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Color to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_image_recolor_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
Set intensity of color mixing. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default: 0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_image_colorkey(lv_obj_t *obj, const lv_image_colorkey_t *value, lv_style_selector_t selector)ΒΆ
Set image colorkey definition. The lv_image_colorkey_t contains two color values:
high_colorandlow_color. the color of pixels ranging fromlow_colortohigh_colorwill be transparent. Default:NULL, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Pointer to image color key
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_line_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set width of lines in pixels. Default: 0, inherited: No, layout: No, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_line_dash_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set width of dashes in pixels. Note that dash works only on horizontal and vertical lines. Default: 0, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_line_dash_gap(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set gap between dashes in pixels. Note that dash works only on horizontal and vertical lines. Default: 0, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_line_rounded(lv_obj_t *obj, bool value, lv_style_selector_t selector)ΒΆ
Make end points of the lines rounded.
true: rounded,false: perpendicular line ending. Default: 0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_line_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)ΒΆ
Set color of lines. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Color to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_line_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
Set opacity of lines. Default:
LV_OPA_COVER, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_arc_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set width (thickness) of arcs in pixels. Default: 0, inherited: No, layout: No, ext. draw: Yes.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_arc_rounded(lv_obj_t *obj, bool value, lv_style_selector_t selector)ΒΆ
Make end points of arcs rounded.
true: rounded,false: perpendicular line ending. Default: 0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_arc_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)ΒΆ
Set color of arc. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Color to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_arc_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
Set opacity of arcs. Default:
LV_OPA_COVER, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_arc_image_src(lv_obj_t *obj, const void *value, lv_style_selector_t selector)ΒΆ
Set an image from which arc will be masked out. It's useful to display complex effects on the arcs. Can be a pointer to
lv_image_dsc_tor a path to a file. Default:NULL, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Pointer to image source
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_text_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)ΒΆ
Sets color of text. Default:
0x000000, inherited: Yes, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Color to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_text_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
Set opacity of text. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_COVER, inherited: Yes, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_text_font(lv_obj_t *obj, const lv_font_t *value, lv_style_selector_t selector)ΒΆ
Set font of text (a pointer
lv_font_t *). Default:LV_FONT_DEFAULT, inherited: Yes, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Pointer to font
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_text_letter_space(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set letter space in pixels. Default: 0, inherited: Yes, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_text_line_space(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set line space in pixels. Default: 0, inherited: Yes, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_text_decor(lv_obj_t *obj, lv_text_decor_t value, lv_style_selector_t selector)ΒΆ
Set decoration for the text. Possible values are
LV_TEXT_DECOR_NONE/UNDERLINE/STRIKETHROUGH. OR-ed values can be used as well. Default:LV_TEXT_DECOR_NONE, inherited: Yes, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_text_align(lv_obj_t *obj, lv_text_align_t value, lv_style_selector_t selector)ΒΆ
Set how to align the lines of the text. Note that it doesn't align the Widget itself, only the lines inside the Widget. Possible values are
LV_TEXT_ALIGN_LEFT/CENTER/RIGHT/AUTO.LV_TEXT_ALIGN_AUTOdetect the text base direction and uses left or right alignment accordingly. Default:LV_TEXT_ALIGN_AUTO, inherited: Yes, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_text_outline_stroke_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)ΒΆ
Sets the color of letter outline stroke. Default:
0x000000, inherited: Yes, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Color to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_text_outline_stroke_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set the letter outline stroke width in pixels. Default: 0, inherited: Yes, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_text_outline_stroke_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
Set the opacity of the letter outline stroke. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_COVER, inherited: Yes, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_blur_radius(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Sets the intensity of blurring. Applied on each lv_part separately before the children are rendered. Default:
0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_blur_backdrop(lv_obj_t *obj, bool value, lv_style_selector_t selector)ΒΆ
If
truethe background of the widget will be blurred. The part should have < 100% opacity to make it visible. Iffalsethe given part will be blurred when it's rendered but before drawing the children. Default:false, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_blur_quality(lv_obj_t *obj, lv_blur_quality_t value, lv_style_selector_t selector)ΒΆ
Setting to
LV_BLUR_QUALITY_SPEEDthe blurring algorithm will prefer speed over quality.LV_BLUR_QUALITY_PRECISIONwill force using higher quality but slower blur. WithLV_BLUR_QUALITY_AUTOthe quality will be selected automatically. Default:LV_BLUR_QUALITY_AUTO, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_drop_shadow_radius(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Sets the intensity of blurring. Applied on each lv_part separately before the children are rendered. Default:
0, inherited: No, layout: No, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_drop_shadow_offset_x(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set an offset on the shadow in pixels in X direction. Default:
0, inherited: No, layout: No, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_drop_shadow_offset_y(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set an offset on the shadow in pixels in Y direction. Default:
0, inherited: No, layout: No, ext. draw: Yes.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_drop_shadow_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)ΒΆ
Set the color of the shadow. Default:
0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Color to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_drop_shadow_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
Set the opacity of the shadow. Default:
0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_drop_shadow_quality(lv_obj_t *obj, lv_blur_quality_t value, lv_style_selector_t selector)ΒΆ
Setting to
LV_BLUR_QUALITY_SPEEDthe blurring algorithm will prefer speed over quality.LV_BLUR_QUALITY_PRECISIONwill force using higher quality but slower blur. WithLV_BLUR_QUALITY_AUTOthe quality will be selected automatically. Default:LV_BLUR_QUALITY_PRECISION, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_radius(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set radius on every corner. The value is interpreted in pixels (>= 0) or
LV_RADIUS_CIRCLEfor max radius. Default: 0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_radial_offset(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Move start point of object (e.g. scale tick) radially. Default: 0, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_clip_corner(lv_obj_t *obj, bool value, lv_style_selector_t selector)ΒΆ
Enable clipping of content that overflows rounded corners of parent Widget. Can be
trueorfalse. Default: 0, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
Scale down all opacity values of the Widget by this factor. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_COVER, inherited: Yes, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_opa_layered(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
First draw Widget on the layer, then scale down layer opacity factor. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent, 255,LV_OPA_100orLV_OPA_COVERmeans fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default:LV_OPA_COVER, inherited: Yes, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_color_filter_dsc(lv_obj_t *obj, const lv_color_filter_dsc_t *value, lv_style_selector_t selector)ΒΆ
Mix a color with all colors of the Widget. Default:
NULL, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Pointer to color-filter descriptor
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_color_filter_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
The intensity of mixing of color filter. Default:
LV_OPA_TRANSP, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_recolor(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)ΒΆ
Set a color to mix to the obj. Default:
0x000000, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Color to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_recolor_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)ΒΆ
Sets the intensity of color mixing. Value 0,
LV_OPA_0orLV_OPA_TRANSPmeans fully transparent. A value of 255,LV_OPA_100orLV_OPA_COVERmeans fully opaque. Intermediate values like LV_OPA_10, LV_OPA_20, etc result in semi-transparency. Default:LV_OPA_TRANSP, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_anim(lv_obj_t *obj, const lv_anim_t *value, lv_style_selector_t selector)ΒΆ
Animation template for Widget's animation. Should be a pointer to
lv_anim_t. The animation parameters are widget specific, e.g. animation time could be the E.g. blink time of the cursor on the Text Area or scroll time of a roller. See Widgets' documentation to learn more. Default:NULL, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Pointer to animation descriptor
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_anim_duration(lv_obj_t *obj, uint32_t value, lv_style_selector_t selector)ΒΆ
Animation duration in milliseconds. Its meaning is widget specific. E.g. blink time of the cursor on the Text Area or scroll time of a roller. See Widgets' documentation to learn more. Default: 0, inherited: No, layout: No, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_transition(lv_obj_t *obj, const lv_style_transition_dsc_t *value, lv_style_selector_t selector)ΒΆ
An initialized
lv_style_transition_dsc_tto describe a transition. Default:NULL, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Pointer to transition descriptor
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_blend_mode(lv_obj_t *obj, lv_blend_mode_t value, lv_style_selector_t selector)ΒΆ
Describes how to blend the colors to the background. Possible values are
LV_BLEND_MODE_NORMAL/ADDITIVE/SUBTRACTIVE/MULTIPLY/DIFFERENCE. Default:LV_BLEND_MODE_NORMAL, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_layout(lv_obj_t *obj, uint16_t value, lv_style_selector_t selector)ΒΆ
Set layout of Widget. Children will be repositioned and resized according to policies set for the layout. For possible values see documentation of the layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_base_dir(lv_obj_t *obj, lv_base_dir_t value, lv_style_selector_t selector)ΒΆ
Set base direction of Widget. Possible values are
LV_BIDI_DIR_LTR/RTL/AUTO. Default:LV_BASE_DIR_AUTO, inherited: Yes, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_bitmap_mask_src(lv_obj_t *obj, const void *value, lv_style_selector_t selector)ΒΆ
If set, a layer will be created for the widget and the layer will be masked with this A8 bitmap mask. Default:
NULL, inherited: No, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Pointer to A8 bitmap mask
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_rotary_sensitivity(lv_obj_t *obj, uint32_t value, lv_style_selector_t selector)ΒΆ
Adjust sensitivity for rotary encoders in 1/256 unit. It means, 128: slow down the rotary to half, 512: speeds up to double, 256: no change. Default:
256, inherited: Yes, layout: No, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_flex_flow(lv_obj_t *obj, lv_flex_flow_t value, lv_style_selector_t selector)ΒΆ
Defines in which direction the flex layout should arrange the children. Default:
LV_FLEX_FLOW_NONE, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_flex_main_place(lv_obj_t *obj, lv_flex_align_t value, lv_style_selector_t selector)ΒΆ
Defines how to align the children in the direction of flex flow. Default:
LV_FLEX_ALIGN_NONE, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_flex_cross_place(lv_obj_t *obj, lv_flex_align_t value, lv_style_selector_t selector)ΒΆ
Defines how to align the children perpendicular to the direction of flex flow. Default:
LV_FLEX_ALIGN_NONE, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_flex_track_place(lv_obj_t *obj, lv_flex_align_t value, lv_style_selector_t selector)ΒΆ
Defines how to align the tracks of the flow. Default:
LV_FLEX_ALIGN_NONE, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_flex_grow(lv_obj_t *obj, uint8_t value, lv_style_selector_t selector)ΒΆ
Defines how much space to take proportionally from the free space of the Widget's track. Default:
0, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_grid_column_dsc_array(lv_obj_t *obj, const int32_t *value, lv_style_selector_t selector)ΒΆ
An array to describe the columns of the grid. Should be LV_GRID_TEMPLATE_LAST terminated. Default:
NULL, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Pointer to grid-column descriptor array
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_grid_column_align(lv_obj_t *obj, lv_grid_align_t value, lv_style_selector_t selector)ΒΆ
Defines how to distribute the columns. Default:
LV_GRID_ALIGN_START, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_grid_row_dsc_array(lv_obj_t *obj, const int32_t *value, lv_style_selector_t selector)ΒΆ
An array to describe the rows of the grid. Should be LV_GRID_TEMPLATE_LAST terminated. Default:
NULL, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Pointer to grid-row descriptor array
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_grid_row_align(lv_obj_t *obj, lv_grid_align_t value, lv_style_selector_t selector)ΒΆ
Defines how to distribute the rows. Default:
LV_GRID_ALIGN_START, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_grid_cell_column_pos(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set column in which Widget should be placed. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_grid_cell_x_align(lv_obj_t *obj, lv_grid_align_t value, lv_style_selector_t selector)ΒΆ
Set how to align Widget horizontally. Default:
LV_GRID_ALIGN_START, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_grid_cell_column_span(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set how many columns Widget should span. Needs to be >= 1. Default: 1, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_grid_cell_row_pos(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set row in which Widget should be placed. Default: 0, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_grid_cell_y_align(lv_obj_t *obj, lv_grid_align_t value, lv_style_selector_t selector)ΒΆ
Set how to align Widget vertically. Default:
LV_GRID_ALIGN_START, inherited: No, layout: Yes, ext. draw: No.- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
-
void lv_obj_set_style_grid_cell_row_span(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)ΒΆ
Set how many rows Widget should span. Needs to be >= 1. Default: 1, inherited: No, layout: Yes, ext. draw: No.
- Parameters:
obj β Pointer to Widget
value β Value to submit
selector β A joint type for
lv_part_tandlv_state_t. Example values:0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRESSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED