# lv_draw_label_private.h (/api/draw/lv_draw_label_private_h)



<RelatedHeaders name="lv_draw_label.h" isPrivate="true" />

<ApiSummary structs="2" />

Structs [#structs]

<ApiMember kind="struct" name="_lv_draw_label_hint_t">
  \_lv_draw_label_hint_t [#_lv_draw_label_hint_t]

  Store some info to speed up drawing of very large texts It takes a lot of time to get the first visible character because all the previous characters needs to be checked to calculate the positions. This structure stores an earlier (e.g. at -1000 px) coordinate and the index of that line. Therefore the calculations can start from here.

  | Member       | Type                       | Description                                                                                                            |
  | ------------ | -------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
  | `line_start` | <ApiLink name="int32_t" /> | Index of the line at `y` coordinate                                                                                    |
  | `y`          | <ApiLink name="int32_t" /> | Give the `y` coordinate of the first letter at `line start` index. Relative to the label's coordinates                 |
  | `coord_y`    | <ApiLink name="int32_t" /> | The 'y1' coordinate of the label when the hint was saved. Used to invalidate the hint if the label has moved too much. |
</ApiMember>

<ApiMember kind="struct" name="_lv_draw_glyph_dsc_t">
  \_lv_draw_glyph_dsc_t [#_lv_draw_glyph_dsc_t]

  | Member                 | Type                                                                   | Description                                                                               |
  | ---------------------- | ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |
  | `glyph_data`           | `const void *`                                                         | Depends on `format` field, it could be image source or draw buf of bitmap or vector data. |
  | `format`               | <ApiLink name="lv_font_glyph_format_t" />                              |                                                                                           |
  | `letter_coords`        | <ApiLink name="lv_area_t" display="const lv_area_t *" />               |                                                                                           |
  | `bg_coords`            | <ApiLink name="lv_area_t" display="const lv_area_t *" />               |                                                                                           |
  | `g`                    | <ApiLink name="lv_font_glyph_dsc_t" display="lv_font_glyph_dsc_t *" /> |                                                                                           |
  | `color`                | <ApiLink name="lv_color_t" />                                          |                                                                                           |
  | `opa`                  | <ApiLink name="lv_opa_t" />                                            |                                                                                           |
  | `outline_stroke_color` | <ApiLink name="lv_color_t" />                                          |                                                                                           |
  | `outline_stroke_opa`   | <ApiLink name="lv_opa_t" />                                            |                                                                                           |
  | `outline_stroke_width` | <ApiLink name="int32_t" />                                             |                                                                                           |
  | `rotation`             | <ApiLink name="int32_t" />                                             |                                                                                           |
  | `pivot`                | <ApiLink name="lv_point_t" />                                          | Rotation pivot point associated with total glyph including line\_height                   |
  | `_draw_buf`            | <ApiLink name="lv_draw_buf_t" display="lv_draw_buf_t *" />             | a shared draw buf for get\_bitmap, do not use it directly, use glyph\_data instead        |
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_draw_label.h&#x22;]" includedBy="[&#x22;lv_draw_nema_gfx.h&#x22;, &#x22;lv_label_private.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_internal.h&#x22;, &#x22;lv_conf_kconfig.h&#x22;, &#x22;lv_draw.h&#x22;, &#x22;lv_draw_buf.h&#x22;, &#x22;lv_draw_rect.h&#x22;, &#x22;lv_event.h&#x22;, &#x22;lv_ext_data.h&#x22;, &#x22;lv_flex.h&#x22;, &#x22;lv_font.h&#x22;, &#x22;lv_fs.h&#x22;, &#x22;lv_grad.h&#x22;, &#x22;lv_grid.h&#x22;, &#x22;lv_image_decoder.h&#x22;, &#x22;lv_image_dsc.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_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_symbol_def.h&#x22;, &#x22;lv_text.h&#x22;, &#x22;lv_tick.h&#x22;, &#x22;lv_timer.h&#x22;, &#x22;lv_types.h&#x22;]" />
