# lv_label.h (/api/widgets/label/lv_label_h)



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

<ApiSummary functions="21" enums="2" macros="4" variables="1" />

Functions [#functions]

<ApiTabs items="[&#x22;Setters (9)&#x22;,&#x22;Getters (7)&#x22;,&#x22;Other (5)&#x22;]">
  <ApiTab value="Setters (9)">
    <ApiMember kind="function" name="lv_label_set_text" file="widgets/label/lv_label.h" line="91" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L91">
      lv_label_set_text [#lv_label_set_text]

      Set a new text for a label. Memory will be allocated to store the text by the label.

      ```c title=" " lineNumbers=1
      void lv_label_set_text(lv_obj_t *obj, const char *text)
      ```

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

      | Name   | Type                                             | Description                                                              |
      | ------ | ------------------------------------------------ | ------------------------------------------------------------------------ |
      | `obj`  | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a label object                                                |
      | `text` | `const char *`                                   | '\0' terminated character string. NULL to refresh with the current text. |

      <Callout type="info">
        If `LV_USE_ARABIC_PERSIAN_CHARS` is enabled the text will be modified to have the correct Arabic characters in it.
      </Callout>
    </ApiMember>

    <ApiMember kind="function" name="lv_label_set_text_fmt" file="widgets/label/lv_label.h" line="103" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L103">
      lv_label_set_text_fmt [#lv_label_set_text_fmt]

      Set a new formatted text for a label. Memory will be allocated to store the text by the label.

      ```c title=" " lineNumbers=1
      void lv_label_set_text_fmt(lv_obj_t *obj, const char *fmt,...)
      ```

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

      | Name  | Type                                             | Description                                                                                 |
      | ----- | ------------------------------------------------ | ------------------------------------------------------------------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a label object                                                                   |
      | `fmt` | `const char *`                                   | `printf`-like format string Example:  `lv_label_set_text_fmt(label1, "%d user", user_num);` |
      | `...` |                                                  |                                                                                             |

      <Callout type="info">
        If `LV_USE_ARABIC_PERSIAN_CHARS` is enabled the text will be modified to have the correct Arabic characters in it.
      </Callout>
    </ApiMember>

    <ApiMember kind="function" name="lv_label_set_text_vfmt" file="widgets/label/lv_label.h" line="120" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L120">
      lv_label_set_text_vfmt [#lv_label_set_text_vfmt]

      Set a new formatted text for a label. Memory will be allocated to store the text by the label.
      Example:

      ```c title=" " lineNumbers=1
      va_list args;
      va_start(args, fmt);
      lv_label_set_text_vfmt(label1, fmt, args);
      va_end(args);
      ```

      ```c title=" " lineNumbers=1
      void lv_label_set_text_vfmt(lv_obj_t *obj, const char *fmt, va_list args)
      ```

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

      | Name   | Type                                             | Description                 |
      | ------ | ------------------------------------------------ | --------------------------- |
      | `obj`  | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a label object   |
      | `fmt`  | `const char *`                                   | `printf`-like format string |
      | `args` | `va_list`                                        | variadic arguments list     |

      <Callout type="info">
        It ignores `LV_USE_ARABIC_PERSIAN_CHARS`
      </Callout>
    </ApiMember>

    <ApiMember kind="function" name="lv_label_set_text_static" file="widgets/label/lv_label.h" line="129" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L129">
      lv_label_set_text_static [#lv_label_set_text_static]

      Set a static text. It will not be saved by the label so the 'text' variable has to be 'alive' while the label exists.

      ```c title=" " lineNumbers=1
      void lv_label_set_text_static(lv_obj_t *obj, const char *text)
      ```

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

      | Name   | Type                                             | Description                                               |
      | ------ | ------------------------------------------------ | --------------------------------------------------------- |
      | `obj`  | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a label object                                 |
      | `text` | `const char *`                                   | pointer to a text. NULL to refresh with the current text. |

      <Callout type="info">
        It ignores `LV_USE_ARABIC_PERSIAN_CHARS`
      </Callout>
    </ApiMember>

    <ApiMember kind="function" name="lv_label_set_long_mode" file="widgets/label/lv_label.h" line="137" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L137">
      lv_label_set_long_mode [#lv_label_set_long_mode]

      Set the behavior of the label with text longer than the object size

      ```c title=" " lineNumbers=1
      void lv_label_set_long_mode(lv_obj_t *obj, lv_label_long_mode_t long_mode)
      ```

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

      | Name        | Type                                             | Description                                                                                                                                       |
      | ----------- | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------- |
      | `obj`       | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a label object                                                                                                                         |
      | `long_mode` | <ApiLink name="lv_label_long_mode_t" />          | the new mode from 'lv\_label\_long\_mode' enum. In LV\_LONG\_WRAP/DOT/SCROLL/SCROLL\_CIRC the size of the label should be set AFTER this function |
    </ApiMember>

    <ApiMember kind="function" name="lv_label_set_text_selection_start" file="widgets/label/lv_label.h" line="144" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L144">
      lv_label_set_text_selection_start [#lv_label_set_text_selection_start]

      Set where text selection should start

      ```c title=" " lineNumbers=1
      void lv_label_set_text_selection_start(lv_obj_t *obj, uint32_t index)
      ```

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

      | Name    | Type                                             | Description                                                                                       |
      | ------- | ------------------------------------------------ | ------------------------------------------------------------------------------------------------- |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a label object                                                                         |
      | `index` | <ApiLink name="uint32_t" />                      | character index from where selection should start. `LV_LABEL_TEXT_SELECTION_OFF` for no selection |
    </ApiMember>

    <ApiMember kind="function" name="lv_label_set_text_selection_end" file="widgets/label/lv_label.h" line="151" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L151">
      lv_label_set_text_selection_end [#lv_label_set_text_selection_end]

      Set where text selection should end

      ```c title=" " lineNumbers=1
      void lv_label_set_text_selection_end(lv_obj_t *obj, uint32_t index)
      ```

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

      | Name    | Type                                             | Description                                                                                |
      | ------- | ------------------------------------------------ | ------------------------------------------------------------------------------------------ |
      | `obj`   | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a label object                                                                  |
      | `index` | <ApiLink name="uint32_t" />                      | character index where selection should end. `LV_LABEL_TEXT_SELECTION_OFF` for no selection |
    </ApiMember>

    <ApiMember kind="function" name="lv_label_set_recolor" file="widgets/label/lv_label.h" line="159" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L159">
      lv_label_set_recolor [#lv_label_set_recolor]

      Enable the recoloring by in-line commands

      ```c title=" " lineNumbers=1
      void lv_label_set_recolor(lv_obj_t *obj, bool en)
      ```

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

      | Name  | Type                                             | Description                                                                    |
      | ----- | ------------------------------------------------ | ------------------------------------------------------------------------------ |
      | `obj` | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a label object                                                      |
      | `en`  | <ApiLink name="bool" />                          | true: enable recoloring, false: disable Example: "This is a #ff0000 red# word" |
    </ApiMember>

    <ApiMember kind="function" name="lv_label_set_translation_tag" file="widgets/label/lv_label.h" line="169" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L169">
      lv_label_set_translation_tag [#lv_label_set_translation_tag]

      Assign a translation tag for this label. Memory will be allocated to store the tag by the label. The label text will automatically update when the language is changed via `lv_translation_set_language`.

      ```c title=" " lineNumbers=1
      void lv_label_set_translation_tag(lv_obj_t *obj, const char *tag)
      ```

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

      | Name  | Type                                             | Description                       |
      | ----- | ------------------------------------------------ | --------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a label object         |
      | `tag` | `const char *`                                   | '\0' terminated character string. |
    </ApiMember>
  </ApiTab>

  <ApiTab value="Getters (7)">
    <ApiMember kind="function" name="lv_label_get_text" file="widgets/label/lv_label.h" line="183" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L183">
      lv_label_get_text [#lv_label_get_text]

      Get the text of a label

      ```c title=" " lineNumbers=1
      char * lv_label_get_text(const lv_obj_t *obj)
      ```

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

      | Name  | Type                                                   | Description               |
      | ----- | ------------------------------------------------------ | ------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a label object |

      **Returns:** `char *` — the text of the label
    </ApiMember>

    <ApiMember kind="function" name="lv_label_get_long_mode" file="widgets/label/lv_label.h" line="190" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L190">
      lv_label_get_long_mode [#lv_label_get_long_mode]

      Get the long mode of a label

      ```c title=" " lineNumbers=1
      lv_label_long_mode_t lv_label_get_long_mode(const lv_obj_t *obj)
      ```

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

      | Name  | Type                                                   | Description               |
      | ----- | ------------------------------------------------------ | ------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a label object |

      **Returns:** <ApiLink name="lv_label_long_mode_t" /> — the current long mode
    </ApiMember>

    <ApiMember kind="function" name="lv_label_get_letter_pos" file="widgets/label/lv_label.h" line="199" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L199">
      lv_label_get_letter_pos [#lv_label_get_letter_pos]

      Get the relative x and y coordinates of a letter

      ```c title=" " lineNumbers=1
      void lv_label_get_letter_pos(const lv_obj_t *obj, uint32_t char_id, lv_point_t *pos)
      ```

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

      | Name      | Type                                                   | Description                                                                                                        |
      | --------- | ------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ |
      | `obj`     | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a label object                                                                                          |
      | `char_id` | <ApiLink name="uint32_t" />                            | index of the character \[0 ... text length - 1]. Expressed in character index, not byte index (different in UTF-8) |
      | `pos`     | <ApiLink name="lv_point_t" display="lv_point_t *" />   | store the result here (E.g. index = 0 gives 0;0 coordinates if the text if aligned to the left)                    |
    </ApiMember>

    <ApiMember kind="function" name="lv_label_get_letter_on" file="widgets/label/lv_label.h" line="209" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L209">
      lv_label_get_letter_on [#lv_label_get_letter_on]

      Get the index of letter on a relative point of a label.

      ```c title=" " lineNumbers=1
      uint32_t lv_label_get_letter_on(const lv_obj_t *obj, lv_point_t *pos_in, bool bidi)
      ```

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

      | Name     | Type                                                   | Description                                      |
      | -------- | ------------------------------------------------------ | ------------------------------------------------ |
      | `obj`    | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to label object                          |
      | `pos_in` | <ApiLink name="lv_point_t" display="lv_point_t *" />   | pointer to point with coordinates on a the label |
      | `bidi`   | <ApiLink name="bool" />                                | whether to use bidi processed                    |

      **Returns:** <ApiLink name="uint32_t" /> — The index of the letter on the 'pos\_p' point (E.g. on 0;0 is the 0. letter if aligned to the left) Expressed in character index and not byte index (different in UTF-8)
    </ApiMember>

    <ApiMember kind="function" name="lv_label_get_text_selection_start" file="widgets/label/lv_label.h" line="224" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L224">
      lv_label_get_text_selection_start [#lv_label_get_text_selection_start]

      Get the selection start index.

      ```c title=" " lineNumbers=1
      uint32_t lv_label_get_text_selection_start(const lv_obj_t *obj)
      ```

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

      | Name  | Type                                                   | Description                |
      | ----- | ------------------------------------------------------ | -------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a label object. |

      **Returns:** <ApiLink name="uint32_t" /> — selection start index. `LV_LABEL_TEXT_SELECTION_OFF` if nothing is selected.
    </ApiMember>

    <ApiMember kind="function" name="lv_label_get_text_selection_end" file="widgets/label/lv_label.h" line="231" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L231">
      lv_label_get_text_selection_end [#lv_label_get_text_selection_end]

      Get the selection end index.

      ```c title=" " lineNumbers=1
      uint32_t lv_label_get_text_selection_end(const lv_obj_t *obj)
      ```

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

      | Name  | Type                                                   | Description                |
      | ----- | ------------------------------------------------------ | -------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a label object. |

      **Returns:** <ApiLink name="uint32_t" /> — selection end index. `LV_LABEL_TXT_SEL_OFF` if nothing is selected.
    </ApiMember>

    <ApiMember kind="function" name="lv_label_get_recolor" file="widgets/label/lv_label.h" line="238" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L238">
      lv_label_get_recolor [#lv_label_get_recolor]

      Get the recoloring attribute.

      ```c title=" " lineNumbers=1
      bool lv_label_get_recolor(const lv_obj_t *obj)
      ```

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

      | Name  | Type                                                   | Description                |
      | ----- | ------------------------------------------------------ | -------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a label object. |

      **Returns:** <ApiLink name="bool" /> — true: recoloring is enabled, false: recoloring is disabled
    </ApiMember>
  </ApiTab>

  <ApiTab value="Other (5)">
    <ApiMember kind="function" name="lv_label_create" file="widgets/label/lv_label.h" line="78" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L78">
      lv_label_create [#lv_label_create]

      Create a label object

      ```c title=" " lineNumbers=1
      lv_obj_t * lv_label_create(lv_obj_t *parent)
      ```

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

      | Name     | Type                                             | Description                                                   |
      | -------- | ------------------------------------------------ | ------------------------------------------------------------- |
      | `parent` | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to an object, it will be the parent of the new label. |

      **Returns:** <ApiLink name="lv_obj_t" display="lv_obj_t *" /> — pointer to the created button
    </ApiMember>

    <ApiMember kind="function" name="lv_label_is_char_under_pos" file="widgets/label/lv_label.h" line="217" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L217">
      lv_label_is_char_under_pos [#lv_label_is_char_under_pos]

      Check if a character is drawn under a point.

      ```c title=" " lineNumbers=1
      bool lv_label_is_char_under_pos(const lv_obj_t *obj, lv_point_t *pos)
      ```

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

      | Name  | Type                                                   | Description                        |
      | ----- | ------------------------------------------------------ | ---------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="const lv_obj_t *" /> | pointer to a label object          |
      | `pos` | <ApiLink name="lv_point_t" display="lv_point_t *" />   | Point to check for character under |

      **Returns:** <ApiLink name="bool" /> — whether a character is drawn under the point
    </ApiMember>

    <ApiMember kind="function" name="lv_label_bind_text" file="widgets/label/lv_label.h" line="255" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L255">
      lv_label_bind_text [#lv_label_bind_text]

      Bind an integer, string, or pointer Subject to a Label.

      ```c title=" " lineNumbers=1
      lv_observer_t * lv_label_bind_text(lv_obj_t *obj, lv_subject_t *subject, const char *fmt)
      ```

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

      | Name      | Type                                                     | Description                                                                                                      |
      | --------- | -------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
      | `obj`     | <ApiLink name="lv_obj_t" display="lv_obj_t *" />         | pointer to Label                                                                                                 |
      | `subject` | <ApiLink name="lv_subject_t" display="lv_subject_t *" /> | pointer to Subject                                                                                               |
      | `fmt`     | `const char *`                                           | optional printf-like format string with 1 format specifier (e.g. "%d °C") or NULL to bind to the value directly. |

      **Returns:** <ApiLink name="lv_observer_t" display="lv_observer_t *" /> — pointer to newly-created Observer

      <Callout type="info">
        If `fmt == NULL` strings and pointers (`\0` terminated string) will be shown as text as they are, integers as d, floats as %0.1f
      </Callout>
    </ApiMember>

    <ApiMember kind="function" name="lv_label_ins_text" file="widgets/label/lv_label.h" line="266" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L266">
      lv_label_ins_text [#lv_label_ins_text]

      Insert a text to a label. The label text cannot be static.

      ```c title=" " lineNumbers=1
      void lv_label_ins_text(lv_obj_t *obj, uint32_t pos, const char *txt)
      ```

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

      | Name  | Type                                             | Description                                                                                                                              |
      | ----- | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a label object                                                                                                                |
      | `pos` | <ApiLink name="uint32_t" />                      | character index to insert. Expressed in character index and not byte index. 0: before first char. LV\_LABEL\_POS\_LAST: after last char. |
      | `txt` | `const char *`                                   | pointer to the text to insert                                                                                                            |
    </ApiMember>

    <ApiMember kind="function" name="lv_label_cut_text" file="widgets/label/lv_label.h" line="275" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L275">
      lv_label_cut_text [#lv_label_cut_text]

      Delete characters from a label. The label text cannot be static.

      ```c title=" " lineNumbers=1
      void lv_label_cut_text(lv_obj_t *obj, uint32_t pos, uint32_t cnt)
      ```

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

      | Name  | Type                                             | Description                                                                                                                  |
      | ----- | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
      | `obj` | <ApiLink name="lv_obj_t" display="lv_obj_t *" /> | pointer to a label object                                                                                                    |
      | `pos` | <ApiLink name="uint32_t" />                      | character index from where to cut. Expressed in character index and not byte index. 0: start in front of the first character |
      | `cnt` | <ApiLink name="uint32_t" />                      | number of characters to cut                                                                                                  |
    </ApiMember>
  </ApiTab>
</ApiTabs>

Enums [#enums]

<ApiMember kind="enum" name="lv_label_long_mode_t" file="widgets/label/lv_label.h" line="49" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L49">
  lv_label_long_mode_t [#lv_label_long_mode_t]

  Long mode behaviors. Used in 'lv\_label\_ext\_t'

  | Name                                 | Description                                                                             |
  | ------------------------------------ | --------------------------------------------------------------------------------------- |
  | `LV_LABEL_LONG_MODE_WRAP`            | Keep the object width, wrap lines longer than object width and expand the object height |
  | `LV_LABEL_LONG_MODE_DOTS`            | Keep the size and write dots at the end if the text is too long                         |
  | `LV_LABEL_LONG_MODE_SCROLL`          | Keep the size and roll the text back and forth                                          |
  | `LV_LABEL_LONG_MODE_SCROLL_CIRCULAR` | Keep the size and roll the text circularly                                              |
  | `LV_LABEL_LONG_MODE_CLIP`            | Keep the size and clip the text out of it                                               |
</ApiMember>

<TypeUsedBy name="lv_label_long_mode_t" count="1">
  * `lv_label_set_long_mode` — param `long_mode`
</TypeUsedBy>

<ApiMember kind="enum" name="_lv_property_label_id_t" file="widgets/label/lv_label.h" line="58" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L58">
  \_lv_property_label_id_t [#_lv_property_label_id_t]

  | Name                                     | Value                                                          |
  | ---------------------------------------- | -------------------------------------------------------------- |
  | `LV_PROPERTY_LABEL_TEXT`                 | `(LV_PROPERTY_LABEL_START + ((int) 0 )) \| ((  7   ) <<  28 )` |
  | `LV_PROPERTY_LABEL_LONG_MODE`            | `(LV_PROPERTY_LABEL_START + ((int) 1 )) \| ((  1   ) <<  28 )` |
  | `LV_PROPERTY_LABEL_TEXT_SELECTION_START` | `(LV_PROPERTY_LABEL_START + ((int) 2 )) \| ((  1   ) <<  28 )` |
  | `LV_PROPERTY_LABEL_TEXT_SELECTION_END`   | `(LV_PROPERTY_LABEL_START + ((int) 3 )) \| ((  1   ) <<  28 )` |
  | `LV_PROPERTY_LABEL_END`                  |                                                                |
</ApiMember>

Macros [#macros]

<ApiMember kind="macro" name="LV_LABEL_DOT_NUM" file="widgets/label/lv_label.h" line="31" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L31">
  LV_LABEL_DOT_NUM [#lv_label_dot_num]

  ```c title=" " lineNumbers=1
  #define LV_LABEL_DOT_NUM 3
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_LABEL_POS_LAST" file="widgets/label/lv_label.h" line="32" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L32">
  LV_LABEL_POS_LAST [#lv_label_pos_last]

  ```c title=" " lineNumbers=1
  #define LV_LABEL_POS_LAST 0xFFFF
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_LABEL_TEXT_SELECTION_OFF" file="widgets/label/lv_label.h" line="33" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L33">
  LV_LABEL_TEXT_SELECTION_OFF [#lv_label_text_selection_off]

  ```c title=" " lineNumbers=1
  #define LV_LABEL_TEXT_SELECTION_OFF LV_DRAW_LABEL_NO_TXT_SEL
  ```
</ApiMember>

<ApiMember kind="macro" name="LV_LABEL_DEFAULT_TEXT" file="widgets/label/lv_label.h" line="35" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L35">
  LV_LABEL_DEFAULT_TEXT [#lv_label_default_text]

  ```c title=" " lineNumbers=1
  #define LV_LABEL_DEFAULT_TEXT "Text"
  ```
</ApiMember>

Variables [#variables]

<ApiMember kind="variable" name="lv_label_class" file="widgets/label/lv_label.h" line="67" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/widgets/label/lv_label.h#L67">
  lv_label_class [#lv_label_class]

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

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_conf_internal.h&#x22;, &#x22;lv_types.h&#x22;, &#x22;lv_obj.h&#x22;, &#x22;lv_font.h&#x22;, &#x22;lv_symbol_def.h&#x22;, &#x22;lv_text.h&#x22;, &#x22;lv_draw.h&#x22;, &#x22;lv_observer.h&#x22;]" includedBy="[&#x22;lv_bar.h&#x22;, &#x22;lv_dropdown.h&#x22;, &#x22;lv_label_private.h&#x22;, &#x22;lv_roller.h&#x22;, &#x22;lv_table.h&#x22;, &#x22;lv_textarea.h&#x22;]" transitiveIncludes="[&#x22;lv_anim.h&#x22;, &#x22;lv_area.h&#x22;, &#x22;lv_array.h&#x22;, &#x22;lv_assert.h&#x22;, &#x22;lv_bidi.h&#x22;, &#x22;lv_color.h&#x22;, &#x22;lv_color_op.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_display.h&#x22;, &#x22;lv_draw_arc.h&#x22;, &#x22;lv_draw_blur.h&#x22;, &#x22;lv_draw_buf.h&#x22;, &#x22;lv_draw_image.h&#x22;, &#x22;lv_draw_label.h&#x22;, &#x22;lv_draw_line.h&#x22;, &#x22;lv_draw_rect.h&#x22;, &#x22;lv_draw_triangle.h&#x22;, &#x22;lv_event.h&#x22;, &#x22;lv_ext_data.h&#x22;, &#x22;lv_flex.h&#x22;, &#x22;lv_fs.h&#x22;, &#x22;lv_grad.h&#x22;, &#x22;lv_grid.h&#x22;, &#x22;lv_group.h&#x22;, &#x22;lv_image_decoder.h&#x22;, &#x22;lv_image_dsc.h&#x22;, &#x22;lv_indev.h&#x22;, &#x22;lv_layout.h&#x22;, &#x22;lv_ll.h&#x22;, &#x22;lv_log.h&#x22;, &#x22;lv_math.h&#x22;, &#x22;lv_matrix.h&#x22;, &#x22;lv_mem.h&#x22;, &#x22;lv_obj_class.h&#x22;, &#x22;lv_obj_draw.h&#x22;, &#x22;lv_obj_event.h&#x22;, &#x22;lv_obj_pos.h&#x22;, &#x22;lv_obj_property.h&#x22;, &#x22;lv_obj_property_names.h&#x22;, &#x22;lv_obj_scroll.h&#x22;, &#x22;lv_obj_style.h&#x22;, &#x22;lv_obj_style_gen.h&#x22;, &#x22;lv_obj_tree.h&#x22;, &#x22;lv_palette.h&#x22;, &#x22;lv_profiler.h&#x22;, &#x22;lv_profiler_builtin.h&#x22;, &#x22;lv_sprintf.h&#x22;, &#x22;lv_string.h&#x22;, &#x22;lv_style.h&#x22;, &#x22;lv_style_gen.h&#x22;, &#x22;lv_style_properties.h&#x22;, &#x22;lv_tick.h&#x22;, &#x22;lv_timer.h&#x22;]" />
