lv_bidi.h

Defines

LV_BIDI_LRO
LV_BIDI_RLO

Enums

enum lv_base_dir_t

Values:

enumerator LV_BASE_DIR_LTR
enumerator LV_BASE_DIR_RTL
enumerator LV_BASE_DIR_AUTO
enumerator LV_BASE_DIR_NEUTRAL
enumerator LV_BASE_DIR_WEAK

Functions

void lv_bidi_calculate_align(lv_text_align_t *align, lv_base_dir_t *base_dir, const char *txt)

Get the real text alignment from the a text alignment, base direction and a text.

参数:
  • align -- LV_TEXT_ALIGN_..., write back the calculated align here (LV_TEXT_ALIGN_LEFT/RIGHT/CENTER)

  • base_dir -- LV_BASE_DIR_..., write the calculated base dir here (LV_BASE_DIR_LTR/RTL)

  • txt -- a text, used with LV_BASE_DIR_AUTO to determine the base direction

void lv_bidi_set_custom_neutrals_static(const char *neutrals)

Set custom neutrals string

参数:

neutrals -- default " \t\n\r.,:;'\"`!?%/\-=()[]{}<>#&$|"