# lv_rlottie.h (/api/libs/rlottie/lv_rlottie_h)



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

<ApiSummary functions="4" enums="1" variables="1" />

Functions [#functions]

<ApiTabs items="[&#x22;Setters (2)&#x22;,&#x22;Other (2)&#x22;]">
  <ApiTab value="Setters (2)">
    <ApiMember kind="function" name="lv_rlottie_set_play_mode" file="libs/rlottie/lv_rlottie.h" line="45" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/rlottie/lv_rlottie.h#L45">
      lv_rlottie_set_play_mode [#lv_rlottie_set_play_mode]

      ```c title=" " lineNumbers=1
      void lv_rlottie_set_play_mode(lv_obj_t *rlottie, const lv_rlottie_ctrl_t ctrl)
      ```

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

      | Name      | Type                                                                   |
      | --------- | ---------------------------------------------------------------------- |
      | `rlottie` | <ApiLink name="lv_obj_t" display="lv_obj_t *" />                       |
      | `ctrl`    | <ApiLink name="lv_rlottie_ctrl_t" display="const lv_rlottie_ctrl_t" /> |
    </ApiMember>

    <ApiMember kind="function" name="lv_rlottie_set_current_frame" file="libs/rlottie/lv_rlottie.h" line="46" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/rlottie/lv_rlottie.h#L46">
      lv_rlottie_set_current_frame [#lv_rlottie_set_current_frame]

      ```c title=" " lineNumbers=1
      void lv_rlottie_set_current_frame(lv_obj_t *rlottie, const size_t goto_frame)
      ```

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

      | Name         | Type                                             |
      | ------------ | ------------------------------------------------ |
      | `rlottie`    | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> |
      | `goto_frame` | <ApiLink name="size_t" display="const size_t" /> |
    </ApiMember>
  </ApiTab>

  <ApiTab value="Other (2)">
    <ApiMember kind="function" name="lv_rlottie_create_from_file" file="libs/rlottie/lv_rlottie.h" line="40" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/rlottie/lv_rlottie.h#L40">
      lv_rlottie_create_from_file [#lv_rlottie_create_from_file]

      ```c title=" " lineNumbers=1
      lv_obj_t * lv_rlottie_create_from_file(lv_obj_t *parent, int32_t width, int32_t height, const char *path)
      ```

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

      | Name     | Type                                             |
      | -------- | ------------------------------------------------ |
      | `parent` | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> |
      | `width`  | <ApiLink name="int32_t" />                       |
      | `height` | <ApiLink name="int32_t" />                       |
      | `path`   | `const char *`                                   |
    </ApiMember>

    <ApiMember kind="function" name="lv_rlottie_create_from_raw" file="libs/rlottie/lv_rlottie.h" line="42" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/rlottie/lv_rlottie.h#L42">
      lv_rlottie_create_from_raw [#lv_rlottie_create_from_raw]

      ```c title=" " lineNumbers=1
      lv_obj_t * lv_rlottie_create_from_raw(lv_obj_t *parent, int32_t width, int32_t height, const char *rlottie_desc)
      ```

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

      | Name           | Type                                             |
      | -------------- | ------------------------------------------------ |
      | `parent`       | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> |
      | `width`        | <ApiLink name="int32_t" />                       |
      | `height`       | <ApiLink name="int32_t" />                       |
      | `rlottie_desc` | `const char *`                                   |
    </ApiMember>
  </ApiTab>
</ApiTabs>

Enums [#enums]

<ApiMember kind="enum" name="lv_rlottie_ctrl_t" file="libs/rlottie/lv_rlottie.h" line="26" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/rlottie/lv_rlottie.h#L26">
  lv_rlottie_ctrl_t [#lv_rlottie_ctrl_t]

  | Name                       | Value |
  | -------------------------- | ----- |
  | `LV_RLOTTIE_CTRL_FORWARD`  | `0`   |
  | `LV_RLOTTIE_CTRL_BACKWARD` | `1`   |
  | `LV_RLOTTIE_CTRL_PAUSE`    | `2`   |
  | `LV_RLOTTIE_CTRL_PLAY`     | `0`   |
  | `LV_RLOTTIE_CTRL_LOOP`     | `8`   |
</ApiMember>

<TypeUsedBy name="lv_rlottie_ctrl_t" count="1">
  * `lv_rlottie_set_play_mode` — param `ctrl`
</TypeUsedBy>

Variables [#variables]

<ApiMember kind="variable" name="lv_rlottie_class" file="libs/rlottie/lv_rlottie.h" line="34" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/libs/rlottie/lv_rlottie.h#L34">
  lv_rlottie_class [#lv_rlottie_class]

  ```c title=" " lineNumbers=1
  const lv_obj_class_t lv_rlottie_class
  ```
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_conf_internal.h&#x22;]" includedBy="[&#x22;lv_rlottie_private.h&#x22;]" transitiveIncludes="[&#x22;lv_conf_kconfig.h&#x22;]" />
