# lv_style.h (/api/misc/lv_style_h)



<RelatedHeaders name="lv_style_private.h" isPrivate="false" />

<ApiSummary functions="26" enums="6" structs="5" macros="18" variables="1" />

Functions [#functions]

<ApiTabs items="[&#x22;Setters (10)&#x22;,&#x22;Getters (5)&#x22;,&#x22;Other (11)&#x22;]">
  <ApiTab value="Setters (10)">
    <ApiMember kind="function" name="lv_style_set_prop" file="misc/lv_style.h" line="482" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L482">
      lv_style_set_prop [#lv_style_set_prop]

      Set the value of property in a style. This function shouldn't be used directly by the user. Instead use `lv_style_set_<prop_name>()`. E.g. <ApiLink name="lv_style_set_bg_color" display="lv_style_set_bg_color()" />

      ```c title=" " lineNumbers=1
      void lv_style_set_prop(lv_style_t *style, lv_style_prop_t prop, lv_style_value_t value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                 | Description                                                                                          |
      | ------- | ---------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
      | `style` | <ApiLink name="lv_style_t" display="lv_style_t *" /> | pointer to style                                                                                     |
      | `prop`  | <ApiLink name="lv_style_prop_t" />                   | the ID of a property (e.g. `LV_STYLE_BG_COLOR`)                                                      |
      | `value` | <ApiLink name="lv_style_value_t" />                  | <ApiLink name="lv_style_value_t" /> variable in which a field is set according to the type of `prop` |
    </ApiMember>

    <ApiMember kind="function" name="lv_style_set_size" file="misc/lv_style.h" line="595" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L595">
      lv_style_set_size [#lv_style_set_size]

      Set `style`s width and height.

      ```c title=" " lineNumbers=1
      static void lv_style_set_size(lv_style_t *style, int32_t width, int32_t height)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name     | Type                                                 | Description                     |
      | -------- | ---------------------------------------------------- | ------------------------------- |
      | `style`  | <ApiLink name="lv_style_t" display="lv_style_t *" /> | pointer to style to be modified |
      | `width`  | <ApiLink name="int32_t" />                           | width in pixels                 |
      | `height` | <ApiLink name="int32_t" />                           | height in pixels                |
    </ApiMember>

    <ApiMember kind="function" name="lv_style_set_pad_all" file="misc/lv_style.h" line="606" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L606">
      lv_style_set_pad_all [#lv_style_set_pad_all]

      Set all 4 of `style`s padding values.

      ```c title=" " lineNumbers=1
      static void lv_style_set_pad_all(lv_style_t *style, int32_t value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                 | Description                     |
      | ------- | ---------------------------------------------------- | ------------------------------- |
      | `style` | <ApiLink name="lv_style_t" display="lv_style_t *" /> | pointer to style to be modified |
      | `value` | <ApiLink name="int32_t" />                           | padding dimension in pixels     |
    </ApiMember>

    <ApiMember kind="function" name="lv_style_set_pad_hor" file="misc/lv_style.h" line="619" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L619">
      lv_style_set_pad_hor [#lv_style_set_pad_hor]

      Set `style`s left and right padding values.

      ```c title=" " lineNumbers=1
      static void lv_style_set_pad_hor(lv_style_t *style, int32_t value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                 | Description                     |
      | ------- | ---------------------------------------------------- | ------------------------------- |
      | `style` | <ApiLink name="lv_style_t" display="lv_style_t *" /> | pointer to style to be modified |
      | `value` | <ApiLink name="int32_t" />                           | padding dimension in pixels     |
    </ApiMember>

    <ApiMember kind="function" name="lv_style_set_pad_ver" file="misc/lv_style.h" line="630" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L630">
      lv_style_set_pad_ver [#lv_style_set_pad_ver]

      Set `style`s top and bottom padding values.

      ```c title=" " lineNumbers=1
      static void lv_style_set_pad_ver(lv_style_t *style, int32_t value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                 | Description                     |
      | ------- | ---------------------------------------------------- | ------------------------------- |
      | `style` | <ApiLink name="lv_style_t" display="lv_style_t *" /> | pointer to style to be modified |
      | `value` | <ApiLink name="int32_t" />                           | padding dimension in pixels     |
    </ApiMember>

    <ApiMember kind="function" name="lv_style_set_pad_gap" file="misc/lv_style.h" line="641" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L641">
      lv_style_set_pad_gap [#lv_style_set_pad_gap]

      Set `style`s row and column padding gaps (applies only to Grid and Flex layouts).

      ```c title=" " lineNumbers=1
      static void lv_style_set_pad_gap(lv_style_t *style, int32_t value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                 | Description                     |
      | ------- | ---------------------------------------------------- | ------------------------------- |
      | `style` | <ApiLink name="lv_style_t" display="lv_style_t *" /> | pointer to style to be modified |
      | `value` | <ApiLink name="int32_t" />                           | gap dimension in pixels         |
    </ApiMember>

    <ApiMember kind="function" name="lv_style_set_margin_hor" file="misc/lv_style.h" line="652" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L652">
      lv_style_set_margin_hor [#lv_style_set_margin_hor]

      Set `style`s left and right margin values.

      ```c title=" " lineNumbers=1
      static void lv_style_set_margin_hor(lv_style_t *style, int32_t value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                 | Description                     |
      | ------- | ---------------------------------------------------- | ------------------------------- |
      | `style` | <ApiLink name="lv_style_t" display="lv_style_t *" /> | pointer to style to be modified |
      | `value` | <ApiLink name="int32_t" />                           | margin dimension in pixels      |
    </ApiMember>

    <ApiMember kind="function" name="lv_style_set_margin_ver" file="misc/lv_style.h" line="663" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L663">
      lv_style_set_margin_ver [#lv_style_set_margin_ver]

      Set `style`s top and bottom margin values.

      ```c title=" " lineNumbers=1
      static void lv_style_set_margin_ver(lv_style_t *style, int32_t value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                 | Description                     |
      | ------- | ---------------------------------------------------- | ------------------------------- |
      | `style` | <ApiLink name="lv_style_t" display="lv_style_t *" /> | pointer to style to be modified |
      | `value` | <ApiLink name="int32_t" />                           | margin dimension in pixels      |
    </ApiMember>

    <ApiMember kind="function" name="lv_style_set_margin_all" file="misc/lv_style.h" line="674" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L674">
      lv_style_set_margin_all [#lv_style_set_margin_all]

      Set all 4 of `style`s margin values.

      ```c title=" " lineNumbers=1
      static void lv_style_set_margin_all(lv_style_t *style, int32_t value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                 | Description                     |
      | ------- | ---------------------------------------------------- | ------------------------------- |
      | `style` | <ApiLink name="lv_style_t" display="lv_style_t *" /> | pointer to style to be modified |
      | `value` | <ApiLink name="int32_t" />                           | margin dimension in pixels      |
    </ApiMember>

    <ApiMember kind="function" name="lv_style_set_transform_scale" file="misc/lv_style.h" line="692" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L692">
      lv_style_set_transform_scale [#lv_style_set_transform_scale]

      Set `style`s X and Y transform scale values.

      ```c title=" " lineNumbers=1
      static void lv_style_set_transform_scale(lv_style_t *style, int32_t value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                 | Description                                                                                                                                                       |
      | ------- | ---------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
      | `style` | <ApiLink name="lv_style_t" display="lv_style_t *" /> | pointer to style to be modified                                                                                                                                   |
      | `value` | <ApiLink name="int32_t" />                           | scale factor. Example values:<br />- 256 or LV\_SCALE\_NONE: no zoom<br />- \<256: scale down<br />- >256: scale up<br />- 128: half size<br />- 512: double size |
    </ApiMember>
  </ApiTab>

  <ApiTab value="Getters (5)">
    <ApiMember kind="function" name="lv_style_get_num_custom_props" file="misc/lv_style.h" line="464" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L464">
      lv_style_get_num_custom_props [#lv_style_get_num_custom_props]

      Get the number of custom properties that have been registered thus far.

      ```c title=" " lineNumbers=1
      lv_style_prop_t lv_style_get_num_custom_props(void)
      ```
    </ApiMember>

    <ApiMember kind="function" name="lv_style_get_prop" file="misc/lv_style.h" line="493" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L493">
      lv_style_get_prop [#lv_style_get_prop]

      Get the value of a property

      ```c title=" " lineNumbers=1
      lv_style_res_t lv_style_get_prop(const lv_style_t *style, lv_style_prop_t prop, lv_style_value_t *value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                             | Description                                                                  |
      | ------- | ---------------------------------------------------------------- | ---------------------------------------------------------------------------- |
      | `style` | <ApiLink name="lv_style_t" display="const lv_style_t *" />       | pointer to a style                                                           |
      | `prop`  | <ApiLink name="lv_style_prop_t" />                               | the ID of a property                                                         |
      | `value` | <ApiLink name="lv_style_value_t" display="lv_style_value_t *" /> | pointer to a <ApiLink name="lv_style_value_t" /> variable to store the value |

      **Returns:** <ApiLink name="lv_style_res_t" /> — LV\_RESULT\_INVALID: the property wasn't found in the style (`value` is unchanged) LV\_RESULT\_OK: the property was fond, and `value` is set accordingly

      <Callout type="info">
        For performance reasons there are no sanity check on `style`
      </Callout>
    </ApiMember>

    <ApiMember kind="function" name="lv_style_prop_get_default" file="misc/lv_style.h" line="519" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L519">
      lv_style_prop_get_default [#lv_style_prop_get_default]

      Get the default value of a property

      ```c title=" " lineNumbers=1
      lv_style_value_t lv_style_prop_get_default(lv_style_prop_t prop)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name   | Type                               | Description          |
      | ------ | ---------------------------------- | -------------------- |
      | `prop` | <ApiLink name="lv_style_prop_t" /> | the ID of a property |

      **Returns:** <ApiLink name="lv_style_value_t" /> — the default value
    </ApiMember>

    <ApiMember kind="function" name="lv_style_get_prop_inlined" file="misc/lv_style.h" line="531" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L531">
      lv_style_get_prop_inlined [#lv_style_get_prop_inlined]

      Get the value of a property

      ```c title=" " lineNumbers=1
      static lv_style_res_t lv_style_get_prop_inlined(const lv_style_t *style, lv_style_prop_t prop, lv_style_value_t *value)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                             | Description                                                                  |
      | ------- | ---------------------------------------------------------------- | ---------------------------------------------------------------------------- |
      | `style` | <ApiLink name="lv_style_t" display="const lv_style_t *" />       | pointer to a style                                                           |
      | `prop`  | <ApiLink name="lv_style_prop_t" />                               | the ID of a property                                                         |
      | `value` | <ApiLink name="lv_style_value_t" display="lv_style_value_t *" /> | pointer to a <ApiLink name="lv_style_value_t" /> variable to store the value |

      **Returns:** <ApiLink name="lv_style_res_t" /> — LV\_RESULT\_INVALID: the property wasn't found in the style (`value` is unchanged) LV\_RESULT\_OK: the property was fond, and `value` is set accordingly

      <Callout type="info">
        For performance reasons there are no sanity check on `style`
      </Callout>

      <Callout type="info">
        This function is the same as <ApiLink name="lv_style_get_prop" /> but inlined. Use it only on performance critical places
      </Callout>
    </ApiMember>

    <ApiMember kind="function" name="lv_style_get_prop_group" file="misc/lv_style.h" line="571" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L571">
      lv_style_get_prop_group [#lv_style_get_prop_group]

      Tell the group of a property. If the a property from a group is set in a style the (1 \<\< group) bit of style->has\_group is set. It allows early skipping the style if the property is not exists in the style at all.

      ```c title=" " lineNumbers=1
      static uint32_t lv_style_get_prop_group(lv_style_prop_t prop)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name   | Type                               | Description      |
      | ------ | ---------------------------------- | ---------------- |
      | `prop` | <ApiLink name="lv_style_prop_t" /> | a style property |

      **Returns:** <ApiLink name="uint32_t" /> — the group \[0..30] 30 means all the custom properties with index > 120
    </ApiMember>
  </ApiTab>

  <ApiTab value="Other (11)">
    <ApiMember kind="function" name="lv_style_init" file="misc/lv_style.h" line="396" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L396">
      lv_style_init [#lv_style_init]

      Initialize a style

      ```c title=" " lineNumbers=1
      void lv_style_init(lv_style_t *style)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                 | Description                      |
      | ------- | ---------------------------------------------------- | -------------------------------- |
      | `style` | <ApiLink name="lv_style_t" display="lv_style_t *" /> | pointer to a style to initialize |

      <Callout type="info">
        Do not call `lv_style_init` on styles that already have some properties because this function won't free the used memory, just sets a default state for the style. In other words be sure to initialize styles only once!
      </Callout>
    </ApiMember>

    <ApiMember kind="function" name="lv_style_reset" file="misc/lv_style.h" line="402" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L402">
      lv_style_reset [#lv_style_reset]

      Clear all properties from a style and free all allocated memories.

      ```c title=" " lineNumbers=1
      void lv_style_reset(lv_style_t *style)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                 | Description        |
      | ------- | ---------------------------------------------------- | ------------------ |
      | `style` | <ApiLink name="lv_style_t" display="lv_style_t *" /> | pointer to a style |
    </ApiMember>

    <ApiMember kind="function" name="lv_style_copy" file="misc/lv_style.h" line="415" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L415">
      lv_style_copy [#lv_style_copy]

      Copy all properties of a style to an other. It has the same affect callying the same `lv_set_style_...` functions on both styles. It means new memory will be allocated to store the properties in the destination style. After the copy the destination style is fully independent of the source and source can removed without affecting the destination style.

      ```c title=" " lineNumbers=1
      void lv_style_copy(lv_style_t *dst, const lv_style_t *src)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                       | Description                                                 |
      | ----- | ---------------------------------------------------------- | ----------------------------------------------------------- |
      | `dst` | <ApiLink name="lv_style_t" display="lv_style_t *" />       | the destination to copy into (can not the a constant style) |
      | `src` | <ApiLink name="lv_style_t" display="const lv_style_t *" /> | the source style to copy from.                              |
    </ApiMember>

    <ApiMember kind="function" name="lv_style_merge" file="misc/lv_style.h" line="428" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L428">
      lv_style_merge [#lv_style_merge]

      Copy all properties of a style to an other without resetting the dst style. It has the same effect as calling the same `lv_set_style_...` functions on both styles. It means new memory will be allocated to store the properties in the destination style. After the copy the destination style is fully independent of the source and source can removed without affecting the destination style.

      ```c title=" " lineNumbers=1
      void lv_style_merge(lv_style_t *dst, const lv_style_t *src)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name  | Type                                                       | Description                                               |
      | ----- | ---------------------------------------------------------- | --------------------------------------------------------- |
      | `dst` | <ApiLink name="lv_style_t" display="lv_style_t *" />       | the destination to copy into (cannot be a constant style) |
      | `src` | <ApiLink name="lv_style_t" display="const lv_style_t *" /> | the source style to copy from.                            |
    </ApiMember>

    <ApiMember kind="function" name="lv_style_is_const" file="misc/lv_style.h" line="436" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L436">
      lv_style_is_const [#lv_style_is_const]

      Check if a style is constant

      ```c title=" " lineNumbers=1
      static bool lv_style_is_const(const lv_style_t *style)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                       | Description        |
      | ------- | ---------------------------------------------------------- | ------------------ |
      | `style` | <ApiLink name="lv_style_t" display="const lv_style_t *" /> | pointer to a style |

      **Returns:** <ApiLink name="bool" /> — true: the style is constant
    </ApiMember>

    <ApiMember kind="function" name="lv_style_register_prop" file="misc/lv_style.h" line="459" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L459">
      lv_style_register_prop [#lv_style_register_prop]

      Register a new style property for custom usage
      Example:

      ```c title=" " lineNumbers=1
      lv_style_prop_t MY_PROP;
      static inline void lv_style_set_my_prop(lv_style_t * style, lv_color_t value) {
      lv_style_value_t v = {.color = value}; lv_style_set_prop(style, MY_PROP, v); }

      ...
      MY_PROP = lv_style_register_prop();
      ...
      lv_style_set_my_prop(&style1, lv_palette_main(LV_PALETTE_RED));
      ```

      ```c title=" " lineNumbers=1
      lv_style_prop_t lv_style_register_prop(uint8_t flag)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name   | Type                       |
      | ------ | -------------------------- |
      | `flag` | <ApiLink name="uint8_t" /> |

      **Returns:** <ApiLink name="lv_style_prop_t" /> — a new property ID, or LV\_STYLE\_PROP\_INV if there are no more available.
    </ApiMember>

    <ApiMember kind="function" name="lv_style_remove_prop" file="misc/lv_style.h" line="472" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L472">
      lv_style_remove_prop [#lv_style_remove_prop]

      Remove a property from a style

      ```c title=" " lineNumbers=1
      bool lv_style_remove_prop(lv_style_t *style, lv_style_prop_t prop)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                 | Description                         |
      | ------- | ---------------------------------------------------- | ----------------------------------- |
      | `style` | <ApiLink name="lv_style_t" display="lv_style_t *" /> | pointer to a style                  |
      | `prop`  | <ApiLink name="lv_style_prop_t" />                   | a style property ORed with a state. |

      **Returns:** <ApiLink name="bool" /> — true: the property was found and removed; false: the property wasn't found
    </ApiMember>

    <ApiMember kind="function" name="lv_style_transition_dsc_init" file="misc/lv_style.h" line="511" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L511">
      lv_style_transition_dsc_init [#lv_style_transition_dsc_init]

      Initialize a transition descriptor.
      Example:

      ```c title=" " lineNumbers=1
      const static lv_style_prop_t trans_props[] = { LV_STYLE_BG_OPA, LV_STYLE_BG_COLOR, 0 };
      static lv_style_transition_dsc_t trans1;
      lv_style_transition_dsc_init(&trans1, trans_props, NULL, 300, 0, NULL);
      ```

      ```c title=" " lineNumbers=1
      void lv_style_transition_dsc_init(lv_style_transition_dsc_t *tr, const lv_style_prop_t props[], lv_anim_path_cb_t path_cb, uint32_t time, uint32_t delay, void *user_data)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name        | Type                                                                               | Description                                                                                                   |
      | ----------- | ---------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
      | `tr`        | <ApiLink name="lv_style_transition_dsc_t" display="lv_style_transition_dsc_t *" /> | pointer to a transition descriptor to initialize                                                              |
      | `props`     | <ApiLink name="lv_style_prop_t" display="const lv_style_prop_t" />                 | an array with the properties to transition. The last element must be zero.                                    |
      | `path_cb`   | <ApiLink name="lv_anim_path_cb_t" />                                               | an animation path (ease) callback. If `NULL` liner path will be used.                                         |
      | `time`      | <ApiLink name="uint32_t" />                                                        | duration of the transition in \[ms]                                                                           |
      | `delay`     | <ApiLink name="uint32_t" />                                                        | delay before the transition in \[ms]                                                                          |
      | `user_data` | `void *`                                                                           | any custom data that will be saved in the transition animation and will be available when `path_cb` is called |
    </ApiMember>

    <ApiMember kind="function" name="lv_style_is_empty" file="misc/lv_style.h" line="563" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L563">
      lv_style_is_empty [#lv_style_is_empty]

      Checks if a style is empty (has no properties)

      ```c title=" " lineNumbers=1
      bool lv_style_is_empty(const lv_style_t *style)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name    | Type                                                       | Description        |
      | ------- | ---------------------------------------------------------- | ------------------ |
      | `style` | <ApiLink name="lv_style_t" display="const lv_style_t *" /> | pointer to a style |

      **Returns:** <ApiLink name="bool" /> — true if the style is empty
    </ApiMember>

    <ApiMember kind="function" name="lv_style_prop_lookup_flags" file="misc/lv_style.h" line="585" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L585">
      lv_style_prop_lookup_flags [#lv_style_prop_lookup_flags]

      Get the flags of a built-in or custom property.

      ```c title=" " lineNumbers=1
      uint8_t lv_style_prop_lookup_flags(lv_style_prop_t prop)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name   | Type                               | Description      |
      | ------ | ---------------------------------- | ---------------- |
      | `prop` | <ApiLink name="lv_style_prop_t" /> | a style property |

      **Returns:** <ApiLink name="uint8_t" /> — the flags of the property
    </ApiMember>

    <ApiMember kind="function" name="lv_style_prop_has_flag" file="misc/lv_style.h" line="708" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L708">
      lv_style_prop_has_flag [#lv_style_prop_has_flag]

      Check if the style property has a specified behavioral flag.

      Do not pass multiple flags to this function as backwards-compatibility is not guaranteed for that.

      ```c title=" " lineNumbers=1
      static bool lv_style_prop_has_flag(lv_style_prop_t prop, uint8_t flag)
      ```

      <span className="sr-only">
        Parameters
      </span>

      | Name   | Type                               | Description |
      | ------ | ---------------------------------- | ----------- |
      | `prop` | <ApiLink name="lv_style_prop_t" /> | Property ID |
      | `flag` | <ApiLink name="uint8_t" />         | Flag        |

      **Returns:** <ApiLink name="bool" /> — true if the flag is set for this property
    </ApiMember>
  </ApiTab>
</ApiTabs>

Enums [#enums]

<ApiMember kind="enum" name="lv_blend_mode_t" file="misc/lv_style.h" line="89" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L89">
  lv_blend_mode_t [#lv_blend_mode_t]

  Possible options for blending opaque drawings

  | Name                        | Description                                           |
  | --------------------------- | ----------------------------------------------------- |
  | `LV_BLEND_MODE_NORMAL`      | Simply mix according to the opacity value             |
  | `LV_BLEND_MODE_ADDITIVE`    | Add the respective color channels                     |
  | `LV_BLEND_MODE_SUBTRACTIVE` | Subtract the foreground from the background           |
  | `LV_BLEND_MODE_MULTIPLY`    | Multiply the foreground and background                |
  | `LV_BLEND_MODE_DIFFERENCE`  | Absolute difference between foreground and background |
</ApiMember>

<TypeUsedBy name="lv_blend_mode_t" count="5">
  * `lv_obj_set_style_blend_mode` — param `value`
  * `lv_nemagfx_blending_mode` — param `lv_blend_mode`
  * `lv_vg_lite_blend_mode` — param `blend_mode`
  * `lv_style_set_blend_mode` — param `value`
  * `lv_image_set_blend_mode` — param `blend_mode`
</TypeUsedBy>

<ApiMember kind="enum" name="lv_text_decor_t" file="misc/lv_style.h" line="101" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L101">
  lv_text_decor_t [#lv_text_decor_t]

  Some options to apply decorations on texts. 'OR'ed values can be used.

  | Name                          | Value  |
  | ----------------------------- | ------ |
  | `LV_TEXT_DECOR_NONE`          | `0x00` |
  | `LV_TEXT_DECOR_UNDERLINE`     | `0x01` |
  | `LV_TEXT_DECOR_STRIKETHROUGH` | `0x02` |
</ApiMember>

<TypeUsedBy name="lv_text_decor_t" count="2">
  * `lv_obj_set_style_text_decor` — param `value`
  * `lv_style_set_text_decor` — param `value`
</TypeUsedBy>

<ApiMember kind="enum" name="lv_border_side_t" file="misc/lv_style.h" line="111" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L111">
  lv_border_side_t [#lv_border_side_t]

  Selects on which sides border should be drawn 'OR'ed values can be used.

  | Name                      | Value  | Description                                  |
  | ------------------------- | ------ | -------------------------------------------- |
  | `LV_BORDER_SIDE_NONE`     | `0x00` |                                              |
  | `LV_BORDER_SIDE_BOTTOM`   | `0x01` |                                              |
  | `LV_BORDER_SIDE_TOP`      | `0x02` |                                              |
  | `LV_BORDER_SIDE_LEFT`     | `0x04` |                                              |
  | `LV_BORDER_SIDE_RIGHT`    | `0x08` |                                              |
  | `LV_BORDER_SIDE_FULL`     | `0x0F` |                                              |
  | `LV_BORDER_SIDE_INTERNAL` | `0x10` | FOR matrix-like objects (e.g. Button matrix) |
</ApiMember>

<TypeUsedBy name="lv_border_side_t" count="2">
  * `lv_obj_set_style_border_side` — param `value`
  * `lv_style_set_border_side` — param `value`
</TypeUsedBy>

<ApiMember kind="enum" name="lv_blur_quality_t" file="misc/lv_style.h" line="121" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L121">
  lv_blur_quality_t [#lv_blur_quality_t]

  | Name                        | Value | Description                   |
  | --------------------------- | ----- | ----------------------------- |
  | `LV_BLUR_QUALITY_AUTO`      | `0`   | Set the quality automatically |
  | `LV_BLUR_QUALITY_SPEED`     |       | Prefer speed over precision   |
  | `LV_BLUR_QUALITY_PRECISION` |       | Prefer precision over speed   |
</ApiMember>

<TypeUsedBy name="lv_blur_quality_t" count="4">
  * `lv_obj_set_style_blur_quality` — param `value`
  * `lv_obj_set_style_drop_shadow_quality` — param `value`
  * `lv_style_set_blur_quality` — param `value`
  * `lv_style_set_drop_shadow_quality` — param `value`
</TypeUsedBy>

<ApiMember kind="enum" name="_lv_style_id_t" file="misc/lv_style.h" line="149" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L149">
  \_lv_style_id_t [#_lv_style_id_t]

  Enumeration of all built in style properties

  Props are split into groups of 16. When adding a new prop to a group, ensure it does not overflow into the next one.

  | Name                                 | Value                             |
  | ------------------------------------ | --------------------------------- |
  | `LV_STYLE_PROP_INV`                  | `0`                               |
  | `LV_STYLE_WIDTH`                     | `1`                               |
  | `LV_STYLE_HEIGHT`                    |                                   |
  | `LV_STYLE_LENGTH`                    |                                   |
  | `LV_STYLE_TRANSFORM_WIDTH`           |                                   |
  | `LV_STYLE_TRANSFORM_HEIGHT`          |                                   |
  | `LV_STYLE_MIN_WIDTH`                 | `8`                               |
  | `LV_STYLE_MAX_WIDTH`                 |                                   |
  | `LV_STYLE_MIN_HEIGHT`                |                                   |
  | `LV_STYLE_MAX_HEIGHT`                |                                   |
  | `LV_STYLE_TRANSLATE_X`               |                                   |
  | `LV_STYLE_TRANSLATE_Y`               |                                   |
  | `LV_STYLE_RADIAL_OFFSET`             |                                   |
  | `LV_STYLE_X`                         | `16`                              |
  | `LV_STYLE_Y`                         |                                   |
  | `LV_STYLE_ALIGN`                     |                                   |
  | `LV_STYLE_PAD_TOP`                   | `24`                              |
  | `LV_STYLE_PAD_BOTTOM`                |                                   |
  | `LV_STYLE_PAD_LEFT`                  |                                   |
  | `LV_STYLE_PAD_RIGHT`                 |                                   |
  | `LV_STYLE_PAD_RADIAL`                |                                   |
  | `LV_STYLE_PAD_ROW`                   |                                   |
  | `LV_STYLE_PAD_COLUMN`                |                                   |
  | `LV_STYLE_MARGIN_TOP`                | `32`                              |
  | `LV_STYLE_MARGIN_BOTTOM`             |                                   |
  | `LV_STYLE_MARGIN_LEFT`               |                                   |
  | `LV_STYLE_MARGIN_RIGHT`              |                                   |
  | `LV_STYLE_BG_GRAD`                   | `40`                              |
  | `LV_STYLE_BG_GRAD_DIR`               |                                   |
  | `LV_STYLE_BG_MAIN_OPA`               |                                   |
  | `LV_STYLE_BG_GRAD_OPA`               |                                   |
  | `LV_STYLE_BG_GRAD_COLOR`             |                                   |
  | `LV_STYLE_BG_MAIN_STOP`              |                                   |
  | `LV_STYLE_BG_GRAD_STOP`              |                                   |
  | `LV_STYLE_BG_IMAGE_SRC`              | `48`                              |
  | `LV_STYLE_BG_IMAGE_OPA`              |                                   |
  | `LV_STYLE_BG_IMAGE_RECOLOR_OPA`      |                                   |
  | `LV_STYLE_BG_IMAGE_TILED`            |                                   |
  | `LV_STYLE_BG_IMAGE_RECOLOR`          |                                   |
  | `LV_STYLE_BORDER_WIDTH`              | `56`                              |
  | `LV_STYLE_BORDER_COLOR`              |                                   |
  | `LV_STYLE_BORDER_OPA`                |                                   |
  | `LV_STYLE_BORDER_POST`               |                                   |
  | `LV_STYLE_BORDER_SIDE`               |                                   |
  | `LV_STYLE_OUTLINE_WIDTH`             | `64`                              |
  | `LV_STYLE_OUTLINE_COLOR`             |                                   |
  | `LV_STYLE_OUTLINE_OPA`               |                                   |
  | `LV_STYLE_OUTLINE_PAD`               |                                   |
  | `LV_STYLE_BG_OPA`                    | `72`                              |
  | `LV_STYLE_BG_COLOR`                  |                                   |
  | `LV_STYLE_SHADOW_WIDTH`              |                                   |
  | `LV_STYLE_LINE_WIDTH`                |                                   |
  | `LV_STYLE_ARC_WIDTH`                 |                                   |
  | `LV_STYLE_TEXT_FONT`                 |                                   |
  | `LV_STYLE_IMAGE_RECOLOR_OPA`         |                                   |
  | `LV_STYLE_IMAGE_OPA`                 | `80`                              |
  | `LV_STYLE_SHADOW_OPA`                |                                   |
  | `LV_STYLE_LINE_OPA`                  |                                   |
  | `LV_STYLE_ARC_OPA`                   |                                   |
  | `LV_STYLE_TEXT_OPA`                  |                                   |
  | `LV_STYLE_SHADOW_COLOR`              | `88`                              |
  | `LV_STYLE_IMAGE_RECOLOR`             |                                   |
  | `LV_STYLE_LINE_COLOR`                |                                   |
  | `LV_STYLE_ARC_COLOR`                 |                                   |
  | `LV_STYLE_TEXT_COLOR`                |                                   |
  | `LV_STYLE_ARC_IMAGE_SRC`             | `96`                              |
  | `LV_STYLE_SHADOW_OFFSET_X`           |                                   |
  | `LV_STYLE_SHADOW_OFFSET_Y`           |                                   |
  | `LV_STYLE_SHADOW_SPREAD`             |                                   |
  | `LV_STYLE_LINE_DASH_WIDTH`           |                                   |
  | `LV_STYLE_TEXT_ALIGN`                |                                   |
  | `LV_STYLE_TEXT_LETTER_SPACE`         |                                   |
  | `LV_STYLE_TEXT_LINE_SPACE`           |                                   |
  | `LV_STYLE_LINE_DASH_GAP`             | `104`                             |
  | `LV_STYLE_LINE_ROUNDED`              |                                   |
  | `LV_STYLE_IMAGE_COLORKEY`            |                                   |
  | `LV_STYLE_TEXT_OUTLINE_STROKE_WIDTH` |                                   |
  | `LV_STYLE_TEXT_OUTLINE_STROKE_OPA`   |                                   |
  | `LV_STYLE_TEXT_OUTLINE_STROKE_COLOR` |                                   |
  | `LV_STYLE_TEXT_DECOR`                |                                   |
  | `LV_STYLE_ARC_ROUNDED`               |                                   |
  | `LV_STYLE_OPA`                       | `112`                             |
  | `LV_STYLE_OPA_LAYERED`               |                                   |
  | `LV_STYLE_COLOR_FILTER_DSC`          |                                   |
  | `LV_STYLE_COLOR_FILTER_OPA`          |                                   |
  | `LV_STYLE_ANIM`                      |                                   |
  | `LV_STYLE_ANIM_DURATION`             |                                   |
  | `LV_STYLE_TRANSITION`                |                                   |
  | `LV_STYLE_RADIUS`                    | `120`                             |
  | `LV_STYLE_BITMAP_MASK_SRC`           |                                   |
  | `LV_STYLE_BLEND_MODE`                |                                   |
  | `LV_STYLE_ROTARY_SENSITIVITY`        |                                   |
  | `LV_STYLE_TRANSLATE_RADIAL`          |                                   |
  | `LV_STYLE_CLIP_CORNER`               | `128`                             |
  | `LV_STYLE_BASE_DIR`                  |                                   |
  | `LV_STYLE_RECOLOR`                   |                                   |
  | `LV_STYLE_RECOLOR_OPA`               |                                   |
  | `LV_STYLE_LAYOUT`                    |                                   |
  | `LV_STYLE_BLUR_RADIUS`               | `136`                             |
  | `LV_STYLE_BLUR_BACKDROP`             |                                   |
  | `LV_STYLE_BLUR_QUALITY`              |                                   |
  | `LV_STYLE_DROP_SHADOW_RADIUS`        | `144`                             |
  | `LV_STYLE_DROP_SHADOW_OFFSET_X`      |                                   |
  | `LV_STYLE_DROP_SHADOW_OFFSET_Y`      |                                   |
  | `LV_STYLE_DROP_SHADOW_COLOR`         |                                   |
  | `LV_STYLE_DROP_SHADOW_OPA`           |                                   |
  | `LV_STYLE_DROP_SHADOW_QUALITY`       |                                   |
  | `LV_STYLE_TRANSFORM_SCALE_X`         | `152`                             |
  | `LV_STYLE_TRANSFORM_SCALE_Y`         |                                   |
  | `LV_STYLE_TRANSFORM_PIVOT_X`         |                                   |
  | `LV_STYLE_TRANSFORM_PIVOT_Y`         |                                   |
  | `LV_STYLE_TRANSFORM_ROTATION`        |                                   |
  | `LV_STYLE_TRANSFORM_SKEW_X`          |                                   |
  | `LV_STYLE_TRANSFORM_SKEW_Y`          |                                   |
  | `LV_STYLE_FLEX_FLOW`                 | `160`                             |
  | `LV_STYLE_FLEX_MAIN_PLACE`           |                                   |
  | `LV_STYLE_FLEX_CROSS_PLACE`          |                                   |
  | `LV_STYLE_FLEX_TRACK_PLACE`          |                                   |
  | `LV_STYLE_FLEX_GROW`                 |                                   |
  | `LV_STYLE_GRID_COLUMN_DSC_ARRAY`     |                                   |
  | `LV_STYLE_GRID_ROW_DSC_ARRAY`        |                                   |
  | `LV_STYLE_GRID_COLUMN_ALIGN`         | `168`                             |
  | `LV_STYLE_GRID_ROW_ALIGN`            |                                   |
  | `LV_STYLE_GRID_CELL_COLUMN_POS`      |                                   |
  | `LV_STYLE_GRID_CELL_COLUMN_SPAN`     |                                   |
  | `LV_STYLE_GRID_CELL_X_ALIGN`         |                                   |
  | `LV_STYLE_GRID_CELL_ROW_POS`         |                                   |
  | `LV_STYLE_GRID_CELL_ROW_SPAN`        |                                   |
  | `LV_STYLE_GRID_CELL_Y_ALIGN`         |                                   |
  | `LV_STYLE_TEXT_LEADING_TRIM`         | `176`                             |
  | `LV_STYLE_LAST_BUILT_IN_PROP`        |                                   |
  | `LV_STYLE_NUM_BUILT_IN_PROPS`        | `LV_STYLE_LAST_BUILT_IN_PROP + 1` |
  | `LV_STYLE_PROP_ANY`                  | `0xFF`                            |
  | `LV_STYLE_PROP_CONST`                | `0xFF`                            |
</ApiMember>

<ApiMember kind="enum" name="lv_style_res_t" file="misc/lv_style.h" line="346" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L346">
  lv_style_res_t [#lv_style_res_t]

  | Name                     |
  | ------------------------ |
  | `LV_STYLE_RES_NOT_FOUND` |
  | `LV_STYLE_RES_FOUND`     |
</ApiMember>

Structs [#structs]

<ApiMember kind="struct" name="lv_image_colorkey_t">
  lv_image_colorkey_t [#lv_image_colorkey_t]

  A image colorkey definition. The transparency within the color range of \[low, high] will be set to LV\_OPA\_TRANSP If the "enable" flag is set to true.

  | Member | Type                          | Description |
  | ------ | ----------------------------- | ----------- |
  | `low`  | <ApiLink name="lv_color_t" /> |             |
  | `high` | <ApiLink name="lv_color_t" /> |             |
</ApiMember>

<TypeUsedBy name="lv_image_colorkey_t" count="3">
  * `lv_obj_set_style_image_colorkey` — param `value`
  * `lv_vg_lite_set_color_key` — param `colorkey`
  * `lv_style_set_image_colorkey` — param `value`
</TypeUsedBy>

<ApiMember kind="struct" name="lv_style_value_t">
  lv_style_value_t [#lv_style_value_t]

  A common type to handle all the property types in the same way.

  | Member  | Type                          | Description                                                          |
  | ------- | ----------------------------- | -------------------------------------------------------------------- |
  | `num`   | <ApiLink name="int32_t" />    | Number integer number (opacity, enums, booleans or "normal" numbers) |
  | `ptr`   | `const void *`                | Constant pointers (font, cone text, etc)                             |
  | `color` | <ApiLink name="lv_color_t" /> | Colors                                                               |
</ApiMember>

<TypeUsedBy name="lv_style_value_t" count="6">
  * `lv_obj_set_local_style_prop` — param `value`
  * `lv_obj_get_local_style_prop` — param `value`
  * `lv_obj_style_apply_color_filter` — param `v`
  * `lv_style_set_prop` — param `value`
  * `lv_style_get_prop` — param `value`
  * `lv_style_get_prop_inlined` — param `value`
</TypeUsedBy>

<ApiMember kind="struct" name="lv_style_transition_dsc_t">
  lv_style_transition_dsc_t [#lv_style_transition_dsc_t]

  Descriptor for style transitions

  | Member      | Type                                                                 | Description                                                          |
  | ----------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
  | `props`     | <ApiLink name="lv_style_prop_t" display="const lv_style_prop_t *" /> | An array with the properties to animate.                             |
  | `user_data` | `void *`                                                             | A custom user data that will be passed to the animation's user\_data |
  | `path_xcb`  | <ApiLink name="lv_anim_path_cb_t" />                                 | A path for the animation.                                            |
  | `time`      | <ApiLink name="uint32_t" />                                          | Duration of the transition in \[ms]                                  |
  | `delay`     | <ApiLink name="uint32_t" />                                          | Delay before the transition in \[ms]                                 |
</ApiMember>

<TypeUsedBy name="lv_style_transition_dsc_t" count="3">
  * `lv_obj_set_style_transition` — param `value`
  * `lv_style_transition_dsc_init` — param `tr`
  * `lv_style_set_transition` — param `value`
</TypeUsedBy>

<ApiMember kind="struct" name="lv_style_const_prop_t">
  lv_style_const_prop_t [#lv_style_const_prop_t]

  Descriptor of a constant style property.

  | Member  | Type                                | Description |
  | ------- | ----------------------------------- | ----------- |
  | `prop`  | <ApiLink name="lv_style_prop_t" />  |             |
  | `value` | <ApiLink name="lv_style_value_t" /> |             |
</ApiMember>

<ApiMember kind="struct" name="lv_style_t">
  lv_style_t [#lv_style_t]

  Descriptor of a style (a collection of properties and values).

  | Member             | Type                        | Description                     |
  | ------------------ | --------------------------- | ------------------------------- |
  | `sentinel`         | <ApiLink name="uint32_t" /> |                                 |
  | `values_and_props` | `void *`                    |                                 |
  | `has_group`        | <ApiLink name="uint32_t" /> |                                 |
  | `prop_cnt`         | <ApiLink name="uint8_t" />  | 255 means it's a constant style |
</ApiMember>

<TypeUsedBy name="lv_style_t" count="163">
  * `lv_obj_add_style` — param `style`
  * `lv_obj_replace_style` — param `old_style`
  * `lv_obj_replace_style` — param `new_style`
  * `lv_obj_remove_style` — param `style`
  * `lv_obj_report_style_change` — param `style`
  * `lv_obj_style_set_disabled` — param `style`
  * `lv_obj_style_get_disabled` — param `style`
  * `lv_obj_bind_style` — param `style`
  * `lv_style_init` — param `style`
  * `lv_style_reset` — param `style`
  * `lv_style_copy` — param `dst`
  * `lv_style_copy` — param `src`
  * `lv_style_merge` — param `dst`
  * `lv_style_merge` — param `src`
  * `lv_style_is_const` — param `style`
  * `lv_style_remove_prop` — param `style`
  * `lv_style_set_prop` — param `style`
  * `lv_style_get_prop` — param `style`
  * `lv_style_get_prop_inlined` — param `style`
  * `lv_style_is_empty` — param `style`
  * `lv_style_set_size` — param `style`
  * `lv_style_set_pad_all` — param `style`
  * `lv_style_set_pad_hor` — param `style`
  * `lv_style_set_pad_ver` — param `style`
  * `lv_style_set_pad_gap` — param `style`
  * `lv_style_set_margin_hor` — param `style`
  * `lv_style_set_margin_ver` — param `style`
  * `lv_style_set_margin_all` — param `style`
  * `lv_style_set_transform_scale` — param `style`
  * `lv_style_set_width` — param `style`
  * `lv_style_set_min_width` — param `style`
  * `lv_style_set_max_width` — param `style`
  * `lv_style_set_height` — param `style`
  * `lv_style_set_min_height` — param `style`
  * `lv_style_set_max_height` — param `style`
  * `lv_style_set_length` — param `style`
  * `lv_style_set_x` — param `style`
  * `lv_style_set_y` — param `style`
  * `lv_style_set_align` — param `style`
  * `lv_style_set_transform_width` — param `style`
  * `lv_style_set_transform_height` — param `style`
  * `lv_style_set_translate_x` — param `style`
  * `lv_style_set_translate_y` — param `style`
  * `lv_style_set_translate_radial` — param `style`
  * `lv_style_set_transform_scale_x` — param `style`
  * `lv_style_set_transform_scale_y` — param `style`
  * `lv_style_set_transform_rotation` — param `style`
  * `lv_style_set_transform_pivot_x` — param `style`
  * `lv_style_set_transform_pivot_y` — param `style`
  * `lv_style_set_transform_skew_x` — param `style`
  * `lv_style_set_transform_skew_y` — param `style`
  * `lv_style_set_pad_top` — param `style`
  * `lv_style_set_pad_bottom` — param `style`
  * `lv_style_set_pad_left` — param `style`
  * `lv_style_set_pad_right` — param `style`
  * `lv_style_set_pad_row` — param `style`
  * `lv_style_set_pad_column` — param `style`
  * `lv_style_set_pad_radial` — param `style`
  * `lv_style_set_margin_top` — param `style`
  * `lv_style_set_margin_bottom` — param `style`
  * `lv_style_set_margin_left` — param `style`
  * `lv_style_set_margin_right` — param `style`
  * `lv_style_set_bg_color` — param `style`
  * `lv_style_set_bg_opa` — param `style`
  * `lv_style_set_bg_grad_color` — param `style`
  * `lv_style_set_bg_grad_dir` — param `style`
  * `lv_style_set_bg_main_stop` — param `style`
  * `lv_style_set_bg_grad_stop` — param `style`
  * `lv_style_set_bg_main_opa` — param `style`
  * `lv_style_set_bg_grad_opa` — param `style`
  * `lv_style_set_bg_grad` — param `style`
  * `lv_style_set_bg_image_src` — param `style`
  * `lv_style_set_bg_image_opa` — param `style`
  * `lv_style_set_bg_image_recolor` — param `style`
  * `lv_style_set_bg_image_recolor_opa` — param `style`
  * `lv_style_set_bg_image_tiled` — param `style`
  * `lv_style_set_border_color` — param `style`
  * `lv_style_set_border_opa` — param `style`
  * `lv_style_set_border_width` — param `style`
  * `lv_style_set_border_side` — param `style`
  * `lv_style_set_border_post` — param `style`
  * `lv_style_set_outline_width` — param `style`
  * `lv_style_set_outline_color` — param `style`
  * `lv_style_set_outline_opa` — param `style`
  * `lv_style_set_outline_pad` — param `style`
  * `lv_style_set_shadow_width` — param `style`
  * `lv_style_set_shadow_offset_x` — param `style`
  * `lv_style_set_shadow_offset_y` — param `style`
  * `lv_style_set_shadow_spread` — param `style`
  * `lv_style_set_shadow_color` — param `style`
  * `lv_style_set_shadow_opa` — param `style`
  * `lv_style_set_image_opa` — param `style`
  * `lv_style_set_image_recolor` — param `style`
  * `lv_style_set_image_recolor_opa` — param `style`
  * `lv_style_set_image_colorkey` — param `style`
  * `lv_style_set_line_width` — param `style`
  * `lv_style_set_line_dash_width` — param `style`
  * `lv_style_set_line_dash_gap` — param `style`
  * `lv_style_set_line_rounded` — param `style`
  * `lv_style_set_line_color` — param `style`
  * `lv_style_set_line_opa` — param `style`
  * `lv_style_set_arc_width` — param `style`
  * `lv_style_set_arc_rounded` — param `style`
  * `lv_style_set_arc_color` — param `style`
  * `lv_style_set_arc_opa` — param `style`
  * `lv_style_set_arc_image_src` — param `style`
  * `lv_style_set_text_color` — param `style`
  * `lv_style_set_text_opa` — param `style`
  * `lv_style_set_text_font` — param `style`
  * `lv_style_set_text_letter_space` — param `style`
  * `lv_style_set_text_line_space` — param `style`
  * `lv_style_set_text_decor` — param `style`
  * `lv_style_set_text_align` — param `style`
  * `lv_style_set_text_outline_stroke_color` — param `style`
  * `lv_style_set_text_outline_stroke_width` — param `style`
  * `lv_style_set_text_outline_stroke_opa` — param `style`
  * `lv_style_set_text_leading_trim` — param `style`
  * `lv_style_set_blur_radius` — param `style`
  * `lv_style_set_blur_backdrop` — param `style`
  * `lv_style_set_blur_quality` — param `style`
  * `lv_style_set_drop_shadow_radius` — param `style`
  * `lv_style_set_drop_shadow_offset_x` — param `style`
  * `lv_style_set_drop_shadow_offset_y` — param `style`
  * `lv_style_set_drop_shadow_color` — param `style`
  * `lv_style_set_drop_shadow_opa` — param `style`
  * `lv_style_set_drop_shadow_quality` — param `style`
  * `lv_style_set_radius` — param `style`
  * `lv_style_set_radial_offset` — param `style`
  * `lv_style_set_clip_corner` — param `style`
  * `lv_style_set_opa` — param `style`
  * `lv_style_set_opa_layered` — param `style`
  * `lv_style_set_color_filter_dsc` — param `style`
  * `lv_style_set_color_filter_opa` — param `style`
  * `lv_style_set_recolor` — param `style`
  * `lv_style_set_recolor_opa` — param `style`
  * `lv_style_set_anim` — param `style`
  * `lv_style_set_anim_duration` — param `style`
  * `lv_style_set_transition` — param `style`
  * `lv_style_set_blend_mode` — param `style`
  * `lv_style_set_layout` — param `style`
  * `lv_style_set_base_dir` — param `style`
  * `lv_style_set_bitmap_mask_src` — param `style`
  * `lv_style_set_rotary_sensitivity` — param `style`
  * `lv_style_set_flex_flow` — param `style`
  * `lv_style_set_flex_main_place` — param `style`
  * `lv_style_set_flex_cross_place` — param `style`
  * `lv_style_set_flex_track_place` — param `style`
  * `lv_style_set_flex_grow` — param `style`
  * `lv_style_set_grid_column_dsc_array` — param `style`
  * `lv_style_set_grid_column_align` — param `style`
  * `lv_style_set_grid_row_dsc_array` — param `style`
  * `lv_style_set_grid_row_align` — param `style`
  * `lv_style_set_grid_cell_column_pos` — param `style`
  * `lv_style_set_grid_cell_x_align` — param `style`
  * `lv_style_set_grid_cell_column_span` — param `style`
  * `lv_style_set_grid_cell_row_pos` — param `style`
  * `lv_style_set_grid_cell_y_align` — param `style`
  * `lv_style_set_grid_cell_row_span` — param `style`
  * `lv_scale_section_set_style` — param `section_part_style`
  * `lv_scale_set_section_style_main` — param `style`
  * `lv_scale_set_section_style_indicator` — param `style`
  * `lv_scale_set_section_style_items` — param `style`
  * `lv_spangroup_set_span_style` — param `style`
</TypeUsedBy>

Macros [#macros]

<ApiMember kind="macro" name="LV_STYLE_SENTINEL_VALUE" file="misc/lv_style.h" line="31" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L31">
  LV_STYLE_SENTINEL_VALUE [#lv_style_sentinel_value]

  ```c title=" " lineNumbers=1
  #define LV_STYLE_SENTINEL_VALUE 0xAABBCCDD
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_STYLE_PROP_FLAG_NONE" file="misc/lv_style.h" line="36" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L36">
  LV_STYLE_PROP_FLAG_NONE [#lv_style_prop_flag_none]

  ```c title=" " lineNumbers=1
  #define LV_STYLE_PROP_FLAG_NONE (0)
  ```

  No special behavior
</ApiMember>

<ApiMember kind="macro" name="LV_STYLE_PROP_FLAG_INHERITABLE" file="misc/lv_style.h" line="37" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L37">
  LV_STYLE_PROP_FLAG_INHERITABLE [#lv_style_prop_flag_inheritable]

  ```c title=" " lineNumbers=1
  #define LV_STYLE_PROP_FLAG_INHERITABLE (1 << 0)
  ```

  Inherited
</ApiMember>

<ApiMember kind="macro" name="LV_STYLE_PROP_FLAG_EXT_DRAW_UPDATE" file="misc/lv_style.h" line="38" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L38">
  LV_STYLE_PROP_FLAG_EXT_DRAW_UPDATE [#lv_style_prop_flag_ext_draw_update]

  ```c title=" " lineNumbers=1
  #define LV_STYLE_PROP_FLAG_EXT_DRAW_UPDATE (1 << 1)
  ```

  Requires ext. draw size update when changed
</ApiMember>

<ApiMember kind="macro" name="LV_STYLE_PROP_FLAG_LAYOUT_UPDATE" file="misc/lv_style.h" line="39" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L39">
  LV_STYLE_PROP_FLAG_LAYOUT_UPDATE [#lv_style_prop_flag_layout_update]

  ```c title=" " lineNumbers=1
  #define LV_STYLE_PROP_FLAG_LAYOUT_UPDATE (1 << 2)
  ```

  Requires layout update when changed
</ApiMember>

<ApiMember kind="macro" name="LV_STYLE_PROP_FLAG_PARENT_LAYOUT_UPDATE" file="misc/lv_style.h" line="40" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L40">
  LV_STYLE_PROP_FLAG_PARENT_LAYOUT_UPDATE [#lv_style_prop_flag_parent_layout_update]

  ```c title=" " lineNumbers=1
  #define LV_STYLE_PROP_FLAG_PARENT_LAYOUT_UPDATE (1 << 3)
  ```

  Requires layout update on parent when changed
</ApiMember>

<ApiMember kind="macro" name="LV_STYLE_PROP_FLAG_LAYER_UPDATE" file="misc/lv_style.h" line="41" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L41">
  LV_STYLE_PROP_FLAG_LAYER_UPDATE [#lv_style_prop_flag_layer_update]

  ```c title=" " lineNumbers=1
  #define LV_STYLE_PROP_FLAG_LAYER_UPDATE (1 << 4)
  ```

  Affects layer handling
</ApiMember>

<ApiMember kind="macro" name="LV_STYLE_PROP_FLAG_TRANSFORM" file="misc/lv_style.h" line="42" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L42">
  LV_STYLE_PROP_FLAG_TRANSFORM [#lv_style_prop_flag_transform]

  ```c title=" " lineNumbers=1
  #define LV_STYLE_PROP_FLAG_TRANSFORM (1 << 5)
  ```

  Affects the object's transformation
</ApiMember>

<ApiMember kind="macro" name="LV_STYLE_PROP_FLAG_ALL" file="misc/lv_style.h" line="43" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L43">
  LV_STYLE_PROP_FLAG_ALL [#lv_style_prop_flag_all]

  ```c title=" " lineNumbers=1
  #define LV_STYLE_PROP_FLAG_ALL (0x3F)
  ```

  Indicating all flags
</ApiMember>

<ApiMember kind="macro" name="LV_SCALE_NONE" file="misc/lv_style.h" line="48" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L48">
  LV_SCALE_NONE [#lv_scale_none]

  ```c title=" " lineNumbers=1
  #define LV_SCALE_NONE 256
  ```

  Value for not zooming the image
</ApiMember>

<ApiMember kind="macro" name="LV_STYLE_CONST_INIT" file="misc/lv_style.h" line="53" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L53">
  LV_STYLE_CONST_INIT [#lv_style_const_init]

  ```c title=" " lineNumbers=1
  #define LV_STYLE_CONST_INIT(var_name, prop_array) \
      const lv_style_t var_name = { \
              .sentinel = LV_STYLE_SENTINEL_VALUE, \
              .values_and_props = (void*)prop_array, \
              .has_group = 0xFFFFFFFF, \
              .prop_cnt = 255 \
          }
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_STYLE_CONST_PROPS_END" file="misc/lv_style.h" line="70" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L70">
  LV_STYLE_CONST_PROPS_END [#lv_style_const_props_end]

  ```c title=" " lineNumbers=1
  #define LV_STYLE_CONST_PROPS_END { .prop = LV_STYLE_PROP_INV, .value = { .num = 0 } }
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_GRAD_LEFT" file="misc/lv_style.h" line="76" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L76">
  LV_GRAD_LEFT [#lv_grad_left]

  ```c title=" " lineNumbers=1
  #define LV_GRAD_LEFT LV_PCT(0)
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_GRAD_RIGHT" file="misc/lv_style.h" line="77" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L77">
  LV_GRAD_RIGHT [#lv_grad_right]

  ```c title=" " lineNumbers=1
  #define LV_GRAD_RIGHT LV_PCT(100)
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_GRAD_TOP" file="misc/lv_style.h" line="78" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L78">
  LV_GRAD_TOP [#lv_grad_top]

  ```c title=" " lineNumbers=1
  #define LV_GRAD_TOP LV_PCT(0)
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_GRAD_BOTTOM" file="misc/lv_style.h" line="79" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L79">
  LV_GRAD_BOTTOM [#lv_grad_bottom]

  ```c title=" " lineNumbers=1
  #define LV_GRAD_BOTTOM LV_PCT(100)
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_GRAD_CENTER" file="misc/lv_style.h" line="80" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L80">
  LV_GRAD_CENTER [#lv_grad_center]

  ```c title=" " lineNumbers=1
  #define LV_GRAD_CENTER LV_PCT(50)
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_ASSERT_STYLE" file="misc/lv_style.h" line="724" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L724">
  LV_ASSERT_STYLE [#lv_assert_style]

  ```c title=" " lineNumbers=1
  #define LV_ASSERT_STYLE(style_p) \
      do { \
              LV_ASSERT_MSG(style_p != NULL, "The style is NULL"); \
              LV_ASSERT_MSG(style_p->sentinel == LV_STYLE_SENTINEL_VALUE, "Style is not initialized or corrupted"); \
          } while(0)
  ```
</ApiMember>

Variables [#variables]

<ApiMember kind="variable" name="lv_style_const_prop_id_inv" file="misc/lv_style.h" line="717" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/misc/lv_style.h#L717">
  lv_style_const_prop_id_inv [#lv_style_const_prop_id_inv]

  ```c title=" " lineNumbers=1
  const lv_style_prop_t lv_style_const_prop_id_inv
  ```
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_font.h&#x22;, &#x22;lv_color.h&#x22;, &#x22;lv_area.h&#x22;, &#x22;lv_anim.h&#x22;, &#x22;lv_text.h&#x22;, &#x22;lv_types.h&#x22;, &#x22;lv_assert.h&#x22;, &#x22;lv_bidi.h&#x22;, &#x22;lv_grad.h&#x22;, &#x22;lv_layout.h&#x22;, &#x22;lv_style_gen.h&#x22;]" includedBy="[&#x22;lv_global.h&#x22;, &#x22;lv_obj.h&#x22;, &#x22;lv_obj_property.h&#x22;, &#x22;lv_obj_style.h&#x22;, &#x22;lv_obj_style_gen.h&#x22;, &#x22;lv_draw.h&#x22;, &#x22;lv_draw_arc.h&#x22;, &#x22;lv_draw_blur.h&#x22;, &#x22;lv_draw_image.h&#x22;, &#x22;lv_draw_label.h&#x22;, &#x22;lv_draw_line.h&#x22;, &#x22;lv_draw_mask.h&#x22;, &#x22;lv_draw_rect.h&#x22;, &#x22;lv_draw_sw_blend.h&#x22;, &#x22;lv_draw_sw_grad.h&#x22;, &#x22;lv_vg_lite_utils.h&#x22;, &#x22;lv_style_private.h&#x22;]" transitiveIncludes="[&#x22;lv_color_op.h&#x22;, &#x22;lv_conf_internal.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_draw_buf.h&#x22;, &#x22;lv_ext_data.h&#x22;, &#x22;lv_flex.h&#x22;, &#x22;lv_grid.h&#x22;, &#x22;lv_image_dsc.h&#x22;, &#x22;lv_ll.h&#x22;, &#x22;lv_log.h&#x22;, &#x22;lv_math.h&#x22;, &#x22;lv_mem.h&#x22;, &#x22;lv_palette.h&#x22;, &#x22;lv_sprintf.h&#x22;, &#x22;lv_string.h&#x22;, &#x22;lv_symbol_def.h&#x22;, &#x22;lv_tick.h&#x22;, &#x22;lv_timer.h&#x22;]" />
