lv_obj_style_gen.h
API reference for lv_obj_style_gen.h
Functions
lv_obj_set_style_width
Sets width of Widget. Pixel, percentage and LV_SIZE_CONTENT values 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.
void lv_obj_set_style_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_min_width
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.
void lv_obj_set_style_min_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_max_width
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.
void lv_obj_set_style_max_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_height
Sets height of Widget. Pixel, percentage and LV_SIZE_CONTENT can 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.
void lv_obj_set_style_height(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_min_height
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.
void lv_obj_set_style_min_height(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_max_height
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.
void lv_obj_set_style_max_height(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_length
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.
void lv_obj_set_style_length(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_x
Set X coordinate of Widget considering the align setting. 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.
void lv_obj_set_style_x(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_y
Set Y coordinate of Widget considering the align setting. 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.
void lv_obj_set_style_y(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_align
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_DEFAULT means LV_ALIGN_TOP_LEFT with LTR base direction and LV_ALIGN_TOP_RIGHT with RTL base direction. Default: LV_ALIGN_DEFAULT, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_align(lv_obj_t *obj, lv_align_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_align_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_transform_width
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.
void lv_obj_set_style_transform_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_transform_height
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.
void lv_obj_set_style_transform_height(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_translate_x
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.
void lv_obj_set_style_translate_x(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_translate_y
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.
void lv_obj_set_style_translate_y(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_translate_radial
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.
void lv_obj_set_style_translate_radial(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_transform_scale_x
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.
void lv_obj_set_style_transform_scale_x(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_transform_scale_y
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.
void lv_obj_set_style_transform_scale_y(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_transform_rotation
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.
void lv_obj_set_style_transform_rotation(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_transform_pivot_x
Set pivot point's X coordinate for transformations. Relative to Widget's top left corner. Default: 0, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_transform_pivot_x(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_transform_pivot_y
Set pivot point's Y coordinate for transformations. Relative to Widget's top left corner. Default: 0, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_transform_pivot_y(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_transform_skew_x
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.
void lv_obj_set_style_transform_skew_x(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_transform_skew_y
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.
void lv_obj_set_style_transform_skew_y(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_pad_top
Sets the padding on the top. It makes the content area smaller in this direction. Default: 0, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_pad_top(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_pad_bottom
Sets the padding on the bottom. It makes the content area smaller in this direction. Default: 0, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_pad_bottom(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_pad_left
Sets the padding on the left. It makes the content area smaller in this direction. Default: 0, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_pad_left(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_pad_right
Sets the padding on the right. It makes the content area smaller in this direction. Default: 0, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_pad_right(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_pad_row
Sets the padding between the rows. Used by the layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_pad_row(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_pad_column
Sets the padding between the columns. Used by the layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_pad_column(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_pad_radial
Pad text labels away from the scale ticks/remainder of the LV_PART_. Default: 0, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_pad_radial(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_margin_top
Sets margin on the top. Widget will keep this space from its siblings in layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_margin_top(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_margin_bottom
Sets margin on the bottom. Widget will keep this space from its siblings in layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_margin_bottom(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_margin_left
Sets margin on the left. Widget will keep this space from its siblings in layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_margin_left(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_margin_right
Sets margin on the right. Widget will keep this space from its siblings in layouts. Default: 0, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_margin_right(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_bg_color
Set background color of Widget. Default: 0xffffff, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_bg_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_color_t | Color to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_bg_opa
Set opacity of the background. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 255, LV_OPA_100 or LV_OPA_COVER means 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.
void lv_obj_set_style_bg_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_bg_grad_color
Set gradient color of the background. Used only if grad_dir is not LV_GRAD_DIR_NONE. Default: 0x000000, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_bg_grad_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_color_t | Color to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_bg_grad_dir
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.
void lv_obj_set_style_bg_grad_dir(lv_obj_t *obj, lv_grad_dir_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_grad_dir_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_bg_main_stop
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.
void lv_obj_set_style_bg_main_stop(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_bg_grad_stop
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.
void lv_obj_set_style_bg_grad_stop(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_bg_main_opa
Set opacity of the first gradient color. Default: 255, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_bg_main_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_bg_grad_opa
Set opacity of the second gradient color. Default: 255, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_bg_grad_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_bg_grad
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_STOP and BG_GRAD_STOP into 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.
void lv_obj_set_style_bg_grad(lv_obj_t *obj, const lv_grad_dsc_t *value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | const lv_grad_dsc_t * | Pointer to gradient descriptor |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_bg_image_src
Set a background image. Can be a pointer to lv_image_dsc_t, a path to a file or an LV_SYMBOL_.... Default: NULL, inherited: No, layout: No, ext. draw: Yes.
void lv_obj_set_style_bg_image_src(lv_obj_t *obj, const void *value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | const void * | Pointer to image source |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_bg_image_opa
Set opacity of the background image. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 255, LV_OPA_100 or LV_OPA_COVER means 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.
void lv_obj_set_style_bg_image_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_bg_image_recolor
Set a color to mix to the background image. Default: 0x000000, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_bg_image_recolor(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_color_t | Color to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_bg_image_recolor_opa
Set intensity of background image recoloring. Value 0, LV_OPA_0 or LV_OPA_TRANSP means no mixing, 255, LV_OPA_100 or LV_OPA_COVER means 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.
void lv_obj_set_style_bg_image_recolor_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_bg_image_tiled
If enabled the background image will be tiled. Possible values are true or false. Default: 0, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_bg_image_tiled(lv_obj_t *obj, bool value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | bool | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_border_color
Set color of the border. Default: 0x000000, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_border_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_color_t | Color to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_border_opa
Set opacity of the border. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 255, LV_OPA_100 or LV_OPA_COVER means 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.
void lv_obj_set_style_border_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_border_width
Set width of the border. Only pixel values can be used. Default: 0, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_border_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_border_side
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.
void lv_obj_set_style_border_side(lv_obj_t *obj, lv_border_side_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_border_side_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_border_post
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.
void lv_obj_set_style_border_post(lv_obj_t *obj, bool value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | bool | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_outline_width
Set width of outline in pixels. Default: 0, inherited: No, layout: No, ext. draw: Yes.
void lv_obj_set_style_outline_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_outline_color
Set color of outline. Default: 0x000000, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_outline_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_color_t | Color to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_outline_opa
Set opacity of outline. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 255, LV_OPA_100 or LV_OPA_COVER means 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.
void lv_obj_set_style_outline_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_outline_pad
Set padding of outline, i.e. the gap between Widget and the outline. Default: 0, inherited: No, layout: No, ext. draw: Yes.
void lv_obj_set_style_outline_pad(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_shadow_width
Set width of the shadow in pixels. The value should be >= 0. Default: 0, inherited: No, layout: No, ext. draw: Yes.
void lv_obj_set_style_shadow_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_shadow_offset_x
Set an offset on the shadow in pixels in X direction. Default: 0, inherited: No, layout: No, ext. draw: Yes.
void lv_obj_set_style_shadow_offset_x(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_shadow_offset_y
Set an offset on the shadow in pixels in Y direction. Default: 0, inherited: No, layout: No, ext. draw: Yes.
void lv_obj_set_style_shadow_offset_y(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_shadow_spread
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.
void lv_obj_set_style_shadow_spread(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_shadow_color
Set color of shadow. Default: 0x000000, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_shadow_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_color_t | Color to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_shadow_opa
Set opacity of shadow. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 255, LV_OPA_100 or LV_OPA_COVER means 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.
void lv_obj_set_style_shadow_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_image_opa
Set opacity of an image. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 255, LV_OPA_100 or LV_OPA_COVER means 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.
void lv_obj_set_style_image_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_image_recolor
Set color to mix with the image. Default: 0x000000, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_image_recolor(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_color_t | Color to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_image_recolor_opa
Set intensity of color mixing. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 255, LV_OPA_100 or LV_OPA_COVER means fully covering, other values or LV_OPA_10, LV_OPA_20, etc means semi transparency. Default: 0, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_image_recolor_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_image_colorkey
Set image colorkey definition. The lv_image_colorkey_t contains two color values: high_color and low_color. the color of pixels ranging from low_color to high_color will be transparent. Default: NULL, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_image_colorkey(lv_obj_t *obj, const lv_image_colorkey_t *value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | const lv_image_colorkey_t * | Pointer to image color key |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_line_width
Set width of lines in pixels. Default: 0, inherited: No, layout: No, ext. draw: Yes.
void lv_obj_set_style_line_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_line_dash_width
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.
void lv_obj_set_style_line_dash_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_line_dash_gap
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.
void lv_obj_set_style_line_dash_gap(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_line_rounded
Make end points of the lines rounded. true: rounded, false: perpendicular line ending. Default: 0, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_line_rounded(lv_obj_t *obj, bool value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | bool | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_line_color
Set color of lines. Default: 0x000000, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_line_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_color_t | Color to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_line_opa
Set opacity of lines. Default: LV_OPA_COVER, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_line_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_arc_width
Set width (thickness) of arcs in pixels. Default: 0, inherited: No, layout: No, ext. draw: Yes.
void lv_obj_set_style_arc_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_arc_rounded
Make end points of arcs rounded. true: rounded, false: perpendicular line ending. Default: 0, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_arc_rounded(lv_obj_t *obj, bool value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | bool | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_arc_color
Set color of arc. Default: 0x000000, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_arc_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_color_t | Color to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_arc_opa
Set opacity of arcs. Default: LV_OPA_COVER, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_arc_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_arc_image_src
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_t or a path to a file. Default: NULL, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_arc_image_src(lv_obj_t *obj, const void *value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | const void * | Pointer to image source |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_text_color
Sets color of text. Default: 0x000000, inherited: Yes, layout: No, ext. draw: No.
void lv_obj_set_style_text_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_color_t | Color to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_text_opa
Set opacity of text. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 255, LV_OPA_100 or LV_OPA_COVER means 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.
void lv_obj_set_style_text_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_text_font
Set font of text (a pointer lv_font_t *). Default: LV_FONT_DEFAULT, inherited: Yes, layout: Yes, ext. draw: No.
void lv_obj_set_style_text_font(lv_obj_t *obj, const lv_font_t *value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | const lv_font_t * | Pointer to font |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_text_letter_space
Set letter space in pixels. Default: 0, inherited: Yes, layout: Yes, ext. draw: No.
void lv_obj_set_style_text_letter_space(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_text_line_space
Set line space in pixels. Default: 0, inherited: Yes, layout: Yes, ext. draw: No.
void lv_obj_set_style_text_line_space(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_text_decor
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.
void lv_obj_set_style_text_decor(lv_obj_t *obj, lv_text_decor_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_text_decor_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_text_align
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_AUTO detect the text base direction and uses left or right alignment accordingly. Default: LV_TEXT_ALIGN_AUTO, inherited: Yes, layout: Yes, ext. draw: No.
void lv_obj_set_style_text_align(lv_obj_t *obj, lv_text_align_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_text_align_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_text_outline_stroke_color
Sets the color of letter outline stroke. Default: 0x000000, inherited: Yes, layout: No, ext. draw: No.
void lv_obj_set_style_text_outline_stroke_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_color_t | Color to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_text_outline_stroke_width
Set the letter outline stroke width in pixels. Default: 0, inherited: Yes, layout: Yes, ext. draw: No.
void lv_obj_set_style_text_outline_stroke_width(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_text_outline_stroke_opa
Set the opacity of the letter outline stroke. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 255, LV_OPA_100 or LV_OPA_COVER means 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.
void lv_obj_set_style_text_outline_stroke_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_text_leading_trim
Set the text leading trim mode. Removes empty space above and/or below text based on font metrics (cap-height, x-height, baseline). Similar to CSS text-box-trim. Possible values are LV_TEXT_LEADING_TRIM_NONE/CAPITAL_BASELINE/LOWER_BASELINE/CAPITAL/LOWER. Default: LV_TEXT_LEADING_TRIM_NONE, inherited: Yes, layout: Yes, ext. draw: No.
void lv_obj_set_style_text_leading_trim(lv_obj_t *obj, lv_text_leading_trim_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_text_leading_trim_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_blur_radius
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.
void lv_obj_set_style_blur_radius(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_blur_backdrop
If true the background of the widget will be blurred. The part should have < 100% opacity to make it visible. If false the given part will be blurred when it's rendered but before drawing the children. Default: false, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_blur_backdrop(lv_obj_t *obj, bool value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | bool | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_blur_quality
Setting to LV_BLUR_QUALITY_SPEED the blurring algorithm will prefer speed over quality. LV_BLUR_QUALITY_PRECISION will force using higher quality but slower blur. With LV_BLUR_QUALITY_AUTO the quality will be selected automatically. Default: LV_BLUR_QUALITY_AUTO, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_blur_quality(lv_obj_t *obj, lv_blur_quality_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_blur_quality_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_drop_shadow_radius
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.
void lv_obj_set_style_drop_shadow_radius(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_drop_shadow_offset_x
Set an offset on the shadow in pixels in X direction. Default: 0, inherited: No, layout: No, ext. draw: Yes.
void lv_obj_set_style_drop_shadow_offset_x(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_drop_shadow_offset_y
Set an offset on the shadow in pixels in Y direction. Default: 0, inherited: No, layout: No, ext. draw: Yes.
void lv_obj_set_style_drop_shadow_offset_y(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_drop_shadow_color
Set the color of the shadow. Default: 0, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_drop_shadow_color(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_color_t | Color to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_drop_shadow_opa
Set the opacity of the shadow. Default: 0, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_drop_shadow_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_drop_shadow_quality
Setting to LV_BLUR_QUALITY_SPEED the blurring algorithm will prefer speed over quality. LV_BLUR_QUALITY_PRECISION will force using higher quality but slower blur. With LV_BLUR_QUALITY_AUTO the quality will be selected automatically. Default: LV_BLUR_QUALITY_PRECISION, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_drop_shadow_quality(lv_obj_t *obj, lv_blur_quality_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_blur_quality_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_radius
Set radius on every corner. The value is interpreted in pixels (>= 0) or LV_RADIUS_CIRCLE for max radius. Default: 0, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_radius(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_radial_offset
Move start point of object (e.g. scale tick) radially. Default: 0, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_radial_offset(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_clip_corner
Enable clipping of content that overflows rounded corners of parent Widget. Can be true or false. Default: 0, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_clip_corner(lv_obj_t *obj, bool value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | bool | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_opa
Scale down all opacity values of the Widget by this factor. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 255, LV_OPA_100 or LV_OPA_COVER means 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.
void lv_obj_set_style_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_opa_layered
First draw Widget on the layer, then scale down layer opacity factor. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent, 255, LV_OPA_100 or LV_OPA_COVER means 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.
void lv_obj_set_style_opa_layered(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_color_filter_dsc
Mix a color with all colors of the Widget. Default: NULL, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_color_filter_dsc(lv_obj_t *obj, const lv_color_filter_dsc_t *value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | const lv_color_filter_dsc_t * | Pointer to color-filter descriptor |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_color_filter_opa
The intensity of mixing of color filter. Default: LV_OPA_TRANSP, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_color_filter_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_recolor
Set a color to mix to the obj. Default: 0x000000, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_recolor(lv_obj_t *obj, lv_color_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_color_t | Color to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_recolor_opa
Sets the intensity of color mixing. Value 0, LV_OPA_0 or LV_OPA_TRANSP means fully transparent. A value of 255, LV_OPA_100 or LV_OPA_COVER means 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.
void lv_obj_set_style_recolor_opa(lv_obj_t *obj, lv_opa_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_opa_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_anim
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.
void lv_obj_set_style_anim(lv_obj_t *obj, const lv_anim_t *value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | const lv_anim_t * | Pointer to animation descriptor |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_anim_duration
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.
void lv_obj_set_style_anim_duration(lv_obj_t *obj, uint32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | uint32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_transition
An initialized lv_style_transition_dsc_t to describe a transition. Default: NULL, inherited: No, layout: No, ext. draw: No.
void lv_obj_set_style_transition(lv_obj_t *obj, const lv_style_transition_dsc_t *value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | const lv_style_transition_dsc_t * | Pointer to transition descriptor |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_blend_mode
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.
void lv_obj_set_style_blend_mode(lv_obj_t *obj, lv_blend_mode_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_blend_mode_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_layout
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.
void lv_obj_set_style_layout(lv_obj_t *obj, uint16_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | uint16_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_base_dir
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.
void lv_obj_set_style_base_dir(lv_obj_t *obj, lv_base_dir_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_base_dir_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_bitmap_mask_src
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.
void lv_obj_set_style_bitmap_mask_src(lv_obj_t *obj, const void *value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | const void * | Pointer to A8 bitmap mask |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_rotary_sensitivity
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.
void lv_obj_set_style_rotary_sensitivity(lv_obj_t *obj, uint32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | uint32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_flex_flow
Defines in which direction the flex layout should arrange the children. Default: LV_FLEX_FLOW_NONE, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_flex_flow(lv_obj_t *obj, lv_flex_flow_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_flex_flow_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_flex_main_place
Defines how to align the children in the direction of flex flow. Default: LV_FLEX_ALIGN_NONE, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_flex_main_place(lv_obj_t *obj, lv_flex_align_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_flex_align_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_flex_cross_place
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.
void lv_obj_set_style_flex_cross_place(lv_obj_t *obj, lv_flex_align_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_flex_align_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_flex_track_place
Defines how to align the tracks of the flow. Default: LV_FLEX_ALIGN_NONE, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_flex_track_place(lv_obj_t *obj, lv_flex_align_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_flex_align_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_flex_grow
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.
void lv_obj_set_style_flex_grow(lv_obj_t *obj, uint8_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | uint8_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_grid_column_dsc_array
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.
void lv_obj_set_style_grid_column_dsc_array(lv_obj_t *obj, const int32_t *value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | const int32_t * | Pointer to grid-column descriptor array |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_grid_column_align
Defines how to distribute the columns. Default: LV_GRID_ALIGN_START, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_grid_column_align(lv_obj_t *obj, lv_grid_align_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_grid_align_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_grid_row_dsc_array
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.
void lv_obj_set_style_grid_row_dsc_array(lv_obj_t *obj, const int32_t *value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | const int32_t * | Pointer to grid-row descriptor array |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_grid_row_align
Defines how to distribute the rows. Default: LV_GRID_ALIGN_START, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_grid_row_align(lv_obj_t *obj, lv_grid_align_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_grid_align_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_grid_cell_column_pos
Set column in which Widget should be placed. Default: 0, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_grid_cell_column_pos(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_grid_cell_x_align
Set how to align Widget horizontally. Default: LV_GRID_ALIGN_START, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_grid_cell_x_align(lv_obj_t *obj, lv_grid_align_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_grid_align_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_grid_cell_column_span
Set how many columns Widget should span. Needs to be >= 1. Default: 1, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_grid_cell_column_span(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_grid_cell_row_pos
Set row in which Widget should be placed. Default: 0, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_grid_cell_row_pos(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_grid_cell_y_align
Set how to align Widget vertically. Default: LV_GRID_ALIGN_START, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_grid_cell_y_align(lv_obj_t *obj, lv_grid_align_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | lv_grid_align_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
lv_obj_set_style_grid_cell_row_span
Set how many rows Widget should span. Needs to be >= 1. Default: 1, inherited: No, layout: Yes, ext. draw: No.
void lv_obj_set_style_grid_cell_row_span(lv_obj_t *obj, int32_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
value | int32_t | Value to submit |
selector | lv_style_selector_t | A joint type for lv_part_t and lv_state_t. Example values:- 0: means `LV_PART_MAIN |
Dependencies
Indirect dependencies
How is this guide?
Last updated on