Merge pull request #15209 from s-hadinger/lvgl_add_font_apis

LVGL add lv_font apis
This commit is contained in:
s-hadinger 2022-03-23 10:52:42 +01:00 committed by GitHub
commit 77642602ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -109,6 +109,9 @@ const be_ntv_func_def_t lv_func[] = {
{ "event_stop_bubbling", { (const void*) &lv_event_stop_bubbling, "", "(lv.lv_event)" } },
{ "event_stop_processing", { (const void*) &lv_event_stop_processing, "", "(lv.lv_event)" } },
{ "flex_init", { (const void*) &lv_flex_init, "", "" } },
{ "font_get_glyph_dsc", { (const void*) &lv_font_get_glyph_dsc, "b", "(lv.lv_font)(lv.lv_font_glyph_dsc)ii" } },
{ "font_get_glyph_width", { (const void*) &lv_font_get_glyph_width, "i", "(lv.lv_font)ii" } },
{ "font_get_line_height", { (const void*) &lv_font_get_line_height, "i", "(lv.lv_font)" } },
{ "get_hor_res", { (const void*) &lv_get_hor_res, "i", "" } },
{ "get_ts_calibration", { (const void*) &lv_get_ts_calibration, "lv.lv_ts_calibration", "" } },
{ "get_ver_res", { (const void*) &lv_get_ver_res, "i", "" } },

View File

@ -702,6 +702,12 @@ void lv_spinbox_decrement(lv_obj_t * obj)
// ../../lvgl/src/extra/widgets/spinner/lv_spinner.h
lv_obj_t * lv_spinner_create(lv_obj_t * parent, uint32_t time, uint32_t arc_length)
// ../../lvgl/src/font/lv_font.h
const uint8_t * lv_font_get_glyph_bitmap(const lv_font_t * font_p, uint32_t letter)
bool lv_font_get_glyph_dsc(const lv_font_t * font_p, lv_font_glyph_dsc_t * dsc_out, uint32_t letter, uint32_t letter_next)
uint16_t lv_font_get_glyph_width(const lv_font_t * font, uint32_t letter, uint32_t letter_next)
static inline lv_coord_t lv_font_get_line_height(const lv_font_t * font_p)
// ../../lvgl/src/lv_api_map.h
static inline uint32_t lv_task_handler(void)
static inline void lv_obj_move_foreground(lv_obj_t * obj)

View File

@ -74,6 +74,7 @@ lv_fun_globs = [
"misc/lv_math.h",
"misc/lv_area.h",
"misc/lv_timer.h",
"font/lv_font.h",
#"**/*.h",
]
headers_names = list_files(lv_src_prefix, lv_fun_globs)