lv_bidi.h
API reference for lv_bidi.h
See Also: Private HeaderThis header has a companion private implementation with internal data structures.lv_bidi_private.h
Summary
Functions
public/font/lv_bidi.h:58function
lv_bidi_set_custom_neutrals_static
Set custom neutrals string
void lv_bidi_set_custom_neutrals_static(const char *neutrals)| Name | Type | Description |
|---|---|---|
neutrals | const char * | May be NULL. When NULL the built-in set is used. |
public/font/lv_bidi.h:50function
lv_bidi_calculate_align
Get the real text alignment from the a text alignment, base direction and a text.
void lv_bidi_calculate_align(lv_text_align_t *align, lv_base_dir_t *base_dir, const char *txt)| Name | Type | Description |
|---|---|---|
align | lv_text_align_t * | LV_TEXT_ALIGN_..., write back the calculated align here (LV_TEXT_ALIGN_LEFT/RIGHT/CENTER) |
base_dir | lv_base_dir_t * | LV_BASE_DIR_..., write the calculated base dir here (LV_BASE_DIR_LTR/RTL) |
txt | const char * | a text, used with LV_BASE_DIR_AUTO to determine the base direction |
Enums
lv_base_dir_t
| Name | Value |
|---|---|
LV_BASE_DIR_LTR | 0x00 |
LV_BASE_DIR_RTL | 0x01 |
LV_BASE_DIR_AUTO | 0x02 |
LV_BASE_DIR_NEUTRAL | 0x20 |
LV_BASE_DIR_WEAK | 0x21 |
Used by 8 functions
lv_obj_set_style_base_dir— paramvaluelv_style_set_base_dir— paramvaluelv_bidi_calculate_align— parambase_dirlv_bidi_process— parambase_dirlv_bidi_get_logical_pos— parambase_dirlv_bidi_get_visual_pos— parambase_dirlv_bidi_process_paragraph— parambase_dirlv_bidi_calculate_align_internal— parambase_dir
Macros
LV_BIDI_LRO
#define LV_BIDI_LRO "\xE2\x80\xAD" /*U+202D*/Special non printable strong characters. They can be inserted to texts to affect the run's direction
LV_BIDI_RLO
#define LV_BIDI_RLO "\xE2\x80\xAE" /*U+202E*/Dependencies
Last updated on