lv_obj_style.h
API reference for lv_obj_style.h
Functions
lv_obj_set_style_enabled
Temporary enable or disable a style for a selector. A disabled style will look like it wasn't added at all.
void lv_obj_set_style_enabled(lv_obj_t *obj, const lv_style_t *style, lv_style_selector_t selector, bool en)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to an object |
style | const lv_style_t * | pointer to a style |
selector | lv_style_selector_t | the selector of a style (e.g. LV_STATE_PRESSED | LV_PART_KNOB) |
en | bool | true: enable the style, false: disable the style |
lv_obj_style_set_disabled
Temporary disable a style for a selector. It will look like is the style wasn't added
> Deprecated: Use lv_obj_set_style_enabled() instead (with inverted logic).
void lv_obj_style_set_disabled(lv_obj_t *obj, const lv_style_t *style, lv_style_selector_t selector, bool dis)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to an object |
style | const lv_style_t * | pointer to a style |
selector | lv_style_selector_t | the selector of a style (e.g. LV_STATE_PRESSED | LV_PART_KNOB) |
dis | bool | true: disable the style, false: enable the style |
lv_obj_set_local_style_prop
Set local style property on an object's part and state.
void lv_obj_set_local_style_prop(lv_obj_t *obj, lv_style_prop_t prop, lv_style_value_t value, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to an object |
prop | lv_style_prop_t | the property |
value | lv_style_value_t | value of the property. The correct element should be set according to the type of the property |
selector | lv_style_selector_t | OR-ed value of parts and state for which the style should be set |
lv_obj_set_style_pad_all
Sets padding on all four sides at once by calling lv_obj_set_style_pad_top(), lv_obj_set_style_pad_bottom(), lv_obj_set_style_pad_left() and lv_obj_set_style_pad_right() with the same value.
void lv_obj_set_style_pad_all(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_hor
Sets horizontal padding by calling lv_obj_set_style_pad_left() and lv_obj_set_style_pad_right() with the same value.
void lv_obj_set_style_pad_hor(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_ver
Sets vertical padding by calling lv_obj_set_style_pad_top() and lv_obj_set_style_pad_bottom() with the same value.
void lv_obj_set_style_pad_ver(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_all
Sets margin on all four sides at once by calling lv_obj_set_style_margin_top(), lv_obj_set_style_margin_bottom(), lv_obj_set_style_margin_left() and lv_obj_set_style_margin_right() with the same value.
void lv_obj_set_style_margin_all(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_hor
Sets horizontal margin by calling lv_obj_set_style_margin_left() and lv_obj_set_style_margin_right() with the same value.
void lv_obj_set_style_margin_hor(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_ver
Sets vertical margin by calling lv_obj_set_style_margin_top() and lv_obj_set_style_margin_bottom() with the same value.
void lv_obj_set_style_margin_ver(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_gap
Sets the gap between the children in both directions by calling lv_obj_set_style_pad_row() and lv_obj_set_style_pad_column() with the same value.
void lv_obj_set_style_pad_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_size
Sets size of Widget by calling lv_obj_set_style_width() and lv_obj_set_style_height().
void lv_obj_set_style_size(lv_obj_t *obj, int32_t width, int32_t height, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | Pointer to Widget |
width | int32_t | Width value to submit |
height | int32_t | Height 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
Sets the zoom factor of Widget in both directions by calling lv_obj_set_style_transform_scale_x() and lv_obj_set_style_transform_scale_y() with the same value.
void lv_obj_set_style_transform_scale(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_get_style_enabled
Get if a given style is enabled on an object.
bool lv_obj_get_style_enabled(lv_obj_t *obj, const lv_style_t *style, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to an object |
style | const lv_style_t * | pointer to a style |
selector | lv_style_selector_t | the selector of a style (e.g. LV_STATE_PRESSED | LV_PART_KNOB) |
Returns: bool — true: the style is enabled, false: the style is disabled
lv_obj_style_get_disabled
Get if a given style is disabled on an object.
> Deprecated: Use lv_obj_get_style_enabled() instead (with inverted logic).
bool lv_obj_style_get_disabled(lv_obj_t *obj, const lv_style_t *style, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to an object |
style | const lv_style_t * | pointer to a style |
selector | lv_style_selector_t | the selector of a style (e.g. LV_STATE_PRESSED | LV_PART_KNOB) |
Returns: bool — true: disable the style, false: enable the style
lv_obj_get_style_prop
Get the value of a style property. The current state of the object will be considered. Inherited properties will be inherited. If a property is not set a default value will be returned.
lv_style_value_t lv_obj_get_style_prop(const lv_obj_t *obj, lv_part_t part, lv_style_prop_t prop)| Name | Type | Description |
|---|---|---|
obj | const lv_obj_t * | pointer to an object |
part | lv_part_t | a part from which the property should be get |
prop | lv_style_prop_t | the property to get |
Returns: lv_style_value_t — the value of the property. Should be read from the correct field of the lv_style_value_t according to the type of the property.
lv_obj_get_local_style_prop
lv_style_res_t lv_obj_get_local_style_prop(lv_obj_t *obj, lv_style_prop_t prop, lv_style_value_t *value, lv_style_selector_t selector)| Name | Type |
|---|---|
obj | lv_obj_t * |
prop | lv_style_prop_t |
value | lv_style_value_t * |
selector | lv_style_selector_t |
lv_obj_style_get_selector_state
static lv_state_t lv_obj_style_get_selector_state(lv_style_selector_t selector)| Name | Type |
|---|---|
selector | lv_style_selector_t |
lv_obj_style_get_selector_part
static lv_part_t lv_obj_style_get_selector_part(lv_style_selector_t selector)| Name | Type |
|---|---|
selector | lv_style_selector_t |
lv_obj_get_style_space_left
Gets the space taken on the left side, i.e. the sum of pad_left and the border width. It tells how far the content area starts from the left edge of Widget's bounding box.
int32_t lv_obj_get_style_space_left(const lv_obj_t *obj, lv_part_t part)| Name | Type | Description |
|---|---|---|
obj | const lv_obj_t * | Pointer to Widget |
part | lv_part_t | One of the LV_PART_... enum values |
Returns: int32_t — Space on the left in pixels
lv_obj_get_style_space_right
Gets the space taken on the right side, i.e. the sum of pad_right and the border width. It tells how far the content area ends from the right edge of Widget's bounding box.
int32_t lv_obj_get_style_space_right(const lv_obj_t *obj, lv_part_t part)| Name | Type | Description |
|---|---|---|
obj | const lv_obj_t * | Pointer to Widget |
part | lv_part_t | One of the LV_PART_... enum values |
Returns: int32_t — Space on the right in pixels
lv_obj_get_style_space_top
Gets the space taken on the top side, i.e. the sum of pad_top and the border width. It tells how far the content area starts from the top edge of Widget's bounding box.
int32_t lv_obj_get_style_space_top(const lv_obj_t *obj, lv_part_t part)| Name | Type | Description |
|---|---|---|
obj | const lv_obj_t * | Pointer to Widget |
part | lv_part_t | One of the LV_PART_... enum values |
Returns: int32_t — Space on the top in pixels
lv_obj_get_style_space_bottom
Gets the space taken on the bottom side, i.e. the sum of pad_bottom and the border width. It tells how far the content area ends from the bottom edge of Widget's bounding box.
int32_t lv_obj_get_style_space_bottom(const lv_obj_t *obj, lv_part_t part)| Name | Type | Description |
|---|---|---|
obj | const lv_obj_t * | Pointer to Widget |
part | lv_part_t | One of the LV_PART_... enum values |
Returns: int32_t — Space on the bottom in pixels
lv_obj_get_style_transform_scale_x_safe
Gets the horizontal zoom factor of Widget in a way which is safe to divide or multiply by. Same as lv_obj_get_style_transform_scale_x() except that 0 is replaced by 1 to avoid division by zero.
int32_t lv_obj_get_style_transform_scale_x_safe(const lv_obj_t *obj, lv_part_t part)| Name | Type | Description |
|---|---|---|
obj | const lv_obj_t * | Pointer to Widget |
part | lv_part_t | One of the LV_PART_... enum values |
Returns: int32_t — The horizontal scale factor, never 0. 256 (LV_SCALE_NONE) means normal size.
lv_obj_get_style_transform_scale_y_safe
Gets the vertical zoom factor of Widget in a way which is safe to divide or multiply by. Same as lv_obj_get_style_transform_scale_y() except that 0 is replaced by 1 to avoid division by zero.
int32_t lv_obj_get_style_transform_scale_y_safe(const lv_obj_t *obj, lv_part_t part)| Name | Type | Description |
|---|---|---|
obj | const lv_obj_t * | Pointer to Widget |
part | lv_part_t | One of the LV_PART_... enum values |
Returns: int32_t — The vertical scale factor, never 0. 256 (LV_SCALE_NONE) means normal size.
lv_obj_get_style_opa_recursive
Get the opa style property from all parents and multiply and >> 8 them.
lv_opa_t lv_obj_get_style_opa_recursive(const lv_obj_t *obj, lv_part_t part)| Name | Type | Description |
|---|---|---|
obj | const lv_obj_t * | the object whose opacity should be get |
part | lv_part_t | the part whose opacity should be get. Non-MAIN parts will consider the opa of the MAIN part too |
Returns: lv_opa_t — the final opacity considering the parents' opacity too
lv_obj_get_style_recolor_recursive
Get the recolor style property from all parents and blend them recursively.
lv_color32_t lv_obj_get_style_recolor_recursive(const lv_obj_t *obj, lv_part_t part)| Name | Type | Description |
|---|---|---|
obj | const lv_obj_t * | the object whose recolor value should be retrieved |
part | lv_part_t | the target part to check. Non-MAIN parts will also consider the recolor value from the MAIN part during calculation |
Returns: lv_color32_t — the final blended recolor value combining all parent's recolor values
lv_obj_add_style
Add a style to an object. Examples:
lv_obj_add_style(btn, &style_btn, 0); //Default button style
lv_obj_add_style(btn, &btn_red, LV_STATE_PRESSED); //Overwrite only some colors to red when pressedvoid lv_obj_add_style(lv_obj_t *obj, const lv_style_t *style, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to an object |
style | const lv_style_t * | pointer to a style to add |
selector | lv_style_selector_t | OR-ed value of parts and state to which the style should be added |
lv_obj_replace_style
Replaces a style of an object, preserving the order of the style stack (local styles and transitions are ignored). Examples:
lv_obj_replace_style(obj, &yellow_style, &blue_style, LV_PART_ANY | LV_STATE_ANY); //Replace a specific style
lv_obj_replace_style(obj, &yellow_style, &blue_style, LV_PART_MAIN | LV_STATE_PRESSED); //Replace a specific style assigned to the main part when it is pressedbool lv_obj_replace_style(lv_obj_t *obj, const lv_style_t *old_style, const lv_style_t *new_style, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to an object |
old_style | const lv_style_t * | pointer to a style to replace. |
new_style | const lv_style_t * | pointer to a style to replace the old style with. |
selector | lv_style_selector_t | OR-ed values of states and a part to replace only styles with matching selectors. LV_STATE_ANY and LV_PART_ANY can be used |
lv_obj_remove_style
Remove a style from an object.
Examples:
lv_obj_remove_style(obj, &style, LV_PART_ANY | LV_STATE_ANY); //Remove a specific style
lv_obj_remove_style(obj, NULL, LV_PART_MAIN | LV_STATE_ANY); //Remove all styles from the main part
lv_obj_remove_style(obj, NULL, LV_PART_ANY | LV_STATE_ANY); //Remove all stylesvoid lv_obj_remove_style(lv_obj_t *obj, const lv_style_t *style, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a widget |
style | const lv_style_t * | pointer to a style to remove. May be NULL. When NULL every style matching selector is removed. |
selector | lv_style_selector_t | OR-ed value of parts and states to remove the style from |
lv_obj_remove_theme
Remove all styles added by a theme from a widget
void lv_obj_remove_theme(lv_obj_t *obj, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a widget |
selector | lv_style_selector_t | OR-ed values of states and a part to remove only styles with matching selectors. LV_STATE_ANY and LV_PART_ANY can be used |
lv_obj_remove_style_all
Remove all styles from an object
void lv_obj_remove_style_all(lv_obj_t *obj)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to an object |
lv_obj_report_style_change
Notify all object if a style is modified
void lv_obj_report_style_change(lv_style_t *style)| Name | Type | Description |
|---|---|---|
style | lv_style_t * | pointer to a style. Only the objects with this style will be notified. May be NULL. When NULL every object is notified. |
lv_obj_refresh_style
Notify an object and its children about its style is modified.
void lv_obj_refresh_style(lv_obj_t *obj, lv_part_t part, lv_style_prop_t prop)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to an object |
part | lv_part_t | the part whose style was changed. E.g. LV_PART_ANY, LV_PART_MAIN |
prop | lv_style_prop_t | LV_STYLE_PROP_ANY or an LV_STYLE_... property. It is used to optimize what needs to be refreshed. LV_STYLE_PROP_INV to perform only a style cache update |
lv_obj_enable_style_refresh
Enable or disable automatic style refreshing when a new style is added/removed to/from an object or any other style change happens.
void lv_obj_enable_style_refresh(bool en)| Name | Type | Description |
|---|---|---|
en | bool | true: enable refreshing; false: disable refreshing |
lv_obj_has_style_prop
Check if an object has a specified style property for a given style selector.
bool lv_obj_has_style_prop(const lv_obj_t *obj, lv_style_selector_t selector, lv_style_prop_t prop)| Name | Type | Description |
|---|---|---|
obj | const lv_obj_t * | pointer to an object |
selector | lv_style_selector_t | the style selector to be checked, defining the scope of the style to be examined. |
prop | lv_style_prop_t | the property to be checked. |
Returns: bool — true if the object has the specified selector and property, false otherwise.
lv_obj_remove_local_style_prop
Remove a local style property from a part of an object with a given state.
bool lv_obj_remove_local_style_prop(lv_obj_t *obj, lv_style_prop_t prop, lv_style_selector_t selector)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to an object |
prop | lv_style_prop_t | a style property to remove. |
selector | lv_style_selector_t | OR-ed value of parts and state for which the style should be removed |
Returns: bool — true the property was found and removed; false: the property was not found
lv_obj_style_apply_color_filter
Used internally for color filtering
lv_style_value_t lv_obj_style_apply_color_filter(const lv_obj_t *obj, lv_part_t part, lv_style_value_t v)| Name | Type |
|---|---|
obj | const lv_obj_t * |
part | lv_part_t |
v | lv_style_value_t |
lv_obj_fade_in
Fade in an an object and all its children.
void lv_obj_fade_in(lv_obj_t *obj, uint32_t time, uint32_t delay)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | the object to fade in |
time | uint32_t | time of fade |
delay | uint32_t | delay to start the animation |
lv_obj_fade_out
Fade out an an object and all its children.
void lv_obj_fade_out(lv_obj_t *obj, uint32_t time, uint32_t delay)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | the object to fade out |
time | uint32_t | time of fade |
delay | uint32_t | delay to start the animation |
lv_obj_calculate_style_text_align
Gets the text alignment which should be really used. Compared to lv_obj_get_style_text_align() it resolves LV_TEXT_ALIGN_AUTO by considering the base direction of Widget and the text itself.
lv_text_align_t lv_obj_calculate_style_text_align(const lv_obj_t *obj, lv_part_t part, const char *txt)| Name | Type | Description |
|---|---|---|
obj | const lv_obj_t * | Pointer to Widget |
part | lv_part_t | One of the LV_PART_... enum values |
txt | const char * | The text to align. Its first strong character determines the direction if the base direction is LV_BASE_DIR_AUTO. |
Returns: lv_text_align_t — The resolved alignment: LV_TEXT_ALIGN_LEFT/CENTER/RIGHT (never LV_TEXT_ALIGN_AUTO)
lv_obj_style_apply_recolor
Apply recolor effect to the input color based on the object's style properties.
lv_color32_t lv_obj_style_apply_recolor(const lv_obj_t *obj, lv_part_t part, lv_color32_t color)| Name | Type | Description |
|---|---|---|
obj | const lv_obj_t * | the target object containing recolor style properties |
part | lv_part_t | the part to retrieve recolor styles. |
color | lv_color32_t | the original color to be modified |
Returns: lv_color32_t — the blended color after applying recolor and opacity
lv_obj_bind_style
Disable a style if a subject's value is not equal to a reference value
lv_observer_t * lv_obj_bind_style(lv_obj_t *obj, const lv_style_t *style, lv_style_selector_t selector, lv_subject_t *subject, int32_t ref_value)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to Widget |
style | const lv_style_t * | pointer to a style |
selector | lv_style_selector_t | pointer to a selector |
subject | lv_subject_t * | pointer to Subject |
ref_value | int32_t | reference value to compare Subject's value with |
Returns: lv_observer_t * — pointer to newly-created Observer
lv_obj_bind_style_prop
Connect a subject's value to a style property of a widget.
lv_observer_t * lv_obj_bind_style_prop(lv_obj_t *obj, lv_style_prop_t prop, lv_style_selector_t selector, lv_subject_t *subject)| Name | Type | Description |
|---|---|---|
obj | lv_obj_t * | pointer to a Widget |
prop | lv_style_prop_t | a style property |
selector | lv_style_selector_t | a selector for which the property should be added, e.g. `LV_PART_KNOB |
subject | lv_subject_t * | pointer a Subject to which value the property should be bound |
Returns: lv_observer_t * — pointer to newly-created Observer
Enums
lv_state_t
Possible states of a widget. OR-ed values are possible
| Name | Value | Description |
|---|---|---|
LV_STATE_DEFAULT | 0 | |
LV_STATE_ALT | 1 << 0 | |
LV_STATE_CHECKED | 1 << 2 | |
LV_STATE_FOCUSED | 1 << 3 | |
LV_STATE_FOCUS_KEY | 1 << 4 | |
LV_STATE_EDITED | 1 << 5 | |
LV_STATE_HOVERED | 1 << 6 | |
LV_STATE_PRESSED | 1 << 7 | |
LV_STATE_SCROLLED | 1 << 8 | |
LV_STATE_DISABLED | 1 << 9 | |
LV_STATE_USER_1 | 1 << 12 | |
LV_STATE_USER_2 | 1 << 13 | |
LV_STATE_USER_3 | 1 << 14 | |
LV_STATE_USER_4 | 1 << 15 | |
LV_STATE_ANY | 0xFFFF | Special value can be used in some functions to target all states |
Used by 14 functions
lv_obj_add_state— paramstatelv_obj_remove_state— paramstatelv_obj_set_state— paramstatelv_obj_has_state— paramstatelv_obj_bind_state_if_eq— paramstatelv_obj_bind_state_if_not_eq— paramstatelv_obj_bind_state_if_gt— paramstatelv_obj_bind_state_if_ge— paramstatelv_obj_bind_state_if_lt— paramstatelv_obj_bind_state_if_le— paramstatelv_obj_style_create_transition— paramprev_statelv_obj_style_create_transition— paramnew_statelv_obj_style_state_compare— paramstate1lv_obj_style_state_compare— paramstate2
lv_part_t
The possible parts of widgets. The parts can be considered as the internal building block of the widgets. E.g. slider = background + indicator + knob Not all parts are used by every widget
| Name | Value | Description |
|---|---|---|
LV_PART_MAIN | 0x000000 | A background like rectangle |
LV_PART_SCROLLBAR | 0x010000 | The scrollbar(s) |
LV_PART_INDICATOR | 0x020000 | Indicator, e.g. for slider, bar, switch, or the tick box of the checkbox |
LV_PART_KNOB | 0x030000 | Like handle to grab to adjust the value |
LV_PART_SELECTED | 0x040000 | Indicate the currently selected option or section |
LV_PART_ITEMS | 0x050000 | Used if the widget has multiple similar elements (e.g. table cells) |
LV_PART_CURSOR | 0x060000 | Mark a specific place e.g. for text area's cursor or on a chart |
LV_PART_CUSTOM_FIRST | 0x080000 | Extension point for custom widgets |
LV_PART_ANY | 0x0F0000 | Special value can be used in some functions to target all parts |
Used by 315 functions
lv_obj_init_draw_rect_dsc— parampartlv_obj_init_draw_label_dsc— parampartlv_obj_init_draw_image_dsc— parampartlv_obj_init_draw_line_dsc— parampartlv_obj_init_draw_arc_dsc— parampartlv_obj_init_draw_blur_dsc— parampartlv_obj_calculate_ext_draw_size— parampartlv_obj_get_style_property— parampartlv_obj_refresh_style— parampartlv_obj_get_style_prop— parampartlv_obj_style_apply_color_filter— parampartlv_obj_get_style_space_left— parampartlv_obj_get_style_space_right— parampartlv_obj_get_style_space_top— parampartlv_obj_get_style_space_bottom— parampartlv_obj_calculate_style_text_align— parampartlv_obj_get_style_transform_scale_x_safe— parampartlv_obj_get_style_transform_scale_y_safe— parampartlv_obj_get_style_opa_recursive— parampartlv_obj_style_apply_recolor— parampartlv_obj_get_style_recolor_recursive— parampartlv_obj_get_style_width— parampartlv_obj_get_style_min_width— parampartlv_obj_get_style_max_width— parampartlv_obj_get_style_height— parampartlv_obj_get_style_min_height— parampartlv_obj_get_style_max_height— parampartlv_obj_get_style_length— parampartlv_obj_get_style_x— parampartlv_obj_get_style_y— parampartlv_obj_get_style_align— parampartlv_obj_get_style_transform_width— parampartlv_obj_get_style_transform_height— parampartlv_obj_get_style_translate_x— parampartlv_obj_get_style_translate_y— parampartlv_obj_get_style_translate_radial— parampartlv_obj_get_style_transform_scale_x— parampartlv_obj_get_style_transform_scale_y— parampartlv_obj_get_style_transform_rotation— parampartlv_obj_get_style_transform_pivot_x— parampartlv_obj_get_style_transform_pivot_y— parampartlv_obj_get_style_transform_skew_x— parampartlv_obj_get_style_transform_skew_y— parampartlv_obj_get_style_pad_top— parampartlv_obj_get_style_pad_bottom— parampartlv_obj_get_style_pad_left— parampartlv_obj_get_style_pad_right— parampartlv_obj_get_style_pad_row— parampartlv_obj_get_style_pad_column— parampartlv_obj_get_style_pad_radial— parampartlv_obj_get_style_margin_top— parampartlv_obj_get_style_margin_bottom— parampartlv_obj_get_style_margin_left— parampartlv_obj_get_style_margin_right— parampartlv_obj_get_style_bg_color— parampartlv_obj_get_style_bg_color_filtered— parampartlv_obj_get_style_bg_opa— parampartlv_obj_get_style_bg_grad_color— parampartlv_obj_get_style_bg_grad_color_filtered— parampartlv_obj_get_style_bg_grad_dir— parampartlv_obj_get_style_bg_main_stop— parampartlv_obj_get_style_bg_grad_stop— parampartlv_obj_get_style_bg_main_opa— parampartlv_obj_get_style_bg_grad_opa— parampartlv_obj_get_style_bg_grad— parampartlv_obj_get_style_bg_image_src— parampartlv_obj_get_style_bg_image_opa— parampartlv_obj_get_style_bg_image_recolor— parampartlv_obj_get_style_bg_image_recolor_filtered— parampartlv_obj_get_style_bg_image_recolor_opa— parampartlv_obj_get_style_bg_image_tiled— parampartlv_obj_get_style_border_color— parampartlv_obj_get_style_border_color_filtered— parampartlv_obj_get_style_border_opa— parampartlv_obj_get_style_border_width— parampartlv_obj_get_style_border_side— parampartlv_obj_get_style_border_post— parampartlv_obj_get_style_outline_width— parampartlv_obj_get_style_outline_color— parampartlv_obj_get_style_outline_color_filtered— parampartlv_obj_get_style_outline_opa— parampartlv_obj_get_style_outline_pad— parampartlv_obj_get_style_shadow_width— parampartlv_obj_get_style_shadow_offset_x— parampartlv_obj_get_style_shadow_offset_y— parampartlv_obj_get_style_shadow_spread— parampartlv_obj_get_style_shadow_color— parampartlv_obj_get_style_shadow_color_filtered— parampartlv_obj_get_style_shadow_opa— parampartlv_obj_get_style_image_opa— parampartlv_obj_get_style_image_recolor— parampartlv_obj_get_style_image_recolor_filtered— parampartlv_obj_get_style_image_recolor_opa— parampartlv_obj_get_style_image_colorkey— parampartlv_obj_get_style_line_width— parampartlv_obj_get_style_line_dash_width— parampartlv_obj_get_style_line_dash_gap— parampartlv_obj_get_style_line_rounded— parampartlv_obj_get_style_line_color— parampartlv_obj_get_style_line_color_filtered— parampartlv_obj_get_style_line_opa— parampartlv_obj_get_style_arc_width— parampartlv_obj_get_style_arc_rounded— parampartlv_obj_get_style_arc_color— parampartlv_obj_get_style_arc_color_filtered— parampartlv_obj_get_style_arc_opa— parampartlv_obj_get_style_arc_image_src— parampartlv_obj_get_style_text_color— parampartlv_obj_get_style_text_color_filtered— parampartlv_obj_get_style_text_opa— parampartlv_obj_get_style_text_font— parampartlv_obj_get_style_text_letter_space— parampartlv_obj_get_style_text_line_space— parampartlv_obj_get_style_text_decor— parampartlv_obj_get_style_text_align— parampartlv_obj_get_style_text_outline_stroke_color— parampartlv_obj_get_style_text_outline_stroke_color_filtered— parampartlv_obj_get_style_text_outline_stroke_width— parampartlv_obj_get_style_text_outline_stroke_opa— parampartlv_obj_get_style_text_leading_trim— parampartlv_obj_get_style_blur_radius— parampartlv_obj_get_style_blur_backdrop— parampartlv_obj_get_style_blur_quality— parampartlv_obj_get_style_drop_shadow_radius— parampartlv_obj_get_style_drop_shadow_offset_x— parampartlv_obj_get_style_drop_shadow_offset_y— parampartlv_obj_get_style_drop_shadow_color— parampartlv_obj_get_style_drop_shadow_color_filtered— parampartlv_obj_get_style_drop_shadow_opa— parampartlv_obj_get_style_drop_shadow_quality— parampartlv_obj_get_style_radius— parampartlv_obj_get_style_radial_offset— parampartlv_obj_get_style_clip_corner— parampartlv_obj_get_style_opa— parampartlv_obj_get_style_opa_layered— parampartlv_obj_get_style_color_filter_dsc— parampartlv_obj_get_style_color_filter_opa— parampartlv_obj_get_style_recolor— parampartlv_obj_get_style_recolor_opa— parampartlv_obj_get_style_anim— parampartlv_obj_get_style_anim_duration— parampartlv_obj_get_style_transition— parampartlv_obj_get_style_blend_mode— parampartlv_obj_get_style_layout— parampartlv_obj_get_style_base_dir— parampartlv_obj_get_style_bitmap_mask_src— parampartlv_obj_get_style_rotary_sensitivity— parampartlv_obj_get_style_flex_flow— parampartlv_obj_get_style_flex_main_place— parampartlv_obj_get_style_flex_cross_place— parampartlv_obj_get_style_flex_track_place— parampartlv_obj_get_style_flex_grow— parampartlv_obj_get_style_grid_column_dsc_array— parampartlv_obj_get_style_grid_column_align— parampartlv_obj_get_style_grid_row_dsc_array— parampartlv_obj_get_style_grid_row_align— parampartlv_obj_get_style_grid_cell_column_pos— parampartlv_obj_get_style_grid_cell_x_align— parampartlv_obj_get_style_grid_cell_column_span— parampartlv_obj_get_style_grid_cell_row_pos— parampartlv_obj_get_style_grid_cell_y_align— parampartlv_obj_get_style_grid_cell_row_span— parampartlv_scale_section_set_style— parampartlv_obj_calculate_style_text_align_internal— parampartlv_obj_get_style_space_left_internal— parampartlv_obj_get_style_space_right_internal— parampartlv_obj_get_style_space_top_internal— parampartlv_obj_get_style_space_bottom_internal— parampartlv_obj_get_style_transform_scale_x_safe_internal— parampartlv_obj_get_style_transform_scale_y_safe_internal— parampartlv_obj_get_style_width_internal— parampartlv_obj_get_style_min_width_internal— parampartlv_obj_get_style_max_width_internal— parampartlv_obj_get_style_height_internal— parampartlv_obj_get_style_min_height_internal— parampartlv_obj_get_style_max_height_internal— parampartlv_obj_get_style_length_internal— parampartlv_obj_get_style_x_internal— parampartlv_obj_get_style_y_internal— parampartlv_obj_get_style_align_internal— parampartlv_obj_get_style_transform_width_internal— parampartlv_obj_get_style_transform_height_internal— parampartlv_obj_get_style_translate_x_internal— parampartlv_obj_get_style_translate_y_internal— parampartlv_obj_get_style_translate_radial_internal— parampartlv_obj_get_style_transform_scale_x_internal— parampartlv_obj_get_style_transform_scale_y_internal— parampartlv_obj_get_style_transform_rotation_internal— parampartlv_obj_get_style_transform_pivot_x_internal— parampartlv_obj_get_style_transform_pivot_y_internal— parampartlv_obj_get_style_transform_skew_x_internal— parampartlv_obj_get_style_transform_skew_y_internal— parampartlv_obj_get_style_pad_top_internal— parampartlv_obj_get_style_pad_bottom_internal— parampartlv_obj_get_style_pad_left_internal— parampartlv_obj_get_style_pad_right_internal— parampartlv_obj_get_style_pad_row_internal— parampartlv_obj_get_style_pad_column_internal— parampartlv_obj_get_style_pad_radial_internal— parampartlv_obj_get_style_margin_top_internal— parampartlv_obj_get_style_margin_bottom_internal— parampartlv_obj_get_style_margin_left_internal— parampartlv_obj_get_style_margin_right_internal— parampartlv_obj_get_style_bg_color_internal— parampartlv_obj_get_style_bg_color_filtered_internal— parampartlv_obj_get_style_bg_opa_internal— parampartlv_obj_get_style_bg_grad_color_internal— parampartlv_obj_get_style_bg_grad_color_filtered_internal— parampartlv_obj_get_style_bg_grad_dir_internal— parampartlv_obj_get_style_bg_main_stop_internal— parampartlv_obj_get_style_bg_grad_stop_internal— parampartlv_obj_get_style_bg_main_opa_internal— parampartlv_obj_get_style_bg_grad_opa_internal— parampartlv_obj_get_style_bg_grad_internal— parampartlv_obj_get_style_bg_image_src_internal— parampartlv_obj_get_style_bg_image_opa_internal— parampartlv_obj_get_style_bg_image_recolor_internal— parampartlv_obj_get_style_bg_image_recolor_filtered_internal— parampartlv_obj_get_style_bg_image_recolor_opa_internal— parampartlv_obj_get_style_bg_image_tiled_internal— parampartlv_obj_get_style_border_color_internal— parampartlv_obj_get_style_border_color_filtered_internal— parampartlv_obj_get_style_border_opa_internal— parampartlv_obj_get_style_border_width_internal— parampartlv_obj_get_style_border_side_internal— parampartlv_obj_get_style_border_post_internal— parampartlv_obj_get_style_outline_width_internal— parampartlv_obj_get_style_outline_color_internal— parampartlv_obj_get_style_outline_color_filtered_internal— parampartlv_obj_get_style_outline_opa_internal— parampartlv_obj_get_style_outline_pad_internal— parampartlv_obj_get_style_shadow_width_internal— parampartlv_obj_get_style_shadow_offset_x_internal— parampartlv_obj_get_style_shadow_offset_y_internal— parampartlv_obj_get_style_shadow_spread_internal— parampartlv_obj_get_style_shadow_color_internal— parampartlv_obj_get_style_shadow_color_filtered_internal— parampartlv_obj_get_style_shadow_opa_internal— parampartlv_obj_get_style_image_opa_internal— parampartlv_obj_get_style_image_recolor_internal— parampartlv_obj_get_style_image_recolor_filtered_internal— parampartlv_obj_get_style_image_recolor_opa_internal— parampartlv_obj_get_style_image_colorkey_internal— parampartlv_obj_get_style_line_width_internal— parampartlv_obj_get_style_line_dash_width_internal— parampartlv_obj_get_style_line_dash_gap_internal— parampartlv_obj_get_style_line_rounded_internal— parampartlv_obj_get_style_line_color_internal— parampartlv_obj_get_style_line_color_filtered_internal— parampartlv_obj_get_style_line_opa_internal— parampartlv_obj_get_style_arc_width_internal— parampartlv_obj_get_style_arc_rounded_internal— parampartlv_obj_get_style_arc_color_internal— parampartlv_obj_get_style_arc_color_filtered_internal— parampartlv_obj_get_style_arc_opa_internal— parampartlv_obj_get_style_arc_image_src_internal— parampartlv_obj_get_style_text_color_internal— parampartlv_obj_get_style_text_color_filtered_internal— parampartlv_obj_get_style_text_opa_internal— parampartlv_obj_get_style_text_font_internal— parampartlv_obj_get_style_text_letter_space_internal— parampartlv_obj_get_style_text_line_space_internal— parampartlv_obj_get_style_text_decor_internal— parampartlv_obj_get_style_text_align_internal— parampartlv_obj_get_style_text_outline_stroke_color_internal— parampartlv_obj_get_style_text_outline_stroke_color_filtered_internal— parampartlv_obj_get_style_text_outline_stroke_width_internal— parampartlv_obj_get_style_text_outline_stroke_opa_internal— parampartlv_obj_get_style_text_leading_trim_internal— parampartlv_obj_get_style_blur_radius_internal— parampartlv_obj_get_style_blur_backdrop_internal— parampartlv_obj_get_style_blur_quality_internal— parampartlv_obj_get_style_drop_shadow_radius_internal— parampartlv_obj_get_style_drop_shadow_offset_x_internal— parampartlv_obj_get_style_drop_shadow_offset_y_internal— parampartlv_obj_get_style_drop_shadow_color_internal— parampartlv_obj_get_style_drop_shadow_color_filtered_internal— parampartlv_obj_get_style_drop_shadow_opa_internal— parampartlv_obj_get_style_drop_shadow_quality_internal— parampartlv_obj_get_style_radius_internal— parampartlv_obj_get_style_radial_offset_internal— parampartlv_obj_get_style_clip_corner_internal— parampartlv_obj_get_style_opa_internal— parampartlv_obj_get_style_opa_layered_internal— parampartlv_obj_get_style_color_filter_dsc_internal— parampartlv_obj_get_style_color_filter_opa_internal— parampartlv_obj_get_style_recolor_internal— parampartlv_obj_get_style_recolor_opa_internal— parampartlv_obj_get_style_anim_internal— parampartlv_obj_get_style_anim_duration_internal— parampartlv_obj_get_style_transition_internal— parampartlv_obj_get_style_blend_mode_internal— parampartlv_obj_get_style_layout_internal— parampartlv_obj_get_style_base_dir_internal— parampartlv_obj_get_style_bitmap_mask_src_internal— parampartlv_obj_get_style_rotary_sensitivity_internal— parampartlv_obj_get_style_flex_flow_internal— parampartlv_obj_get_style_flex_main_place_internal— parampartlv_obj_get_style_flex_cross_place_internal— parampartlv_obj_get_style_flex_track_place_internal— parampartlv_obj_get_style_flex_grow_internal— parampartlv_obj_get_style_grid_column_dsc_array_internal— parampartlv_obj_get_style_grid_column_align_internal— parampartlv_obj_get_style_grid_row_dsc_array_internal— parampartlv_obj_get_style_grid_row_align_internal— parampartlv_obj_get_style_grid_cell_column_pos_internal— parampartlv_obj_get_style_grid_cell_x_align_internal— parampartlv_obj_get_style_grid_cell_column_span_internal— parampartlv_obj_get_style_grid_cell_row_pos_internal— parampartlv_obj_get_style_grid_cell_y_align_internal— parampartlv_obj_get_style_grid_cell_row_span_internal— parampartlv_obj_style_create_transition— parampartlv_obj_style_state_compare— paramchanged_partlv_obj_get_style_prop_internal— parampartlv_obj_style_apply_color_filter_internal— parampart
lv_style_state_cmp_t
| Name | Description |
|---|---|
LV_STYLE_STATE_CMP_SAME | The style properties in the 2 states are identical |
LV_STYLE_STATE_CMP_DIFF_REDRAW | The differences can be shown with a simple redraw |
LV_STYLE_STATE_CMP_DIFF_DRAW_PAD | The differences can be shown with a simple redraw |
LV_STYLE_STATE_CMP_DIFF_LAYOUT | The differences can be shown with a simple redraw |
Typedefs
lv_style_selector_t
typedef uint32_t lv_style_selector_tA joint type for lv_part_t and lv_state_t. Example values
0: meansLV_PART_MAIN | LV_STATE_DEFAULTLV_STATE_PRSSEDLV_PART_KNOBLV_PART_KNOB | LV_STATE_PRESSED | LV_STATE_CHECKED
Used by 154 functions
lv_obj_add_style— paramselectorlv_obj_replace_style— paramselectorlv_obj_remove_style— paramselectorlv_obj_remove_theme— paramselectorlv_obj_set_style_enabled— paramselectorlv_obj_get_style_enabled— paramselectorlv_obj_style_set_disabled— paramselectorlv_obj_style_get_disabled— paramselectorlv_obj_has_style_prop— paramselectorlv_obj_set_local_style_prop— paramselectorlv_obj_get_local_style_prop— paramselectorlv_obj_remove_local_style_prop— paramselectorlv_obj_style_get_selector_state— paramselectorlv_obj_style_get_selector_part— paramselectorlv_obj_set_style_pad_all— paramselectorlv_obj_set_style_pad_hor— paramselectorlv_obj_set_style_pad_ver— paramselectorlv_obj_set_style_margin_all— paramselectorlv_obj_set_style_margin_hor— paramselectorlv_obj_set_style_margin_ver— paramselectorlv_obj_set_style_pad_gap— paramselectorlv_obj_set_style_size— paramselectorlv_obj_set_style_transform_scale— paramselectorlv_obj_bind_style— paramselectorlv_obj_bind_style_prop— paramselectorlv_obj_set_style_width— paramselectorlv_obj_set_style_min_width— paramselectorlv_obj_set_style_max_width— paramselectorlv_obj_set_style_height— paramselectorlv_obj_set_style_min_height— paramselectorlv_obj_set_style_max_height— paramselectorlv_obj_set_style_length— paramselectorlv_obj_set_style_x— paramselectorlv_obj_set_style_y— paramselectorlv_obj_set_style_align— paramselectorlv_obj_set_style_transform_width— paramselectorlv_obj_set_style_transform_height— paramselectorlv_obj_set_style_translate_x— paramselectorlv_obj_set_style_translate_y— paramselectorlv_obj_set_style_translate_radial— paramselectorlv_obj_set_style_transform_scale_x— paramselectorlv_obj_set_style_transform_scale_y— paramselectorlv_obj_set_style_transform_rotation— paramselectorlv_obj_set_style_transform_pivot_x— paramselectorlv_obj_set_style_transform_pivot_y— paramselectorlv_obj_set_style_transform_skew_x— paramselectorlv_obj_set_style_transform_skew_y— paramselectorlv_obj_set_style_pad_top— paramselectorlv_obj_set_style_pad_bottom— paramselectorlv_obj_set_style_pad_left— paramselectorlv_obj_set_style_pad_right— paramselectorlv_obj_set_style_pad_row— paramselectorlv_obj_set_style_pad_column— paramselectorlv_obj_set_style_pad_radial— paramselectorlv_obj_set_style_margin_top— paramselectorlv_obj_set_style_margin_bottom— paramselectorlv_obj_set_style_margin_left— paramselectorlv_obj_set_style_margin_right— paramselectorlv_obj_set_style_bg_color— paramselectorlv_obj_set_style_bg_opa— paramselectorlv_obj_set_style_bg_grad_color— paramselectorlv_obj_set_style_bg_grad_dir— paramselectorlv_obj_set_style_bg_main_stop— paramselectorlv_obj_set_style_bg_grad_stop— paramselectorlv_obj_set_style_bg_main_opa— paramselectorlv_obj_set_style_bg_grad_opa— paramselectorlv_obj_set_style_bg_grad— paramselectorlv_obj_set_style_bg_image_src— paramselectorlv_obj_set_style_bg_image_opa— paramselectorlv_obj_set_style_bg_image_recolor— paramselectorlv_obj_set_style_bg_image_recolor_opa— paramselectorlv_obj_set_style_bg_image_tiled— paramselectorlv_obj_set_style_border_color— paramselectorlv_obj_set_style_border_opa— paramselectorlv_obj_set_style_border_width— paramselectorlv_obj_set_style_border_side— paramselectorlv_obj_set_style_border_post— paramselectorlv_obj_set_style_outline_width— paramselectorlv_obj_set_style_outline_color— paramselectorlv_obj_set_style_outline_opa— paramselectorlv_obj_set_style_outline_pad— paramselectorlv_obj_set_style_shadow_width— paramselectorlv_obj_set_style_shadow_offset_x— paramselectorlv_obj_set_style_shadow_offset_y— paramselectorlv_obj_set_style_shadow_spread— paramselectorlv_obj_set_style_shadow_color— paramselectorlv_obj_set_style_shadow_opa— paramselectorlv_obj_set_style_image_opa— paramselectorlv_obj_set_style_image_recolor— paramselectorlv_obj_set_style_image_recolor_opa— paramselectorlv_obj_set_style_image_colorkey— paramselectorlv_obj_set_style_line_width— paramselectorlv_obj_set_style_line_dash_width— paramselectorlv_obj_set_style_line_dash_gap— paramselectorlv_obj_set_style_line_rounded— paramselectorlv_obj_set_style_line_color— paramselectorlv_obj_set_style_line_opa— paramselectorlv_obj_set_style_arc_width— paramselectorlv_obj_set_style_arc_rounded— paramselectorlv_obj_set_style_arc_color— paramselectorlv_obj_set_style_arc_opa— paramselectorlv_obj_set_style_arc_image_src— paramselectorlv_obj_set_style_text_color— paramselectorlv_obj_set_style_text_opa— paramselectorlv_obj_set_style_text_font— paramselectorlv_obj_set_style_text_letter_space— paramselectorlv_obj_set_style_text_line_space— paramselectorlv_obj_set_style_text_decor— paramselectorlv_obj_set_style_text_align— paramselectorlv_obj_set_style_text_outline_stroke_color— paramselectorlv_obj_set_style_text_outline_stroke_width— paramselectorlv_obj_set_style_text_outline_stroke_opa— paramselectorlv_obj_set_style_text_leading_trim— paramselectorlv_obj_set_style_blur_radius— paramselectorlv_obj_set_style_blur_backdrop— paramselectorlv_obj_set_style_blur_quality— paramselectorlv_obj_set_style_drop_shadow_radius— paramselectorlv_obj_set_style_drop_shadow_offset_x— paramselectorlv_obj_set_style_drop_shadow_offset_y— paramselectorlv_obj_set_style_drop_shadow_color— paramselectorlv_obj_set_style_drop_shadow_opa— paramselectorlv_obj_set_style_drop_shadow_quality— paramselectorlv_obj_set_style_radius— paramselectorlv_obj_set_style_radial_offset— paramselectorlv_obj_set_style_clip_corner— paramselectorlv_obj_set_style_opa— paramselectorlv_obj_set_style_opa_layered— paramselectorlv_obj_set_style_color_filter_dsc— paramselectorlv_obj_set_style_color_filter_opa— paramselectorlv_obj_set_style_recolor— paramselectorlv_obj_set_style_recolor_opa— paramselectorlv_obj_set_style_anim— paramselectorlv_obj_set_style_anim_duration— paramselectorlv_obj_set_style_transition— paramselectorlv_obj_set_style_blend_mode— paramselectorlv_obj_set_style_layout— paramselectorlv_obj_set_style_base_dir— paramselectorlv_obj_set_style_bitmap_mask_src— paramselectorlv_obj_set_style_rotary_sensitivity— paramselectorlv_obj_set_style_flex_flow— paramselectorlv_obj_set_style_flex_main_place— paramselectorlv_obj_set_style_flex_cross_place— paramselectorlv_obj_set_style_flex_track_place— paramselectorlv_obj_set_style_flex_grow— paramselectorlv_obj_set_style_grid_column_dsc_array— paramselectorlv_obj_set_style_grid_column_align— paramselectorlv_obj_set_style_grid_row_dsc_array— paramselectorlv_obj_set_style_grid_row_align— paramselectorlv_obj_set_style_grid_cell_column_pos— paramselectorlv_obj_set_style_grid_cell_x_align— paramselectorlv_obj_set_style_grid_cell_column_span— paramselectorlv_obj_set_style_grid_cell_row_pos— paramselectorlv_obj_set_style_grid_cell_y_align— paramselectorlv_obj_set_style_grid_cell_row_span— paramselector
Dependencies
Last updated on