lv_bidi_private.h
API reference for lv_bidi_private.h
See Also: Public APIThis is the private implementation. See the public header for the stable interface.lv_bidi.h
Summary
Functions
misc/lv_bidi_private.h:60function
lv_bidi_get_logical_pos
Get the logical position of a character in a line
uint16_t lv_bidi_get_logical_pos(const char *str_in, char **bidi_txt, uint32_t len, lv_base_dir_t base_dir, uint32_t visual_pos, bool *is_rtl)| Name | Type | Description |
|---|---|---|
str_in | const char * | the input string. Can be only one line. |
bidi_txt | char ** | internally the text is bidi processed which buffer can be get here. If not required anymore has to freed with lv_free() Can be NULL is unused |
len | uint32_t | length of the line in character count |
base_dir | lv_base_dir_t | base direction of the text: LV_BASE_DIR_LTR or LV_BASE_DIR_RTL |
visual_pos | uint32_t | the visual character position which logical position should be get |
is_rtl | bool * | tell the char at visual_pos is RTL or LTR context |
Returns: uint16_t — the logical character position
misc/lv_bidi_private.h:75function
lv_bidi_get_visual_pos
Get the visual position of a character in a line
uint16_t lv_bidi_get_visual_pos(const char *str_in, char **bidi_txt, uint16_t len, lv_base_dir_t base_dir, uint32_t logical_pos, bool *is_rtl)| Name | Type | Description |
|---|---|---|
str_in | const char * | the input string. Can be only one line. |
bidi_txt | char ** | internally the text is bidi processed which buffer can be get here. If not required anymore has to freed with lv_free() Can be NULL is unused |
len | uint16_t | length of the line in character count |
base_dir | lv_base_dir_t | base direction of the text: LV_BASE_DIR_LTR or LV_BASE_DIR_RTL |
logical_pos | uint32_t | the logical character position which visual position should be get |
is_rtl | bool * | tell the char at logical_pos is RTL or LTR context |
Returns: uint16_t — the visual character position
Dependencies
How is this guide?
Last updated on