lv_bidi_private.h

API reference for lv_bidi_private.h

Report on GitHub
See Also: Public APIThis is the private implementation. See the public header for the stable interface.lv_bidi.h
Summary

Functions

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)
Parameters
NameTypeDescription
str_inconst char *the input string. Can be only one line.
bidi_txtchar **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
lenuint32_tlength of the line in character count
base_dirlv_base_dir_tbase direction of the text: LV_BASE_DIR_LTR or LV_BASE_DIR_RTL
visual_posuint32_tthe visual character position which logical position should be get
is_rtlbool *tell the char at visual_pos is RTL or LTR context

Returns: uint16_t — the logical character position

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)
Parameters
NameTypeDescription
str_inconst char *the input string. Can be only one line.
bidi_txtchar **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
lenuint16_tlength of the line in character count
base_dirlv_base_dir_tbase direction of the text: LV_BASE_DIR_LTR or LV_BASE_DIR_RTL
logical_posuint32_tthe logical character position which visual position should be get
is_rtlbool *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

On this page