LVGL check parameters

This commit is contained in:
Stephan Hadinger 2021-05-06 10:46:17 +02:00
parent 59471c4832
commit 5355af1460
13 changed files with 5847 additions and 5530 deletions

View File

@ -28,7 +28,8 @@ extern int lv0_screenshot(bvm *vm);
be_native_module_attr_table(lvgl) {
// Symbols be_native_module_str("SYMBOL_AUDIO", "\xef\x80\x81"),
// Symbols
be_native_module_str("SYMBOL_AUDIO", "\xef\x80\x81"),
be_native_module_str("SYMBOL_VIDEO", "\xef\x80\x88"),
be_native_module_str("SYMBOL_LIST", "\xef\x80\x8b"),
be_native_module_str("SYMBOL_OK", "\xef\x80\x8c"),

View File

@ -172,7 +172,6 @@ extern int lvbe_group_set_editing(bvm *vm);
extern int lvbe_group_set_click_focus(bvm *vm);
extern int lvbe_group_set_wrap(bvm *vm);
extern int lvbe_group_get_focused(bvm *vm);
extern int lvbe_group_get_focus_cb(bvm *vm);
extern int lvbe_group_get_editing(bvm *vm);
extern int lvbe_group_get_click_focus(bvm *vm);
extern int lvbe_group_get_wrap(bvm *vm);
@ -330,11 +329,13 @@ extern int lvbe_obj_get_style_margin_left(bvm *vm);
extern int lvbe_obj_set_style_local_margin_left(bvm *vm);
extern int lvbe_obj_get_style_margin_right(bvm *vm);
extern int lvbe_obj_set_style_local_margin_right(bvm *vm);
extern int lvbe_obj_get_style_bg_blend_mode(bvm *vm);
extern int lvbe_obj_set_style_local_bg_blend_mode(bvm *vm);
extern int lvbe_obj_get_style_bg_main_stop(bvm *vm);
extern int lvbe_obj_set_style_local_bg_main_stop(bvm *vm);
extern int lvbe_obj_get_style_bg_grad_stop(bvm *vm);
extern int lvbe_obj_set_style_local_bg_grad_stop(bvm *vm);
extern int lvbe_obj_get_style_bg_grad_dir(bvm *vm);
extern int lvbe_obj_set_style_local_bg_grad_dir(bvm *vm);
extern int lvbe_obj_get_style_bg_color(bvm *vm);
extern int lvbe_obj_set_style_local_bg_color(bvm *vm);
@ -344,7 +345,9 @@ extern int lvbe_obj_get_style_bg_opa(bvm *vm);
extern int lvbe_obj_set_style_local_bg_opa(bvm *vm);
extern int lvbe_obj_get_style_border_width(bvm *vm);
extern int lvbe_obj_set_style_local_border_width(bvm *vm);
extern int lvbe_obj_get_style_border_side(bvm *vm);
extern int lvbe_obj_set_style_local_border_side(bvm *vm);
extern int lvbe_obj_get_style_border_blend_mode(bvm *vm);
extern int lvbe_obj_set_style_local_border_blend_mode(bvm *vm);
extern int lvbe_obj_get_style_border_post(bvm *vm);
extern int lvbe_obj_set_style_local_border_post(bvm *vm);
@ -356,6 +359,7 @@ extern int lvbe_obj_get_style_outline_width(bvm *vm);
extern int lvbe_obj_set_style_local_outline_width(bvm *vm);
extern int lvbe_obj_get_style_outline_pad(bvm *vm);
extern int lvbe_obj_set_style_local_outline_pad(bvm *vm);
extern int lvbe_obj_get_style_outline_blend_mode(bvm *vm);
extern int lvbe_obj_set_style_local_outline_blend_mode(bvm *vm);
extern int lvbe_obj_get_style_outline_color(bvm *vm);
extern int lvbe_obj_set_style_local_outline_color(bvm *vm);
@ -369,6 +373,7 @@ extern int lvbe_obj_get_style_shadow_ofs_y(bvm *vm);
extern int lvbe_obj_set_style_local_shadow_ofs_y(bvm *vm);
extern int lvbe_obj_get_style_shadow_spread(bvm *vm);
extern int lvbe_obj_set_style_local_shadow_spread(bvm *vm);
extern int lvbe_obj_get_style_shadow_blend_mode(bvm *vm);
extern int lvbe_obj_set_style_local_shadow_blend_mode(bvm *vm);
extern int lvbe_obj_get_style_shadow_color(bvm *vm);
extern int lvbe_obj_set_style_local_shadow_color(bvm *vm);
@ -376,6 +381,7 @@ extern int lvbe_obj_get_style_shadow_opa(bvm *vm);
extern int lvbe_obj_set_style_local_shadow_opa(bvm *vm);
extern int lvbe_obj_get_style_pattern_repeat(bvm *vm);
extern int lvbe_obj_set_style_local_pattern_repeat(bvm *vm);
extern int lvbe_obj_get_style_pattern_blend_mode(bvm *vm);
extern int lvbe_obj_set_style_local_pattern_blend_mode(bvm *vm);
extern int lvbe_obj_get_style_pattern_recolor(bvm *vm);
extern int lvbe_obj_set_style_local_pattern_recolor(bvm *vm);
@ -389,11 +395,13 @@ extern int lvbe_obj_get_style_value_letter_space(bvm *vm);
extern int lvbe_obj_set_style_local_value_letter_space(bvm *vm);
extern int lvbe_obj_get_style_value_line_space(bvm *vm);
extern int lvbe_obj_set_style_local_value_line_space(bvm *vm);
extern int lvbe_obj_get_style_value_blend_mode(bvm *vm);
extern int lvbe_obj_set_style_local_value_blend_mode(bvm *vm);
extern int lvbe_obj_get_style_value_ofs_x(bvm *vm);
extern int lvbe_obj_set_style_local_value_ofs_x(bvm *vm);
extern int lvbe_obj_get_style_value_ofs_y(bvm *vm);
extern int lvbe_obj_set_style_local_value_ofs_y(bvm *vm);
extern int lvbe_obj_get_style_value_align(bvm *vm);
extern int lvbe_obj_set_style_local_value_align(bvm *vm);
extern int lvbe_obj_get_style_value_color(bvm *vm);
extern int lvbe_obj_set_style_local_value_color(bvm *vm);
@ -407,6 +415,7 @@ extern int lvbe_obj_set_style_local_text_letter_space(bvm *vm);
extern int lvbe_obj_get_style_text_line_space(bvm *vm);
extern int lvbe_obj_set_style_local_text_line_space(bvm *vm);
extern int lvbe_obj_set_style_local_text_decor(bvm *vm);
extern int lvbe_obj_get_style_text_blend_mode(bvm *vm);
extern int lvbe_obj_set_style_local_text_blend_mode(bvm *vm);
extern int lvbe_obj_get_style_text_color(bvm *vm);
extern int lvbe_obj_set_style_local_text_color(bvm *vm);
@ -419,6 +428,7 @@ extern int lvbe_obj_set_style_local_text_opa(bvm *vm);
extern int lvbe_obj_set_style_local_text_font(bvm *vm);
extern int lvbe_obj_get_style_line_width(bvm *vm);
extern int lvbe_obj_set_style_local_line_width(bvm *vm);
extern int lvbe_obj_get_style_line_blend_mode(bvm *vm);
extern int lvbe_obj_set_style_local_line_blend_mode(bvm *vm);
extern int lvbe_obj_get_style_line_dash_width(bvm *vm);
extern int lvbe_obj_set_style_local_line_dash_width(bvm *vm);
@ -430,6 +440,7 @@ extern int lvbe_obj_get_style_line_color(bvm *vm);
extern int lvbe_obj_set_style_local_line_color(bvm *vm);
extern int lvbe_obj_get_style_line_opa(bvm *vm);
extern int lvbe_obj_set_style_local_line_opa(bvm *vm);
extern int lvbe_obj_get_style_image_blend_mode(bvm *vm);
extern int lvbe_obj_set_style_local_image_blend_mode(bvm *vm);
extern int lvbe_obj_get_style_image_recolor(bvm *vm);
extern int lvbe_obj_set_style_local_image_recolor(bvm *vm);
@ -717,6 +728,7 @@ extern int lvbe_keyboard_set_cursor_manage(bvm *vm);
extern int lvbe_keyboard_set_map(bvm *vm);
extern int lvbe_keyboard_set_ctrl_map(bvm *vm);
extern int lvbe_keyboard_get_textarea(bvm *vm);
extern int lvbe_keyboard_get_mode(bvm *vm);
extern int lvbe_keyboard_get_cursor_manage(bvm *vm);
extern int lvbe_keyboard_def_event_cb(bvm *vm);
@ -1421,7 +1433,6 @@ void be_load_lv_group_lib(bvm *vm) {
{ "set_click_focus", lvbe_group_set_click_focus },
{ "set_wrap", lvbe_group_set_wrap },
{ "get_focused", lvbe_group_get_focused },
{ "get_focus_cb", lvbe_group_get_focus_cb },
{ "get_editing", lvbe_group_get_editing },
{ "get_click_focus", lvbe_group_get_click_focus },
{ "get_wrap", lvbe_group_get_wrap },
@ -1459,7 +1470,6 @@ class be_class_lv_group (scope: global, name: lv_group) {
set_click_focus, func(lvbe_group_set_click_focus)
set_wrap, func(lvbe_group_set_wrap)
get_focused, func(lvbe_group_get_focused)
get_focus_cb, func(lvbe_group_get_focus_cb)
get_editing, func(lvbe_group_get_editing)
get_click_focus, func(lvbe_group_get_click_focus)
get_wrap, func(lvbe_group_get_wrap)
@ -1625,11 +1635,13 @@ void be_load_lv_obj_lib(bvm *vm) {
{ "set_style_local_margin_left", lvbe_obj_set_style_local_margin_left },
{ "get_style_margin_right", lvbe_obj_get_style_margin_right },
{ "set_style_local_margin_right", lvbe_obj_set_style_local_margin_right },
{ "get_style_bg_blend_mode", lvbe_obj_get_style_bg_blend_mode },
{ "set_style_local_bg_blend_mode", lvbe_obj_set_style_local_bg_blend_mode },
{ "get_style_bg_main_stop", lvbe_obj_get_style_bg_main_stop },
{ "set_style_local_bg_main_stop", lvbe_obj_set_style_local_bg_main_stop },
{ "get_style_bg_grad_stop", lvbe_obj_get_style_bg_grad_stop },
{ "set_style_local_bg_grad_stop", lvbe_obj_set_style_local_bg_grad_stop },
{ "get_style_bg_grad_dir", lvbe_obj_get_style_bg_grad_dir },
{ "set_style_local_bg_grad_dir", lvbe_obj_set_style_local_bg_grad_dir },
{ "get_style_bg_color", lvbe_obj_get_style_bg_color },
{ "set_style_local_bg_color", lvbe_obj_set_style_local_bg_color },
@ -1639,7 +1651,9 @@ void be_load_lv_obj_lib(bvm *vm) {
{ "set_style_local_bg_opa", lvbe_obj_set_style_local_bg_opa },
{ "get_style_border_width", lvbe_obj_get_style_border_width },
{ "set_style_local_border_width", lvbe_obj_set_style_local_border_width },
{ "get_style_border_side", lvbe_obj_get_style_border_side },
{ "set_style_local_border_side", lvbe_obj_set_style_local_border_side },
{ "get_style_border_blend_mode", lvbe_obj_get_style_border_blend_mode },
{ "set_style_local_border_blend_mode", lvbe_obj_set_style_local_border_blend_mode },
{ "get_style_border_post", lvbe_obj_get_style_border_post },
{ "set_style_local_border_post", lvbe_obj_set_style_local_border_post },
@ -1651,6 +1665,7 @@ void be_load_lv_obj_lib(bvm *vm) {
{ "set_style_local_outline_width", lvbe_obj_set_style_local_outline_width },
{ "get_style_outline_pad", lvbe_obj_get_style_outline_pad },
{ "set_style_local_outline_pad", lvbe_obj_set_style_local_outline_pad },
{ "get_style_outline_blend_mode", lvbe_obj_get_style_outline_blend_mode },
{ "set_style_local_outline_blend_mode", lvbe_obj_set_style_local_outline_blend_mode },
{ "get_style_outline_color", lvbe_obj_get_style_outline_color },
{ "set_style_local_outline_color", lvbe_obj_set_style_local_outline_color },
@ -1664,6 +1679,7 @@ void be_load_lv_obj_lib(bvm *vm) {
{ "set_style_local_shadow_ofs_y", lvbe_obj_set_style_local_shadow_ofs_y },
{ "get_style_shadow_spread", lvbe_obj_get_style_shadow_spread },
{ "set_style_local_shadow_spread", lvbe_obj_set_style_local_shadow_spread },
{ "get_style_shadow_blend_mode", lvbe_obj_get_style_shadow_blend_mode },
{ "set_style_local_shadow_blend_mode", lvbe_obj_set_style_local_shadow_blend_mode },
{ "get_style_shadow_color", lvbe_obj_get_style_shadow_color },
{ "set_style_local_shadow_color", lvbe_obj_set_style_local_shadow_color },
@ -1671,6 +1687,7 @@ void be_load_lv_obj_lib(bvm *vm) {
{ "set_style_local_shadow_opa", lvbe_obj_set_style_local_shadow_opa },
{ "get_style_pattern_repeat", lvbe_obj_get_style_pattern_repeat },
{ "set_style_local_pattern_repeat", lvbe_obj_set_style_local_pattern_repeat },
{ "get_style_pattern_blend_mode", lvbe_obj_get_style_pattern_blend_mode },
{ "set_style_local_pattern_blend_mode", lvbe_obj_set_style_local_pattern_blend_mode },
{ "get_style_pattern_recolor", lvbe_obj_get_style_pattern_recolor },
{ "set_style_local_pattern_recolor", lvbe_obj_set_style_local_pattern_recolor },
@ -1684,11 +1701,13 @@ void be_load_lv_obj_lib(bvm *vm) {
{ "set_style_local_value_letter_space", lvbe_obj_set_style_local_value_letter_space },
{ "get_style_value_line_space", lvbe_obj_get_style_value_line_space },
{ "set_style_local_value_line_space", lvbe_obj_set_style_local_value_line_space },
{ "get_style_value_blend_mode", lvbe_obj_get_style_value_blend_mode },
{ "set_style_local_value_blend_mode", lvbe_obj_set_style_local_value_blend_mode },
{ "get_style_value_ofs_x", lvbe_obj_get_style_value_ofs_x },
{ "set_style_local_value_ofs_x", lvbe_obj_set_style_local_value_ofs_x },
{ "get_style_value_ofs_y", lvbe_obj_get_style_value_ofs_y },
{ "set_style_local_value_ofs_y", lvbe_obj_set_style_local_value_ofs_y },
{ "get_style_value_align", lvbe_obj_get_style_value_align },
{ "set_style_local_value_align", lvbe_obj_set_style_local_value_align },
{ "get_style_value_color", lvbe_obj_get_style_value_color },
{ "set_style_local_value_color", lvbe_obj_set_style_local_value_color },
@ -1702,6 +1721,7 @@ void be_load_lv_obj_lib(bvm *vm) {
{ "get_style_text_line_space", lvbe_obj_get_style_text_line_space },
{ "set_style_local_text_line_space", lvbe_obj_set_style_local_text_line_space },
{ "set_style_local_text_decor", lvbe_obj_set_style_local_text_decor },
{ "get_style_text_blend_mode", lvbe_obj_get_style_text_blend_mode },
{ "set_style_local_text_blend_mode", lvbe_obj_set_style_local_text_blend_mode },
{ "get_style_text_color", lvbe_obj_get_style_text_color },
{ "set_style_local_text_color", lvbe_obj_set_style_local_text_color },
@ -1714,6 +1734,7 @@ void be_load_lv_obj_lib(bvm *vm) {
{ "set_style_local_text_font", lvbe_obj_set_style_local_text_font },
{ "get_style_line_width", lvbe_obj_get_style_line_width },
{ "set_style_local_line_width", lvbe_obj_set_style_local_line_width },
{ "get_style_line_blend_mode", lvbe_obj_get_style_line_blend_mode },
{ "set_style_local_line_blend_mode", lvbe_obj_set_style_local_line_blend_mode },
{ "get_style_line_dash_width", lvbe_obj_get_style_line_dash_width },
{ "set_style_local_line_dash_width", lvbe_obj_set_style_local_line_dash_width },
@ -1725,6 +1746,7 @@ void be_load_lv_obj_lib(bvm *vm) {
{ "set_style_local_line_color", lvbe_obj_set_style_local_line_color },
{ "get_style_line_opa", lvbe_obj_get_style_line_opa },
{ "set_style_local_line_opa", lvbe_obj_set_style_local_line_opa },
{ "get_style_image_blend_mode", lvbe_obj_get_style_image_blend_mode },
{ "set_style_local_image_blend_mode", lvbe_obj_set_style_local_image_blend_mode },
{ "get_style_image_recolor", lvbe_obj_get_style_image_recolor },
{ "set_style_local_image_recolor", lvbe_obj_set_style_local_image_recolor },
@ -1931,11 +1953,13 @@ class be_class_lv_obj (scope: global, name: lv_obj) {
set_style_local_margin_left, func(lvbe_obj_set_style_local_margin_left)
get_style_margin_right, func(lvbe_obj_get_style_margin_right)
set_style_local_margin_right, func(lvbe_obj_set_style_local_margin_right)
get_style_bg_blend_mode, func(lvbe_obj_get_style_bg_blend_mode)
set_style_local_bg_blend_mode, func(lvbe_obj_set_style_local_bg_blend_mode)
get_style_bg_main_stop, func(lvbe_obj_get_style_bg_main_stop)
set_style_local_bg_main_stop, func(lvbe_obj_set_style_local_bg_main_stop)
get_style_bg_grad_stop, func(lvbe_obj_get_style_bg_grad_stop)
set_style_local_bg_grad_stop, func(lvbe_obj_set_style_local_bg_grad_stop)
get_style_bg_grad_dir, func(lvbe_obj_get_style_bg_grad_dir)
set_style_local_bg_grad_dir, func(lvbe_obj_set_style_local_bg_grad_dir)
get_style_bg_color, func(lvbe_obj_get_style_bg_color)
set_style_local_bg_color, func(lvbe_obj_set_style_local_bg_color)
@ -1945,7 +1969,9 @@ class be_class_lv_obj (scope: global, name: lv_obj) {
set_style_local_bg_opa, func(lvbe_obj_set_style_local_bg_opa)
get_style_border_width, func(lvbe_obj_get_style_border_width)
set_style_local_border_width, func(lvbe_obj_set_style_local_border_width)
get_style_border_side, func(lvbe_obj_get_style_border_side)
set_style_local_border_side, func(lvbe_obj_set_style_local_border_side)
get_style_border_blend_mode, func(lvbe_obj_get_style_border_blend_mode)
set_style_local_border_blend_mode, func(lvbe_obj_set_style_local_border_blend_mode)
get_style_border_post, func(lvbe_obj_get_style_border_post)
set_style_local_border_post, func(lvbe_obj_set_style_local_border_post)
@ -1957,6 +1983,7 @@ class be_class_lv_obj (scope: global, name: lv_obj) {
set_style_local_outline_width, func(lvbe_obj_set_style_local_outline_width)
get_style_outline_pad, func(lvbe_obj_get_style_outline_pad)
set_style_local_outline_pad, func(lvbe_obj_set_style_local_outline_pad)
get_style_outline_blend_mode, func(lvbe_obj_get_style_outline_blend_mode)
set_style_local_outline_blend_mode, func(lvbe_obj_set_style_local_outline_blend_mode)
get_style_outline_color, func(lvbe_obj_get_style_outline_color)
set_style_local_outline_color, func(lvbe_obj_set_style_local_outline_color)
@ -1970,6 +1997,7 @@ class be_class_lv_obj (scope: global, name: lv_obj) {
set_style_local_shadow_ofs_y, func(lvbe_obj_set_style_local_shadow_ofs_y)
get_style_shadow_spread, func(lvbe_obj_get_style_shadow_spread)
set_style_local_shadow_spread, func(lvbe_obj_set_style_local_shadow_spread)
get_style_shadow_blend_mode, func(lvbe_obj_get_style_shadow_blend_mode)
set_style_local_shadow_blend_mode, func(lvbe_obj_set_style_local_shadow_blend_mode)
get_style_shadow_color, func(lvbe_obj_get_style_shadow_color)
set_style_local_shadow_color, func(lvbe_obj_set_style_local_shadow_color)
@ -1977,6 +2005,7 @@ class be_class_lv_obj (scope: global, name: lv_obj) {
set_style_local_shadow_opa, func(lvbe_obj_set_style_local_shadow_opa)
get_style_pattern_repeat, func(lvbe_obj_get_style_pattern_repeat)
set_style_local_pattern_repeat, func(lvbe_obj_set_style_local_pattern_repeat)
get_style_pattern_blend_mode, func(lvbe_obj_get_style_pattern_blend_mode)
set_style_local_pattern_blend_mode, func(lvbe_obj_set_style_local_pattern_blend_mode)
get_style_pattern_recolor, func(lvbe_obj_get_style_pattern_recolor)
set_style_local_pattern_recolor, func(lvbe_obj_set_style_local_pattern_recolor)
@ -1990,11 +2019,13 @@ class be_class_lv_obj (scope: global, name: lv_obj) {
set_style_local_value_letter_space, func(lvbe_obj_set_style_local_value_letter_space)
get_style_value_line_space, func(lvbe_obj_get_style_value_line_space)
set_style_local_value_line_space, func(lvbe_obj_set_style_local_value_line_space)
get_style_value_blend_mode, func(lvbe_obj_get_style_value_blend_mode)
set_style_local_value_blend_mode, func(lvbe_obj_set_style_local_value_blend_mode)
get_style_value_ofs_x, func(lvbe_obj_get_style_value_ofs_x)
set_style_local_value_ofs_x, func(lvbe_obj_set_style_local_value_ofs_x)
get_style_value_ofs_y, func(lvbe_obj_get_style_value_ofs_y)
set_style_local_value_ofs_y, func(lvbe_obj_set_style_local_value_ofs_y)
get_style_value_align, func(lvbe_obj_get_style_value_align)
set_style_local_value_align, func(lvbe_obj_set_style_local_value_align)
get_style_value_color, func(lvbe_obj_get_style_value_color)
set_style_local_value_color, func(lvbe_obj_set_style_local_value_color)
@ -2008,6 +2039,7 @@ class be_class_lv_obj (scope: global, name: lv_obj) {
get_style_text_line_space, func(lvbe_obj_get_style_text_line_space)
set_style_local_text_line_space, func(lvbe_obj_set_style_local_text_line_space)
set_style_local_text_decor, func(lvbe_obj_set_style_local_text_decor)
get_style_text_blend_mode, func(lvbe_obj_get_style_text_blend_mode)
set_style_local_text_blend_mode, func(lvbe_obj_set_style_local_text_blend_mode)
get_style_text_color, func(lvbe_obj_get_style_text_color)
set_style_local_text_color, func(lvbe_obj_set_style_local_text_color)
@ -2020,6 +2052,7 @@ class be_class_lv_obj (scope: global, name: lv_obj) {
set_style_local_text_font, func(lvbe_obj_set_style_local_text_font)
get_style_line_width, func(lvbe_obj_get_style_line_width)
set_style_local_line_width, func(lvbe_obj_set_style_local_line_width)
get_style_line_blend_mode, func(lvbe_obj_get_style_line_blend_mode)
set_style_local_line_blend_mode, func(lvbe_obj_set_style_local_line_blend_mode)
get_style_line_dash_width, func(lvbe_obj_get_style_line_dash_width)
set_style_local_line_dash_width, func(lvbe_obj_set_style_local_line_dash_width)
@ -2031,6 +2064,7 @@ class be_class_lv_obj (scope: global, name: lv_obj) {
set_style_local_line_color, func(lvbe_obj_set_style_local_line_color)
get_style_line_opa, func(lvbe_obj_get_style_line_opa)
set_style_local_line_opa, func(lvbe_obj_set_style_local_line_opa)
get_style_image_blend_mode, func(lvbe_obj_get_style_image_blend_mode)
set_style_local_image_blend_mode, func(lvbe_obj_set_style_local_image_blend_mode)
get_style_image_recolor, func(lvbe_obj_get_style_image_recolor)
set_style_local_image_recolor, func(lvbe_obj_set_style_local_image_recolor)
@ -2945,6 +2979,7 @@ void be_load_lv_keyboard_lib(bvm *vm) {
{ "set_map", lvbe_keyboard_set_map },
{ "set_ctrl_map", lvbe_keyboard_set_ctrl_map },
{ "get_textarea", lvbe_keyboard_get_textarea },
{ "get_mode", lvbe_keyboard_get_mode },
{ "get_cursor_manage", lvbe_keyboard_get_cursor_manage },
{ "def_event_cb", lvbe_keyboard_def_event_cb },
@ -2977,6 +3012,7 @@ class be_class_lv_keyboard (scope: global, name: lv_keyboard, super: be_class_lv
set_map, func(lvbe_keyboard_set_map)
set_ctrl_map, func(lvbe_keyboard_set_ctrl_map)
get_textarea, func(lvbe_keyboard_get_textarea)
get_mode, func(lvbe_keyboard_get_mode)
get_cursor_manage, func(lvbe_keyboard_get_cursor_manage)
def_event_cb, func(lvbe_keyboard_def_event_cb)
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,34 +1,33 @@
#include "be_constobj.h"
static be_define_const_map_slots(be_class_lv_group_map) {
{ be_const_key(get_focus_cb, 17), be_const_func(lvbe_group_get_focus_cb) },
{ be_const_key(init, 7), be_const_func(lvbe_group_create) },
{ be_const_key(focus_next, -1), be_const_func(lvbe_group_focus_next) },
{ be_const_key(get_editing, -1), be_const_func(lvbe_group_get_editing) },
{ be_const_key(focus_freeze, -1), be_const_func(lvbe_group_focus_freeze) },
{ be_const_key(set_click_focus, -1), be_const_func(lvbe_group_set_click_focus) },
{ be_const_key(get_wrap, 8), be_const_func(lvbe_group_get_wrap) },
{ be_const_key(dot_p, -1), be_const_int(0) },
{ be_const_key(get_editing, 11), be_const_func(lvbe_group_get_editing) },
{ be_const_key(get_focused, -1), be_const_func(lvbe_group_get_focused) },
{ be_const_key(tostring, -1), be_const_func(lvx_tostring) },
{ be_const_key(create, 2), be_const_func(lvbe_group_create) },
{ be_const_key(set_refocus_policy, -1), be_const_func(lvbe_group_set_refocus_policy) },
{ be_const_key(send_data, 21), be_const_func(lvbe_group_send_data) },
{ be_const_key(add_obj, 22), be_const_func(lvbe_group_add_obj) },
{ be_const_key(set_focus_cb, 1), be_const_func(lvbe_group_set_focus_cb) },
{ be_const_key(set_editing, -1), be_const_func(lvbe_group_set_editing) },
{ be_const_key(set_wrap, 0), be_const_func(lvbe_group_set_wrap) },
{ be_const_key(remove_obj, -1), be_const_func(lvbe_group_remove_obj) },
{ be_const_key(get_wrap, -1), be_const_func(lvbe_group_get_wrap) },
{ be_const_key(tostring, 20), be_const_func(lvx_tostring) },
{ be_const_key(remove_all_objs, 21), be_const_func(lvbe_group_remove_all_objs) },
{ be_const_key(remove_obj, 10), be_const_func(lvbe_group_remove_obj) },
{ be_const_key(add_obj, -1), be_const_func(lvbe_group_add_obj) },
{ be_const_key(focus_obj, -1), be_const_func(lvbe_group_focus_obj) },
{ be_const_key(remove_all_objs, 12), be_const_func(lvbe_group_remove_all_objs) },
{ be_const_key(set_focus_cb, -1), be_const_func(lvbe_group_set_focus_cb) },
{ be_const_key(get_click_focus, 14), be_const_func(lvbe_group_get_click_focus) },
{ be_const_key(focus_next, -1), be_const_func(lvbe_group_focus_next) },
{ be_const_key(create, -1), be_const_func(lvbe_group_create) },
{ be_const_key(set_refocus_policy, 15), be_const_func(lvbe_group_set_refocus_policy) },
{ be_const_key(get_focused, -1), be_const_func(lvbe_group_get_focused) },
{ be_const_key(init, -1), be_const_func(lvbe_group_create) },
{ be_const_key(send_data, -1), be_const_func(lvbe_group_send_data) },
{ be_const_key(set_editing, -1), be_const_func(lvbe_group_set_editing) },
{ be_const_key(dot_p, -1), be_const_int(0) },
{ be_const_key(set_wrap, -1), be_const_func(lvbe_group_set_wrap) },
{ be_const_key(set_click_focus, 17), be_const_func(lvbe_group_set_click_focus) },
{ be_const_key(focus_prev, -1), be_const_func(lvbe_group_focus_prev) },
{ be_const_key(get_click_focus, -1), be_const_func(lvbe_group_get_click_focus) },
{ be_const_key(del, -1), be_const_func(lvbe_group_del) },
};
static be_define_const_map(
be_class_lv_group_map,
23
22
);
BE_EXPORT_VARIABLE be_define_const_class(

View File

@ -1,23 +1,24 @@
#include "be_constobj.h"
static be_define_const_map_slots(be_class_lv_keyboard_map) {
{ be_const_key(set_ctrl_map, -1), be_const_func(lvbe_keyboard_set_ctrl_map) },
{ be_const_key(def_event_cb, 10), be_const_func(lvbe_keyboard_def_event_cb) },
{ be_const_key(get_textarea, 6), be_const_func(lvbe_keyboard_get_textarea) },
{ be_const_key(init, -1), be_const_func(lvbe_keyboard_create) },
{ be_const_key(get_cursor_manage, -1), be_const_func(lvbe_keyboard_get_cursor_manage) },
{ be_const_key(create, -1), be_const_func(lvbe_keyboard_create) },
{ be_const_key(tostring, -1), be_const_func(lvx_tostring) },
{ be_const_key(set_ctrl_map, 3), be_const_func(lvbe_keyboard_set_ctrl_map) },
{ be_const_key(def_event_cb, 8), be_const_func(lvbe_keyboard_def_event_cb) },
{ be_const_key(set_textarea, 9), be_const_func(lvbe_keyboard_set_textarea) },
{ be_const_key(dot_p, -1), be_const_int(0) },
{ be_const_key(create, -1), be_const_func(lvbe_keyboard_create) },
{ be_const_key(get_mode, 7), be_const_func(lvbe_keyboard_get_mode) },
{ be_const_key(init, -1), be_const_func(lvbe_keyboard_create) },
{ be_const_key(set_cursor_manage, -1), be_const_func(lvbe_keyboard_set_cursor_manage) },
{ be_const_key(set_map, -1), be_const_func(lvbe_keyboard_set_map) },
{ be_const_key(tostring, -1), be_const_func(lvx_tostring) },
{ be_const_key(set_mode, -1), be_const_func(lvbe_keyboard_set_mode) },
{ be_const_key(get_textarea, -1), be_const_func(lvbe_keyboard_get_textarea) },
{ be_const_key(dot_p, 4), be_const_int(0) },
{ be_const_key(get_cursor_manage, 1), be_const_func(lvbe_keyboard_get_cursor_manage) },
};
static be_define_const_map(
be_class_lv_keyboard_map,
12
13
);
BE_EXPORT_VARIABLE be_define_const_class(

View File

@ -1,302 +1,314 @@
#include "be_constobj.h"
static be_define_const_map_slots(be_class_lv_obj_map) {
{ be_const_key(get_style_border_color, -1), be_const_func(lvbe_obj_get_style_border_color) },
{ be_const_key(get_style_scale_grad_color, -1), be_const_func(lvbe_obj_get_style_scale_grad_color) },
{ be_const_key(get_state, -1), be_const_func(lvbe_obj_get_state) },
{ be_const_key(refresh_style, -1), be_const_func(lvbe_obj_refresh_style) },
{ be_const_key(set_style_local_text_opa, -1), be_const_func(lvbe_obj_set_style_local_text_opa) },
{ be_const_key(create, 181), be_const_func(lvbe_obj_create) },
{ be_const_key(refresh_ext_draw_pad, -1), be_const_func(lvbe_obj_refresh_ext_draw_pad) },
{ be_const_key(get_style_pad_top, 75), be_const_func(lvbe_obj_get_style_pad_top) },
{ be_const_key(get_style_opa_scale, 82), be_const_func(lvbe_obj_get_style_opa_scale) },
{ be_const_key(align_mid_x, 151), be_const_func(lvbe_obj_align_mid_x) },
{ be_const_key(set_style_local_margin_top, -1), be_const_func(lvbe_obj_set_style_local_margin_top) },
{ be_const_key(align_y, -1), be_const_func(lvbe_obj_align_y) },
{ be_const_key(set_ext_click_area, 208), be_const_func(lvbe_obj_set_ext_click_area) },
{ be_const_key(init, -1), be_const_func(lvbe_obj_create) },
{ be_const_key(clear_protect, -1), be_const_func(lvbe_obj_clear_protect) },
{ be_const_key(set_style_local_transition_prop_1, -1), be_const_func(lvbe_obj_set_style_local_transition_prop_1) },
{ be_const_key(set_style_local_shadow_width, -1), be_const_func(lvbe_obj_set_style_local_shadow_width) },
{ be_const_key(set_drag_dir, -1), be_const_func(lvbe_obj_set_drag_dir) },
{ be_const_key(set_style_local_pattern_recolor, -1), be_const_func(lvbe_obj_set_style_local_pattern_recolor) },
{ be_const_key(is_visible, 130), be_const_func(lvbe_obj_is_visible) },
{ be_const_key(set_style_local_value_blend_mode, 234), be_const_func(lvbe_obj_set_style_local_value_blend_mode) },
{ be_const_key(hittest, -1), be_const_func(lvbe_obj_hittest) },
{ be_const_key(is_protected, -1), be_const_func(lvbe_obj_is_protected) },
{ be_const_key(get_style_transform_width, 17), be_const_func(lvbe_obj_get_style_transform_width) },
{ be_const_key(set_event_cb, 145), be_const_func(lvbe_obj_set_event_cb) },
{ be_const_key(align_x, -1), be_const_func(lvbe_obj_align_x) },
{ be_const_key(set_style_local_outline_pad, 9), be_const_func(lvbe_obj_set_style_local_outline_pad) },
{ be_const_key(set_style_local_text_line_space, -1), be_const_func(lvbe_obj_set_style_local_text_line_space) },
{ be_const_key(get_child, -1), be_const_func(lvbe_obj_get_child) },
{ be_const_key(set_style_local_margin_left, 195), be_const_func(lvbe_obj_set_style_local_margin_left) },
{ be_const_key(set_style_local_shadow_ofs_y, -1), be_const_func(lvbe_obj_set_style_local_shadow_ofs_y) },
{ be_const_key(set_top, -1), be_const_func(lvbe_obj_set_top) },
{ be_const_key(get_style_pattern_image, -1), be_const_func(lvbe_obj_get_style_pattern_image) },
{ be_const_key(get_style_outline_opa, 138), be_const_func(lvbe_obj_get_style_outline_opa) },
{ be_const_key(fade_out, 176), be_const_func(lvbe_obj_fade_out) },
{ be_const_key(del, -1), be_const_func(lvbe_obj_del) },
{ be_const_key(get_style_pad_right, 1), be_const_func(lvbe_obj_get_style_pad_right) },
{ be_const_key(clean, -1), be_const_func(lvbe_obj_clean) },
{ be_const_key(get_style_border_width, -1), be_const_func(lvbe_obj_get_style_border_width) },
{ be_const_key(set_style_local_pattern_opa, 226), be_const_func(lvbe_obj_set_style_local_pattern_opa) },
{ be_const_key(align_mid_y, -1), be_const_func(lvbe_obj_align_mid_y) },
{ be_const_key(get_style_line_color, -1), be_const_func(lvbe_obj_get_style_line_color) },
{ be_const_key(is_focused, -1), be_const_func(lvbe_obj_is_focused) },
{ be_const_key(set_style_local_transition_prop_3, 113), be_const_func(lvbe_obj_set_style_local_transition_prop_3) },
{ be_const_key(set_style_local_image_opa, -1), be_const_func(lvbe_obj_set_style_local_image_opa) },
{ be_const_key(set_style_local_bg_grad_stop, -1), be_const_func(lvbe_obj_set_style_local_bg_grad_stop) },
{ be_const_key(del_async, 260), be_const_func(lvbe_obj_del_async) },
{ be_const_key(set_y, 119), be_const_func(lvbe_obj_set_y) },
{ be_const_key(set_hidden, -1), be_const_func(lvbe_obj_set_hidden) },
{ be_const_key(get_adv_hittest, -1), be_const_func(lvbe_obj_get_adv_hittest) },
{ be_const_key(tostring, -1), be_const_func(lvx_tostring) },
{ be_const_key(set_style_local_value_line_space, -1), be_const_func(lvbe_obj_set_style_local_value_line_space) },
{ be_const_key(set_style_local_border_side, -1), be_const_func(lvbe_obj_set_style_local_border_side) },
{ be_const_key(set_style_local_bg_grad_color, 136), be_const_func(lvbe_obj_set_style_local_bg_grad_color) },
{ be_const_key(set_style_local_shadow_color, -1), be_const_func(lvbe_obj_set_style_local_shadow_color) },
{ be_const_key(set_style_local_pad_left, -1), be_const_func(lvbe_obj_set_style_local_pad_left) },
{ be_const_key(set_style_local_transition_delay, -1), be_const_func(lvbe_obj_set_style_local_transition_delay) },
{ be_const_key(get_auto_realign, 38), be_const_func(lvbe_obj_get_auto_realign) },
{ be_const_key(get_style_value_ofs_x, -1), be_const_func(lvbe_obj_get_style_value_ofs_x) },
{ be_const_key(set_style_local_image_blend_mode, 56), be_const_func(lvbe_obj_set_style_local_image_blend_mode) },
{ be_const_key(set_style_local_pad_bottom, -1), be_const_func(lvbe_obj_set_style_local_pad_bottom) },
{ be_const_key(get_style_image_recolor, 255), be_const_func(lvbe_obj_get_style_image_recolor) },
{ be_const_key(set_height_fit, -1), be_const_func(lvbe_obj_set_height_fit) },
{ be_const_key(set_style_local_line_width, 32), be_const_func(lvbe_obj_set_style_local_line_width) },
{ be_const_key(set_style_local_border_color, 135), be_const_func(lvbe_obj_set_style_local_border_color) },
{ be_const_key(get_width, -1), be_const_func(lvbe_obj_get_width) },
{ be_const_key(set_style_local_scale_width, -1), be_const_func(lvbe_obj_set_style_local_scale_width) },
{ be_const_key(get_local_style, 189), be_const_func(lvbe_obj_get_local_style) },
{ be_const_key(get_ext_click_pad_bottom, -1), be_const_func(lvbe_obj_get_ext_click_pad_bottom) },
{ be_const_key(set_style_local_border_post, -1), be_const_func(lvbe_obj_set_style_local_border_post) },
{ be_const_key(get_screen, -1), be_const_func(lvbe_obj_get_screen) },
{ be_const_key(set_style_local_line_opa, 162), be_const_func(lvbe_obj_set_style_local_line_opa) },
{ be_const_key(set_style_local_pattern_blend_mode, -1), be_const_func(lvbe_obj_set_style_local_pattern_blend_mode) },
{ be_const_key(set_style_local_transform_height, -1), be_const_func(lvbe_obj_set_style_local_transform_height) },
{ be_const_key(set_style_local_border_opa, 86), be_const_func(lvbe_obj_set_style_local_border_opa) },
{ be_const_key(get_style_text_color, -1), be_const_func(lvbe_obj_get_style_text_color) },
{ be_const_key(get_style_shadow_ofs_x, 84), be_const_func(lvbe_obj_get_style_shadow_ofs_x) },
{ be_const_key(get_ext_click_pad_right, -1), be_const_func(lvbe_obj_get_ext_click_pad_right) },
{ be_const_key(get_style_bg_opa, 104), be_const_func(lvbe_obj_get_style_bg_opa) },
{ be_const_key(set_style_local_text_sel_bg_color, 219), be_const_func(lvbe_obj_set_style_local_text_sel_bg_color) },
{ be_const_key(set_style_local_opa_scale, -1), be_const_func(lvbe_obj_set_style_local_opa_scale) },
{ be_const_key(set_style_local_value_opa, -1), be_const_func(lvbe_obj_set_style_local_value_opa) },
{ be_const_key(set_style_local_margin_bottom, 242), be_const_func(lvbe_obj_set_style_local_margin_bottom) },
{ be_const_key(set_style_local_scale_end_line_width, -1), be_const_func(lvbe_obj_set_style_local_scale_end_line_width) },
{ be_const_key(set_gesture_parent, -1), be_const_func(lvbe_obj_set_gesture_parent) },
{ be_const_key(get_protect, -1), be_const_func(lvbe_obj_get_protect) },
{ be_const_key(set_style_local_bg_main_stop, 281), be_const_func(lvbe_obj_set_style_local_bg_main_stop) },
{ be_const_key(get_style_transition_prop_1, -1), be_const_func(lvbe_obj_get_style_transition_prop_1) },
{ be_const_key(set_style_local_scale_end_border_width, -1), be_const_func(lvbe_obj_set_style_local_scale_end_border_width) },
{ be_const_key(set_style_local_outline_color, -1), be_const_func(lvbe_obj_set_style_local_outline_color) },
{ be_const_key(set_style_local_transform_zoom, 128), be_const_func(lvbe_obj_set_style_local_transform_zoom) },
{ be_const_key(get_style_image_opa, -1), be_const_func(lvbe_obj_get_style_image_opa) },
{ be_const_key(get_focused_obj, -1), be_const_func(lvbe_obj_get_focused_obj) },
{ be_const_key(set_user_data, -1), be_const_func(lvbe_obj_set_user_data) },
{ be_const_key(set_adv_hittest, -1), be_const_func(lvbe_obj_set_adv_hittest) },
{ be_const_key(init_draw_line_dsc, -1), be_const_func(lvbe_obj_init_draw_line_dsc) },
{ be_const_key(set_focus_parent, -1), be_const_func(lvbe_obj_set_focus_parent) },
{ be_const_key(set_style_local_image_recolor, -1), be_const_func(lvbe_obj_set_style_local_image_recolor) },
{ be_const_key(get_parent, -1), be_const_func(lvbe_obj_get_parent) },
{ be_const_key(init_draw_rect_dsc, 67), be_const_func(lvbe_obj_init_draw_rect_dsc) },
{ be_const_key(set_style_local_line_dash_width, -1), be_const_func(lvbe_obj_set_style_local_line_dash_width) },
{ be_const_key(get_style_transition_prop_2, 182), be_const_func(lvbe_obj_get_style_transition_prop_2) },
{ be_const_key(get_drag_parent, -1), be_const_func(lvbe_obj_get_drag_parent) },
{ be_const_key(get_style_line_opa, -1), be_const_func(lvbe_obj_get_style_line_opa) },
{ be_const_key(get_y, -1), be_const_func(lvbe_obj_get_y) },
{ be_const_key(set_style_local_shadow_opa, 18), be_const_func(lvbe_obj_set_style_local_shadow_opa) },
{ be_const_key(add_protect, 69), be_const_func(lvbe_obj_add_protect) },
{ be_const_key(get_width_margin, -1), be_const_func(lvbe_obj_get_width_margin) },
{ be_const_key(remove_style_local_prop, -1), be_const_func(lvbe_obj_remove_style_local_prop) },
{ be_const_key(set_style_local_value_align, -1), be_const_func(lvbe_obj_set_style_local_value_align) },
{ be_const_key(get_style_text_letter_space, -1), be_const_func(lvbe_obj_get_style_text_letter_space) },
{ be_const_key(set_style_local_pattern_image, -1), be_const_func(lvbe_obj_set_style_local_pattern_image) },
{ be_const_key(get_style_pattern_recolor_opa, -1), be_const_func(lvbe_obj_get_style_pattern_recolor_opa) },
{ be_const_key(get_width_grid, 127), be_const_func(lvbe_obj_get_width_grid) },
{ be_const_key(get_top, 223), be_const_func(lvbe_obj_get_top) },
{ be_const_key(get_style_transition_prop_3, -1), be_const_func(lvbe_obj_get_style_transition_prop_3) },
{ be_const_key(get_user_data, 28), be_const_func(lvbe_obj_get_user_data) },
{ be_const_key(get_width_fit, 158), be_const_func(lvbe_obj_get_width_fit) },
{ be_const_key(align_mid, 283), be_const_func(lvbe_obj_align_mid) },
{ be_const_key(get_style_value_str, 178), be_const_func(lvbe_obj_get_style_value_str) },
{ be_const_key(set_style_local_outline_width, 175), be_const_func(lvbe_obj_set_style_local_outline_width) },
{ be_const_key(set_style_local_value_str, 94), be_const_func(lvbe_obj_set_style_local_value_str) },
{ be_const_key(get_drag, 251), be_const_func(lvbe_obj_get_drag) },
{ be_const_key(set_style_local_line_rounded, -1), be_const_func(lvbe_obj_set_style_local_line_rounded) },
{ be_const_key(get_type, 139), be_const_func(lvbe_obj_get_type) },
{ be_const_key(set_style_local_pattern_repeat, -1), be_const_func(lvbe_obj_set_style_local_pattern_repeat) },
{ be_const_key(get_style_text_sel_bg_color, 133), be_const_func(lvbe_obj_get_style_text_sel_bg_color) },
{ be_const_key(get_style_transition_time, 72), be_const_func(lvbe_obj_get_style_transition_time) },
{ be_const_key(invalidate, 184), be_const_func(lvbe_obj_invalidate) },
{ be_const_key(get_style_transition_prop_4, 0), be_const_func(lvbe_obj_get_style_transition_prop_4) },
{ be_const_key(set_style_local_bg_blend_mode, -1), be_const_func(lvbe_obj_set_style_local_bg_blend_mode) },
{ be_const_key(get_style_bg_main_stop, 37), be_const_func(lvbe_obj_get_style_bg_main_stop) },
{ be_const_key(get_ext_attr, 80), be_const_func(lvbe_obj_get_ext_attr) },
{ be_const_key(set_signal_cb, 51), be_const_func(lvbe_obj_set_signal_cb) },
{ be_const_key(get_style_pad_inner, -1), be_const_func(lvbe_obj_get_style_pad_inner) },
{ be_const_key(get_x, 272), be_const_func(lvbe_obj_get_x) },
{ be_const_key(get_style_bg_grad_stop, -1), be_const_func(lvbe_obj_get_style_bg_grad_stop) },
{ be_const_key(add_state, -1), be_const_func(lvbe_obj_add_state) },
{ be_const_key(set_x, -1), be_const_func(lvbe_obj_set_x) },
{ be_const_key(get_draw_rect_ext_pad_size, -1), be_const_func(lvbe_obj_get_draw_rect_ext_pad_size) },
{ be_const_key(get_style_margin_right, -1), be_const_func(lvbe_obj_get_style_margin_right) },
{ be_const_key(init_draw_img_dsc, -1), be_const_func(lvbe_obj_init_draw_img_dsc) },
{ be_const_key(set_size, -1), be_const_func(lvbe_obj_set_size) },
{ be_const_key(get_style_transition_prop_5, 89), be_const_func(lvbe_obj_get_style_transition_prop_5) },
{ be_const_key(set_style_local_size, -1), be_const_func(lvbe_obj_set_style_local_size) },
{ be_const_key(handle_get_type_signal, -1), be_const_func(lvbe_obj_handle_get_type_signal) },
{ be_const_key(get_style_transform_height, -1), be_const_func(lvbe_obj_get_style_transform_height) },
{ be_const_key(set_style_local_pad_top, 263), be_const_func(lvbe_obj_set_style_local_pad_top) },
{ be_const_key(get_group, 165), be_const_func(lvbe_obj_get_group) },
{ be_const_key(set_width_margin, -1), be_const_func(lvbe_obj_set_width_margin) },
{ be_const_key(set_style_local_line_dash_gap, 248), be_const_func(lvbe_obj_set_style_local_line_dash_gap) },
{ be_const_key(set_parent_event, -1), be_const_func(lvbe_obj_set_parent_event) },
{ be_const_key(remove_style, -1), be_const_func(lvbe_obj_remove_style) },
{ be_const_key(set_pos, -1), be_const_func(lvbe_obj_set_pos) },
{ be_const_key(get_style_value_letter_space, -1), be_const_func(lvbe_obj_get_style_value_letter_space) },
{ be_const_key(fade_in, -1), be_const_func(lvbe_obj_fade_in) },
{ be_const_key(get_style_text_opa, 213), be_const_func(lvbe_obj_get_style_text_opa) },
{ be_const_key(get_style_transition_prop_6, -1), be_const_func(lvbe_obj_get_style_transition_prop_6) },
{ be_const_key(set_auto_realign, -1), be_const_func(lvbe_obj_set_auto_realign) },
{ be_const_key(set_style_local_shadow_ofs_x, 118), be_const_func(lvbe_obj_set_style_local_shadow_ofs_x) },
{ be_const_key(set_style_local_radius, -1), be_const_func(lvbe_obj_set_style_local_radius) },
{ be_const_key(get_style_transform_angle, -1), be_const_func(lvbe_obj_get_style_transform_angle) },
{ be_const_key(get_drag_throw, 216), be_const_func(lvbe_obj_get_drag_throw) },
{ be_const_key(set_style_local_border_width, -1), be_const_func(lvbe_obj_set_style_local_border_width) },
{ be_const_key(get_style_bg_grad_color, 132), be_const_func(lvbe_obj_get_style_bg_grad_color) },
{ be_const_key(set_style_local_shadow_spread, -1), be_const_func(lvbe_obj_set_style_local_shadow_spread) },
{ be_const_key(get_hidden, -1), be_const_func(lvbe_obj_get_hidden) },
{ be_const_key(set_base_dir, 134), be_const_func(lvbe_obj_set_base_dir) },
{ be_const_key(allocate_ext_attr, -1), be_const_func(lvbe_obj_allocate_ext_attr) },
{ be_const_key(set_style_local_scale_border_width, 116), be_const_func(lvbe_obj_set_style_local_scale_border_width) },
{ be_const_key(get_style_line_dash_width, -1), be_const_func(lvbe_obj_get_style_line_dash_width) },
{ be_const_key(set_style_local_image_recolor_opa, -1), be_const_func(lvbe_obj_set_style_local_image_recolor_opa) },
{ be_const_key(set_style_local_outline_opa, -1), be_const_func(lvbe_obj_set_style_local_outline_opa) },
{ be_const_key(set_drag_parent, 30), be_const_func(lvbe_obj_set_drag_parent) },
{ be_const_key(add_style, -1), be_const_func(lvbe_obj_add_style) },
{ be_const_key(get_child_back, 215), be_const_func(lvbe_obj_get_child_back) },
{ be_const_key(get_style_scale_end_color, 10), be_const_func(lvbe_obj_get_style_scale_end_color) },
{ be_const_key(get_style_bg_color, 171), be_const_func(lvbe_obj_get_style_bg_color) },
{ be_const_key(get_style_outline_pad, -1), be_const_func(lvbe_obj_get_style_outline_pad) },
{ be_const_key(get_style_transition_delay, -1), be_const_func(lvbe_obj_get_style_transition_delay) },
{ be_const_key(get_style_text_sel_color, -1), be_const_func(lvbe_obj_get_style_text_sel_color) },
{ be_const_key(set_style_local_text_sel_color, -1), be_const_func(lvbe_obj_set_style_local_text_sel_color) },
{ be_const_key(set_style_local_transform_width, -1), be_const_func(lvbe_obj_set_style_local_transform_width) },
{ be_const_key(get_height_margin, 60), be_const_func(lvbe_obj_get_height_margin) },
{ be_const_key(get_style_shadow_ofs_y, -1), be_const_func(lvbe_obj_get_style_shadow_ofs_y) },
{ be_const_key(get_style_shadow_color, 150), be_const_func(lvbe_obj_get_style_shadow_color) },
{ be_const_key(get_height_fit, -1), be_const_func(lvbe_obj_get_height_fit) },
{ be_const_key(get_style_value_opa, -1), be_const_func(lvbe_obj_get_style_value_opa) },
{ be_const_key(set_parent, -1), be_const_func(lvbe_obj_set_parent) },
{ be_const_key(clear_state, 142), be_const_func(lvbe_obj_clear_state) },
{ be_const_key(invalidate_area, -1), be_const_func(lvbe_obj_invalidate_area) },
{ be_const_key(is_point_on_coords, -1), be_const_func(lvbe_obj_is_point_on_coords) },
{ be_const_key(set_style_local_scale_grad_color, -1), be_const_func(lvbe_obj_set_style_local_scale_grad_color) },
{ be_const_key(get_style_line_rounded, 217), be_const_func(lvbe_obj_get_style_line_rounded) },
{ be_const_key(set_style_local_transform_angle, 117), be_const_func(lvbe_obj_set_style_local_transform_angle) },
{ be_const_key(set_style_local_transition_prop_2, -1), be_const_func(lvbe_obj_set_style_local_transition_prop_2) },
{ be_const_key(set_style_local_value_ofs_y, -1), be_const_func(lvbe_obj_set_style_local_value_ofs_y) },
{ be_const_key(get_style_transform_zoom, 229), be_const_func(lvbe_obj_get_style_transform_zoom) },
{ be_const_key(get_style_size, -1), be_const_func(lvbe_obj_get_style_size) },
{ be_const_key(get_style_margin_top, -1), be_const_func(lvbe_obj_get_style_margin_top) },
{ be_const_key(set_style_local_text_letter_space, -1), be_const_func(lvbe_obj_set_style_local_text_letter_space) },
{ be_const_key(set_style_local_pattern_recolor_opa, -1), be_const_func(lvbe_obj_set_style_local_pattern_recolor_opa) },
{ be_const_key(set_style_local_scale_end_color, 271), be_const_func(lvbe_obj_set_style_local_scale_end_color) },
{ be_const_key(area_is_visible, -1), be_const_func(lvbe_obj_area_is_visible) },
{ be_const_key(get_height_grid, -1), be_const_func(lvbe_obj_get_height_grid) },
{ be_const_key(get_style_text_line_space, 107), be_const_func(lvbe_obj_get_style_text_line_space) },
{ be_const_key(set_style_local_shadow_blend_mode, -1), be_const_func(lvbe_obj_set_style_local_shadow_blend_mode) },
{ be_const_key(set_style_local_border_blend_mode, 13), be_const_func(lvbe_obj_set_style_local_border_blend_mode) },
{ be_const_key(get_base_dir, -1), be_const_func(lvbe_obj_get_base_dir) },
{ be_const_key(get_focus_parent, -1), be_const_func(lvbe_obj_get_focus_parent) },
{ be_const_key(set_style_local_bg_color, 249), be_const_func(lvbe_obj_set_style_local_bg_color) },
{ be_const_key(get_style_pattern_repeat, -1), be_const_func(lvbe_obj_get_style_pattern_repeat) },
{ be_const_key(get_coords, -1), be_const_func(lvbe_obj_get_coords) },
{ be_const_key(get_style_shadow_spread, -1), be_const_func(lvbe_obj_get_style_shadow_spread) },
{ be_const_key(set_width_fit, -1), be_const_func(lvbe_obj_set_width_fit) },
{ be_const_key(set_style_local_value_font, -1), be_const_func(lvbe_obj_set_style_local_value_font) },
{ be_const_key(set_width, -1), be_const_func(lvbe_obj_set_width) },
{ be_const_key(set_style_local_text_font, 209), be_const_func(lvbe_obj_set_style_local_text_font) },
{ be_const_key(align, -1), be_const_func(lvbe_obj_align) },
{ be_const_key(set_design_cb, -1), be_const_func(lvbe_obj_set_design_cb) },
{ be_const_key(reset_style_list, 102), be_const_func(lvbe_obj_reset_style_list) },
{ be_const_key(set_drag_throw, -1), be_const_func(lvbe_obj_set_drag_throw) },
{ be_const_key(get_ext_click_pad_top, -1), be_const_func(lvbe_obj_get_ext_click_pad_top) },
{ be_const_key(set_style_local_value_letter_space, 211), be_const_func(lvbe_obj_set_style_local_value_letter_space) },
{ be_const_key(get_click, -1), be_const_func(lvbe_obj_get_click) },
{ be_const_key(get_style_value_ofs_y, -1), be_const_func(lvbe_obj_get_style_value_ofs_y) },
{ be_const_key(get_style_pattern_opa, -1), be_const_func(lvbe_obj_get_style_pattern_opa) },
{ be_const_key(set_style_local_line_blend_mode, -1), be_const_func(lvbe_obj_set_style_local_line_blend_mode) },
{ be_const_key(get_inner_coords, -1), be_const_func(lvbe_obj_get_inner_coords) },
{ be_const_key(get_style_radius, -1), be_const_func(lvbe_obj_get_style_radius) },
{ be_const_key(get_style_line_width, -1), be_const_func(lvbe_obj_get_style_line_width) },
{ be_const_key(set_style_local_pad_inner, -1), be_const_func(lvbe_obj_set_style_local_pad_inner) },
{ be_const_key(set_style_local_line_color, 124), be_const_func(lvbe_obj_set_style_local_line_color) },
{ be_const_key(set_style_local_pad_right, -1), be_const_func(lvbe_obj_set_style_local_pad_right) },
{ be_const_key(set_state, -1), be_const_func(lvbe_obj_set_state) },
{ be_const_key(move_background, -1), be_const_func(lvbe_obj_move_background) },
{ be_const_key(set_style_local_transition_prop_4, -1), be_const_func(lvbe_obj_set_style_local_transition_prop_4) },
{ be_const_key(get_ext_click_pad_left, -1), be_const_func(lvbe_obj_get_ext_click_pad_left) },
{ be_const_key(get_ext_draw_pad, -1), be_const_func(lvbe_obj_get_ext_draw_pad) },
{ be_const_key(get_style_shadow_width, 58), be_const_func(lvbe_obj_get_style_shadow_width) },
{ be_const_key(clean_style_list, -1), be_const_func(lvbe_obj_clean_style_list) },
{ be_const_key(get_style_pad_bottom, -1), be_const_func(lvbe_obj_get_style_pad_bottom) },
{ be_const_key(set_style_local_value_color, -1), be_const_func(lvbe_obj_set_style_local_value_color) },
{ be_const_key(get_style_value_line_space, 44), be_const_func(lvbe_obj_get_style_value_line_space) },
{ be_const_key(get_style_shadow_opa, 62), be_const_func(lvbe_obj_get_style_shadow_opa) },
{ be_const_key(get_style_margin_left, -1), be_const_func(lvbe_obj_get_style_margin_left) },
{ be_const_key(get_style_scale_end_line_width, -1), be_const_func(lvbe_obj_get_style_scale_end_line_width) },
{ be_const_key(get_style_scale_width, 50), be_const_func(lvbe_obj_get_style_scale_width) },
{ be_const_key(finish_transitions, -1), be_const_func(lvbe_obj_finish_transitions) },
{ be_const_key(set_style_local_value_ofs_x, -1), be_const_func(lvbe_obj_set_style_local_value_ofs_x) },
{ be_const_key(set_style_local_transition_prop_5, 53), be_const_func(lvbe_obj_set_style_local_transition_prop_5) },
{ be_const_key(get_drag_dir, -1), be_const_func(lvbe_obj_get_drag_dir) },
{ be_const_key(set_style_local_text_decor, -1), be_const_func(lvbe_obj_set_style_local_text_decor) },
{ be_const_key(get_style_outline_color, -1), be_const_func(lvbe_obj_get_style_outline_color) },
{ be_const_key(count_children, 79), be_const_func(lvbe_obj_count_children) },
{ be_const_key(del_anim_ready_cb, 98), be_const_func(lvbe_obj_del_anim_ready_cb) },
{ be_const_key(get_style_pattern_recolor, 227), be_const_func(lvbe_obj_get_style_pattern_recolor) },
{ be_const_key(get_gesture_parent, 282), be_const_func(lvbe_obj_get_gesture_parent) },
{ be_const_key(get_style_image_recolor_opa, -1), be_const_func(lvbe_obj_get_style_image_recolor_opa) },
{ be_const_key(realign, -1), be_const_func(lvbe_obj_realign) },
{ be_const_key(get_parent_event, -1), be_const_func(lvbe_obj_get_parent_event) },
{ be_const_key(set_style_local_bg_grad_dir, -1), be_const_func(lvbe_obj_set_style_local_bg_grad_dir) },
{ be_const_key(set_style_local_transition_path, -1), be_const_func(lvbe_obj_set_style_local_transition_path) },
{ be_const_key(get_style_scale_width, 160), be_const_func(lvbe_obj_get_style_scale_width) },
{ be_const_key(set_style_local_line_opa, 109), be_const_func(lvbe_obj_set_style_local_line_opa) },
{ be_const_key(get_style_border_color, -1), be_const_func(lvbe_obj_get_style_border_color) },
{ be_const_key(set_style_local_scale_border_width, -1), be_const_func(lvbe_obj_set_style_local_scale_border_width) },
{ be_const_key(get_style_shadow_color, 254), be_const_func(lvbe_obj_get_style_shadow_color) },
{ be_const_key(get_style_line_dash_gap, -1), be_const_func(lvbe_obj_get_style_line_dash_gap) },
{ be_const_key(set_style_local_transition_prop_6, 95), be_const_func(lvbe_obj_set_style_local_transition_prop_6) },
{ be_const_key(set_click, -1), be_const_func(lvbe_obj_set_click) },
{ be_const_key(count_children_recursive, -1), be_const_func(lvbe_obj_count_children_recursive) },
{ be_const_key(set_height, 154), be_const_func(lvbe_obj_set_height) },
{ be_const_key(get_style_border_opa, -1), be_const_func(lvbe_obj_get_style_border_opa) },
{ be_const_key(set_style_local_text_color, 140), be_const_func(lvbe_obj_set_style_local_text_color) },
{ be_const_key(set_style_local_clip_corner, -1), be_const_func(lvbe_obj_set_style_local_clip_corner) },
{ be_const_key(get_style_outline_width, -1), be_const_func(lvbe_obj_get_style_outline_width) },
{ be_const_key(set_style_local_text_blend_mode, -1), be_const_func(lvbe_obj_set_style_local_text_blend_mode) },
{ be_const_key(get_style_margin_bottom, -1), be_const_func(lvbe_obj_get_style_margin_bottom) },
{ be_const_key(get_style_scale_border_width, -1), be_const_func(lvbe_obj_get_style_scale_border_width) },
{ be_const_key(set_style_local_transition_time, -1), be_const_func(lvbe_obj_set_style_local_transition_time) },
{ be_const_key(get_height, -1), be_const_func(lvbe_obj_get_height) },
{ be_const_key(get_style_transform_angle, 21), be_const_func(lvbe_obj_get_style_transform_angle) },
{ be_const_key(get_style_image_recolor_opa, 277), be_const_func(lvbe_obj_get_style_image_recolor_opa) },
{ be_const_key(get_group, 129), be_const_func(lvbe_obj_get_group) },
{ be_const_key(set_style_local_text_color, -1), be_const_func(lvbe_obj_set_style_local_text_color) },
{ be_const_key(get_style_pattern_recolor_opa, -1), be_const_func(lvbe_obj_get_style_pattern_recolor_opa) },
{ be_const_key(get_local_style, -1), be_const_func(lvbe_obj_get_local_style) },
{ be_const_key(fade_in, -1), be_const_func(lvbe_obj_fade_in) },
{ be_const_key(get_style_value_line_space, 215), be_const_func(lvbe_obj_get_style_value_line_space) },
{ be_const_key(set_style_local_line_blend_mode, 186), be_const_func(lvbe_obj_set_style_local_line_blend_mode) },
{ be_const_key(get_style_size, -1), be_const_func(lvbe_obj_get_style_size) },
{ be_const_key(set_style_local_shadow_opa, -1), be_const_func(lvbe_obj_set_style_local_shadow_opa) },
{ be_const_key(get_drag_throw, 211), be_const_func(lvbe_obj_get_drag_throw) },
{ be_const_key(get_style_line_width, 38), be_const_func(lvbe_obj_get_style_line_width) },
{ be_const_key(set_drag_throw, 252), be_const_func(lvbe_obj_set_drag_throw) },
{ be_const_key(set_style_local_image_opa, 287), be_const_func(lvbe_obj_set_style_local_image_opa) },
{ be_const_key(init_draw_label_dsc, 60), be_const_func(lvbe_obj_init_draw_label_dsc) },
{ be_const_key(get_style_shadow_ofs_y, -1), be_const_func(lvbe_obj_get_style_shadow_ofs_y) },
{ be_const_key(set_style_local_pattern_blend_mode, 194), be_const_func(lvbe_obj_set_style_local_pattern_blend_mode) },
{ be_const_key(set_style_local_value_blend_mode, 81), be_const_func(lvbe_obj_set_style_local_value_blend_mode) },
{ be_const_key(set_size, -1), be_const_func(lvbe_obj_set_size) },
{ be_const_key(set_focus_parent, -1), be_const_func(lvbe_obj_set_focus_parent) },
{ be_const_key(get_screen, -1), be_const_func(lvbe_obj_get_screen) },
{ be_const_key(get_ext_click_pad_top, -1), be_const_func(lvbe_obj_get_ext_click_pad_top) },
{ be_const_key(set_style_local_value_ofs_y, -1), be_const_func(lvbe_obj_set_style_local_value_ofs_y) },
{ be_const_key(create, -1), be_const_func(lvbe_obj_create) },
{ be_const_key(get_style_pattern_image, -1), be_const_func(lvbe_obj_get_style_pattern_image) },
{ be_const_key(get_style_line_opa, -1), be_const_func(lvbe_obj_get_style_line_opa) },
{ be_const_key(set_state, 180), be_const_func(lvbe_obj_set_state) },
{ be_const_key(get_style_outline_opa, 22), be_const_func(lvbe_obj_get_style_outline_opa) },
{ be_const_key(set_style_local_transition_path, 52), be_const_func(lvbe_obj_set_style_local_transition_path) },
{ be_const_key(set_style_local_bg_main_stop, -1), be_const_func(lvbe_obj_set_style_local_bg_main_stop) },
{ be_const_key(get_inner_coords, 301), be_const_func(lvbe_obj_get_inner_coords) },
{ be_const_key(set_style_local_scale_end_border_width, -1), be_const_func(lvbe_obj_set_style_local_scale_end_border_width) },
{ be_const_key(set_style_local_pattern_repeat, 62), be_const_func(lvbe_obj_set_style_local_pattern_repeat) },
{ be_const_key(set_style_local_bg_color, 64), be_const_func(lvbe_obj_set_style_local_bg_color) },
{ be_const_key(set_click, 268), be_const_func(lvbe_obj_set_click) },
{ be_const_key(get_style_text_letter_space, 245), be_const_func(lvbe_obj_get_style_text_letter_space) },
{ be_const_key(set_style_local_pad_top, -1), be_const_func(lvbe_obj_set_style_local_pad_top) },
{ be_const_key(set_style_local_border_width, -1), be_const_func(lvbe_obj_set_style_local_border_width) },
{ be_const_key(get_style_transform_height, 184), be_const_func(lvbe_obj_get_style_transform_height) },
{ be_const_key(get_ext_click_pad_bottom, -1), be_const_func(lvbe_obj_get_ext_click_pad_bottom) },
{ be_const_key(get_drag_parent, -1), be_const_func(lvbe_obj_get_drag_parent) },
{ be_const_key(get_style_line_dash_width, 266), be_const_func(lvbe_obj_get_style_line_dash_width) },
{ be_const_key(get_style_bg_grad_stop, -1), be_const_func(lvbe_obj_get_style_bg_grad_stop) },
{ be_const_key(move_background, -1), be_const_func(lvbe_obj_move_background) },
{ be_const_key(get_style_line_color, -1), be_const_func(lvbe_obj_get_style_line_color) },
{ be_const_key(get_style_margin_right, -1), be_const_func(lvbe_obj_get_style_margin_right) },
{ be_const_key(get_style_image_recolor, -1), be_const_func(lvbe_obj_get_style_image_recolor) },
{ be_const_key(add_state, -1), be_const_func(lvbe_obj_add_state) },
{ be_const_key(set_design_cb, -1), be_const_func(lvbe_obj_set_design_cb) },
{ be_const_key(set_style_local_bg_blend_mode, -1), be_const_func(lvbe_obj_set_style_local_bg_blend_mode) },
{ be_const_key(get_style_shadow_blend_mode, -1), be_const_func(lvbe_obj_get_style_shadow_blend_mode) },
{ be_const_key(set_style_local_transition_delay, 195), be_const_func(lvbe_obj_set_style_local_transition_delay) },
{ be_const_key(align_x, 93), be_const_func(lvbe_obj_align_x) },
{ be_const_key(get_style_bg_main_stop, 168), be_const_func(lvbe_obj_get_style_bg_main_stop) },
{ be_const_key(get_style_border_width, 74), be_const_func(lvbe_obj_get_style_border_width) },
{ be_const_key(get_style_border_blend_mode, -1), be_const_func(lvbe_obj_get_style_border_blend_mode) },
{ be_const_key(clear_protect, -1), be_const_func(lvbe_obj_clear_protect) },
{ be_const_key(move_foreground, -1), be_const_func(lvbe_obj_move_foreground) },
{ be_const_key(set_style_local_outline_blend_mode, -1), be_const_func(lvbe_obj_set_style_local_outline_blend_mode) },
{ be_const_key(set_drag, -1), be_const_func(lvbe_obj_set_drag) },
{ be_const_key(get_style_clip_corner, -1), be_const_func(lvbe_obj_get_style_clip_corner) },
{ be_const_key(get_height, 285), be_const_func(lvbe_obj_get_height) },
{ be_const_key(set_style_local_bg_opa, -1), be_const_func(lvbe_obj_set_style_local_bg_opa) },
{ be_const_key(init_draw_label_dsc, -1), be_const_func(lvbe_obj_init_draw_label_dsc) },
{ be_const_key(get_style_border_post, -1), be_const_func(lvbe_obj_get_style_border_post) },
{ be_const_key(get_style_value_color, -1), be_const_func(lvbe_obj_get_style_value_color) },
{ be_const_key(set_height_margin, 289), be_const_func(lvbe_obj_set_height_margin) },
{ be_const_key(dot_p, -1), be_const_int(0) },
{ be_const_key(get_style_pad_left, -1), be_const_func(lvbe_obj_get_style_pad_left) },
{ be_const_key(report_style_mod, -1), be_const_func(lvbe_obj_report_style_mod) },
{ be_const_key(get_style_bg_grad_dir, -1), be_const_func(lvbe_obj_get_style_bg_grad_dir) },
{ be_const_key(set_style_local_transition_prop_2, -1), be_const_func(lvbe_obj_set_style_local_transition_prop_2) },
{ be_const_key(set_style_local_pad_inner, -1), be_const_func(lvbe_obj_set_style_local_pad_inner) },
{ be_const_key(get_style_border_opa, -1), be_const_func(lvbe_obj_get_style_border_opa) },
{ be_const_key(set_style_local_border_opa, -1), be_const_func(lvbe_obj_set_style_local_border_opa) },
{ be_const_key(set_style_local_line_color, -1), be_const_func(lvbe_obj_set_style_local_line_color) },
{ be_const_key(get_style_line_blend_mode, -1), be_const_func(lvbe_obj_get_style_line_blend_mode) },
{ be_const_key(get_style_text_sel_color, -1), be_const_func(lvbe_obj_get_style_text_sel_color) },
{ be_const_key(set_style_local_shadow_ofs_x, -1), be_const_func(lvbe_obj_set_style_local_shadow_ofs_x) },
{ be_const_key(set_style_local_radius, 267), be_const_func(lvbe_obj_set_style_local_radius) },
{ be_const_key(init_draw_line_dsc, -1), be_const_func(lvbe_obj_init_draw_line_dsc) },
{ be_const_key(is_focused, -1), be_const_func(lvbe_obj_is_focused) },
{ be_const_key(get_adv_hittest, 116), be_const_func(lvbe_obj_get_adv_hittest) },
{ be_const_key(set_style_local_text_letter_space, -1), be_const_func(lvbe_obj_set_style_local_text_letter_space) },
{ be_const_key(get_click, -1), be_const_func(lvbe_obj_get_click) },
{ be_const_key(get_style_shadow_spread, -1), be_const_func(lvbe_obj_get_style_shadow_spread) },
{ be_const_key(set_style_local_outline_pad, -1), be_const_func(lvbe_obj_set_style_local_outline_pad) },
{ be_const_key(set_event_cb, 131), be_const_func(lvbe_obj_set_event_cb) },
{ be_const_key(realign, 94), be_const_func(lvbe_obj_realign) },
{ be_const_key(set_parent_event, 191), be_const_func(lvbe_obj_set_parent_event) },
{ be_const_key(get_style_value_ofs_y, -1), be_const_func(lvbe_obj_get_style_value_ofs_y) },
{ be_const_key(get_focus_parent, 117), be_const_func(lvbe_obj_get_focus_parent) },
{ be_const_key(clean, 170), be_const_func(lvbe_obj_clean) },
{ be_const_key(set_ext_click_area, -1), be_const_func(lvbe_obj_set_ext_click_area) },
{ be_const_key(get_style_pattern_recolor, 133), be_const_func(lvbe_obj_get_style_pattern_recolor) },
{ be_const_key(get_coords, -1), be_const_func(lvbe_obj_get_coords) },
{ be_const_key(get_width_margin, -1), be_const_func(lvbe_obj_get_width_margin) },
{ be_const_key(set_gesture_parent, 130), be_const_func(lvbe_obj_set_gesture_parent) },
{ be_const_key(get_ext_click_pad_right, 57), be_const_func(lvbe_obj_get_ext_click_pad_right) },
{ be_const_key(set_style_local_clip_corner, -1), be_const_func(lvbe_obj_set_style_local_clip_corner) },
{ be_const_key(invalidate_area, 236), be_const_func(lvbe_obj_invalidate_area) },
{ be_const_key(is_point_on_coords, -1), be_const_func(lvbe_obj_is_point_on_coords) },
{ be_const_key(set_style_local_bg_grad_stop, -1), be_const_func(lvbe_obj_set_style_local_bg_grad_stop) },
{ be_const_key(get_style_pad_bottom, 119), be_const_func(lvbe_obj_get_style_pad_bottom) },
{ be_const_key(set_style_local_transform_angle, -1), be_const_func(lvbe_obj_set_style_local_transform_angle) },
{ be_const_key(get_style_pad_right, 67), be_const_func(lvbe_obj_get_style_pad_right) },
{ be_const_key(set_style_local_transform_height, -1), be_const_func(lvbe_obj_set_style_local_transform_height) },
{ be_const_key(set_style_local_transition_prop_1, -1), be_const_func(lvbe_obj_set_style_local_transition_prop_1) },
{ be_const_key(set_style_local_pad_bottom, -1), be_const_func(lvbe_obj_set_style_local_pad_bottom) },
{ be_const_key(set_style_local_scale_end_color, 141), be_const_func(lvbe_obj_set_style_local_scale_end_color) },
{ be_const_key(get_drag_dir, -1), be_const_func(lvbe_obj_get_drag_dir) },
{ be_const_key(get_child_back, -1), be_const_func(lvbe_obj_get_child_back) },
{ be_const_key(set_style_local_outline_color, 138), be_const_func(lvbe_obj_set_style_local_outline_color) },
{ be_const_key(set_adv_hittest, -1), be_const_func(lvbe_obj_set_adv_hittest) },
{ be_const_key(init_draw_rect_dsc, 82), be_const_func(lvbe_obj_init_draw_rect_dsc) },
{ be_const_key(get_parent_event, -1), be_const_func(lvbe_obj_get_parent_event) },
{ be_const_key(get_style_transition_prop_4, -1), be_const_func(lvbe_obj_get_style_transition_prop_4) },
{ be_const_key(set_style_local_pattern_image, 166), be_const_func(lvbe_obj_set_style_local_pattern_image) },
{ be_const_key(set_style_local_margin_right, -1), be_const_func(lvbe_obj_set_style_local_margin_right) },
{ be_const_key(get_style_scale_end_border_width, 141), be_const_func(lvbe_obj_get_style_scale_end_border_width) },
{ be_const_key(get_hidden, -1), be_const_func(lvbe_obj_get_hidden) },
{ be_const_key(get_user_data, 169), be_const_func(lvbe_obj_get_user_data) },
{ be_const_key(get_style_pattern_blend_mode, 136), be_const_func(lvbe_obj_get_style_pattern_blend_mode) },
{ be_const_key(get_style_transition_prop_6, -1), be_const_func(lvbe_obj_get_style_transition_prop_6) },
{ be_const_key(get_style_value_letter_space, 33), be_const_func(lvbe_obj_get_style_value_letter_space) },
{ be_const_key(get_style_shadow_ofs_x, 173), be_const_func(lvbe_obj_get_style_shadow_ofs_x) },
{ be_const_key(get_style_value_blend_mode, -1), be_const_func(lvbe_obj_get_style_value_blend_mode) },
{ be_const_key(get_height_fit, -1), be_const_func(lvbe_obj_get_height_fit) },
{ be_const_key(set_style_local_shadow_blend_mode, -1), be_const_func(lvbe_obj_set_style_local_shadow_blend_mode) },
{ be_const_key(area_is_visible, -1), be_const_func(lvbe_obj_area_is_visible) },
{ be_const_key(set_style_local_size, -1), be_const_func(lvbe_obj_set_style_local_size) },
{ be_const_key(set_style_local_bg_grad_color, -1), be_const_func(lvbe_obj_set_style_local_bg_grad_color) },
{ be_const_key(get_style_transition_delay, -1), be_const_func(lvbe_obj_get_style_transition_delay) },
{ be_const_key(get_type, -1), be_const_func(lvbe_obj_get_type) },
{ be_const_key(get_protect, 265), be_const_func(lvbe_obj_get_protect) },
{ be_const_key(get_auto_realign, -1), be_const_func(lvbe_obj_get_auto_realign) },
{ be_const_key(get_style_clip_corner, -1), be_const_func(lvbe_obj_get_style_clip_corner) },
{ be_const_key(get_style_transition_time, -1), be_const_func(lvbe_obj_get_style_transition_time) },
{ be_const_key(get_style_margin_left, -1), be_const_func(lvbe_obj_get_style_margin_left) },
{ be_const_key(get_height_margin, 233), be_const_func(lvbe_obj_get_height_margin) },
{ be_const_key(get_style_image_opa, -1), be_const_func(lvbe_obj_get_style_image_opa) },
{ be_const_key(set_style_local_margin_left, 257), be_const_func(lvbe_obj_set_style_local_margin_left) },
{ be_const_key(get_width_fit, -1), be_const_func(lvbe_obj_get_width_fit) },
{ be_const_key(get_style_margin_top, 147), be_const_func(lvbe_obj_get_style_margin_top) },
{ be_const_key(set_style_local_value_align, -1), be_const_func(lvbe_obj_set_style_local_value_align) },
{ be_const_key(get_width_grid, 29), be_const_func(lvbe_obj_get_width_grid) },
{ be_const_key(get_style_line_rounded, -1), be_const_func(lvbe_obj_get_style_line_rounded) },
{ be_const_key(get_ext_attr, -1), be_const_func(lvbe_obj_get_ext_attr) },
{ be_const_key(set_style_local_line_rounded, -1), be_const_func(lvbe_obj_set_style_local_line_rounded) },
{ be_const_key(set_style_local_outline_opa, -1), be_const_func(lvbe_obj_set_style_local_outline_opa) },
{ be_const_key(del, 218), be_const_func(lvbe_obj_del) },
{ be_const_key(get_style_outline_color, 177), be_const_func(lvbe_obj_get_style_outline_color) },
{ be_const_key(refresh_ext_draw_pad, 285), be_const_func(lvbe_obj_refresh_ext_draw_pad) },
{ be_const_key(remove_style, 227), be_const_func(lvbe_obj_remove_style) },
{ be_const_key(allocate_ext_attr, -1), be_const_func(lvbe_obj_allocate_ext_attr) },
{ be_const_key(invalidate, -1), be_const_func(lvbe_obj_invalidate) },
{ be_const_key(set_drag_parent, -1), be_const_func(lvbe_obj_set_drag_parent) },
{ be_const_key(set_style_local_transition_prop_6, -1), be_const_func(lvbe_obj_set_style_local_transition_prop_6) },
{ be_const_key(tostring, -1), be_const_func(lvx_tostring) },
{ be_const_key(set_style_local_bg_opa, 159), be_const_func(lvbe_obj_set_style_local_bg_opa) },
{ be_const_key(get_style_margin_bottom, 28), be_const_func(lvbe_obj_get_style_margin_bottom) },
{ be_const_key(get_parent, -1), be_const_func(lvbe_obj_get_parent) },
{ be_const_key(align_y, -1), be_const_func(lvbe_obj_align_y) },
{ be_const_key(set_style_local_scale_end_line_width, -1), be_const_func(lvbe_obj_set_style_local_scale_end_line_width) },
{ be_const_key(get_style_image_blend_mode, -1), be_const_func(lvbe_obj_get_style_image_blend_mode) },
{ be_const_key(finish_transitions, -1), be_const_func(lvbe_obj_finish_transitions) },
{ be_const_key(remove_style_local_prop, -1), be_const_func(lvbe_obj_remove_style_local_prop) },
{ be_const_key(get_style_value_opa, 140), be_const_func(lvbe_obj_get_style_value_opa) },
{ be_const_key(get_style_value_str, -1), be_const_func(lvbe_obj_get_style_value_str) },
{ be_const_key(set_style_local_value_letter_space, 104), be_const_func(lvbe_obj_set_style_local_value_letter_space) },
{ be_const_key(set_pos, -1), be_const_func(lvbe_obj_set_pos) },
{ be_const_key(set_drag_dir, -1), be_const_func(lvbe_obj_set_drag_dir) },
{ be_const_key(get_style_bg_blend_mode, 59), be_const_func(lvbe_obj_get_style_bg_blend_mode) },
{ be_const_key(get_style_transition_prop_3, 262), be_const_func(lvbe_obj_get_style_transition_prop_3) },
{ be_const_key(set_width, -1), be_const_func(lvbe_obj_set_width) },
{ be_const_key(get_height_grid, -1), be_const_func(lvbe_obj_get_height_grid) },
{ be_const_key(set_style_local_pattern_opa, 302), be_const_func(lvbe_obj_set_style_local_pattern_opa) },
{ be_const_key(get_child, -1), be_const_func(lvbe_obj_get_child) },
{ be_const_key(set_base_dir, -1), be_const_func(lvbe_obj_set_base_dir) },
{ be_const_key(set_style_local_outline_blend_mode, -1), be_const_func(lvbe_obj_set_style_local_outline_blend_mode) },
{ be_const_key(count_children, 174), be_const_func(lvbe_obj_count_children) },
{ be_const_key(set_style_local_shadow_spread, -1), be_const_func(lvbe_obj_set_style_local_shadow_spread) },
{ be_const_key(is_visible, -1), be_const_func(lvbe_obj_is_visible) },
{ be_const_key(get_style_scale_end_border_width, 251), be_const_func(lvbe_obj_get_style_scale_end_border_width) },
{ be_const_key(get_focused_obj, -1), be_const_func(lvbe_obj_get_focused_obj) },
{ be_const_key(get_style_value_align, -1), be_const_func(lvbe_obj_get_style_value_align) },
{ be_const_key(get_style_bg_grad_color, 48), be_const_func(lvbe_obj_get_style_bg_grad_color) },
{ be_const_key(set_style_local_image_recolor_opa, -1), be_const_func(lvbe_obj_set_style_local_image_recolor_opa) },
{ be_const_key(get_style_outline_pad, -1), be_const_func(lvbe_obj_get_style_outline_pad) },
{ be_const_key(get_style_transition_prop_2, -1), be_const_func(lvbe_obj_get_style_transition_prop_2) },
{ be_const_key(set_width_fit, -1), be_const_func(lvbe_obj_set_width_fit) },
{ be_const_key(set_style_local_shadow_color, 234), be_const_func(lvbe_obj_set_style_local_shadow_color) },
{ be_const_key(set_style_local_scale_width, -1), be_const_func(lvbe_obj_set_style_local_scale_width) },
{ be_const_key(get_top, -1), be_const_func(lvbe_obj_get_top) },
{ be_const_key(get_style_pad_inner, -1), be_const_func(lvbe_obj_get_style_pad_inner) },
{ be_const_key(set_style_local_margin_bottom, -1), be_const_func(lvbe_obj_set_style_local_margin_bottom) },
{ be_const_key(get_style_outline_blend_mode, 77), be_const_func(lvbe_obj_get_style_outline_blend_mode) },
{ be_const_key(set_style_local_line_dash_width, 70), be_const_func(lvbe_obj_set_style_local_line_dash_width) },
{ be_const_key(get_x, -1), be_const_func(lvbe_obj_get_x) },
{ be_const_key(set_auto_realign, -1), be_const_func(lvbe_obj_set_auto_realign) },
{ be_const_key(set_style_local_border_color, -1), be_const_func(lvbe_obj_set_style_local_border_color) },
{ be_const_key(get_style_transition_prop_5, -1), be_const_func(lvbe_obj_get_style_transition_prop_5) },
{ be_const_key(set_style_local_pattern_recolor_opa, -1), be_const_func(lvbe_obj_set_style_local_pattern_recolor_opa) },
{ be_const_key(add_protect, -1), be_const_func(lvbe_obj_add_protect) },
{ be_const_key(set_style_local_pad_right, 190), be_const_func(lvbe_obj_set_style_local_pad_right) },
{ be_const_key(get_base_dir, -1), be_const_func(lvbe_obj_get_base_dir) },
{ be_const_key(is_protected, -1), be_const_func(lvbe_obj_is_protected) },
{ be_const_key(get_style_radius, -1), be_const_func(lvbe_obj_get_style_radius) },
{ be_const_key(get_style_border_post, 126), be_const_func(lvbe_obj_get_style_border_post) },
{ be_const_key(get_style_text_line_space, 235), be_const_func(lvbe_obj_get_style_text_line_space) },
{ be_const_key(set_style_local_opa_scale, -1), be_const_func(lvbe_obj_set_style_local_opa_scale) },
{ be_const_key(set_signal_cb, -1), be_const_func(lvbe_obj_set_signal_cb) },
{ be_const_key(set_style_local_image_blend_mode, 124), be_const_func(lvbe_obj_set_style_local_image_blend_mode) },
{ be_const_key(set_drag, 181), be_const_func(lvbe_obj_set_drag) },
{ be_const_key(set_style_local_line_width, -1), be_const_func(lvbe_obj_set_style_local_line_width) },
{ be_const_key(set_style_local_text_sel_color, 208), be_const_func(lvbe_obj_set_style_local_text_sel_color) },
{ be_const_key(get_gesture_parent, 54), be_const_func(lvbe_obj_get_gesture_parent) },
{ be_const_key(get_draw_rect_ext_pad_size, -1), be_const_func(lvbe_obj_get_draw_rect_ext_pad_size) },
{ be_const_key(set_style_local_text_opa, -1), be_const_func(lvbe_obj_set_style_local_text_opa) },
{ be_const_key(refresh_style, -1), be_const_func(lvbe_obj_refresh_style) },
{ be_const_key(hittest, 183), be_const_func(lvbe_obj_hittest) },
{ be_const_key(clear_state, -1), be_const_func(lvbe_obj_clear_state) },
{ be_const_key(set_style_local_value_color, -1), be_const_func(lvbe_obj_set_style_local_value_color) },
{ be_const_key(get_style_scale_grad_color, 13), be_const_func(lvbe_obj_get_style_scale_grad_color) },
{ be_const_key(reset_style_list, 12), be_const_func(lvbe_obj_reset_style_list) },
{ be_const_key(set_width_margin, 19), be_const_func(lvbe_obj_set_width_margin) },
{ be_const_key(get_style_bg_opa, -1), be_const_func(lvbe_obj_get_style_bg_opa) },
{ be_const_key(get_style_scale_border_width, -1), be_const_func(lvbe_obj_get_style_scale_border_width) },
{ be_const_key(align, -1), be_const_func(lvbe_obj_align) },
{ be_const_key(align_mid, -1), be_const_func(lvbe_obj_align_mid) },
{ be_const_key(set_style_local_border_side, -1), be_const_func(lvbe_obj_set_style_local_border_side) },
{ be_const_key(set_style_local_transition_time, -1), be_const_func(lvbe_obj_set_style_local_transition_time) },
{ be_const_key(init, 217), be_const_func(lvbe_obj_create) },
{ be_const_key(set_style_local_text_font, -1), be_const_func(lvbe_obj_set_style_local_text_font) },
{ be_const_key(set_style_local_text_sel_bg_color, -1), be_const_func(lvbe_obj_set_style_local_text_sel_bg_color) },
{ be_const_key(get_y, 151), be_const_func(lvbe_obj_get_y) },
{ be_const_key(get_style_border_side, 4), be_const_func(lvbe_obj_get_style_border_side) },
{ be_const_key(set_hidden, -1), be_const_func(lvbe_obj_set_hidden) },
{ be_const_key(set_style_local_value_opa, 244), be_const_func(lvbe_obj_set_style_local_value_opa) },
{ be_const_key(set_style_local_margin_top, -1), be_const_func(lvbe_obj_set_style_local_margin_top) },
{ be_const_key(set_style_local_value_str, -1), be_const_func(lvbe_obj_set_style_local_value_str) },
{ be_const_key(set_style_local_value_ofs_x, 187), be_const_func(lvbe_obj_set_style_local_value_ofs_x) },
{ be_const_key(get_style_text_color, 51), be_const_func(lvbe_obj_get_style_text_color) },
{ be_const_key(get_style_pattern_opa, -1), be_const_func(lvbe_obj_get_style_pattern_opa) },
{ be_const_key(clean_style_list, -1), be_const_func(lvbe_obj_clean_style_list) },
{ be_const_key(set_style_local_text_blend_mode, -1), be_const_func(lvbe_obj_set_style_local_text_blend_mode) },
{ be_const_key(get_style_transform_width, -1), be_const_func(lvbe_obj_get_style_transform_width) },
{ be_const_key(set_style_local_transform_zoom, 239), be_const_func(lvbe_obj_set_style_local_transform_zoom) },
{ be_const_key(set_style_local_scale_grad_color, 188), be_const_func(lvbe_obj_set_style_local_scale_grad_color) },
{ be_const_key(set_style_local_transition_prop_4, -1), be_const_func(lvbe_obj_set_style_local_transition_prop_4) },
{ be_const_key(set_style_local_pattern_recolor, -1), be_const_func(lvbe_obj_set_style_local_pattern_recolor) },
{ be_const_key(set_style_local_shadow_width, -1), be_const_func(lvbe_obj_set_style_local_shadow_width) },
{ be_const_key(get_style_opa_scale, -1), be_const_func(lvbe_obj_get_style_opa_scale) },
{ be_const_key(set_style_local_bg_grad_dir, -1), be_const_func(lvbe_obj_set_style_local_bg_grad_dir) },
{ be_const_key(set_top, 269), be_const_func(lvbe_obj_set_top) },
{ be_const_key(set_y, -1), be_const_func(lvbe_obj_set_y) },
{ be_const_key(get_width, -1), be_const_func(lvbe_obj_get_width) },
{ be_const_key(set_style_local_border_post, -1), be_const_func(lvbe_obj_set_style_local_border_post) },
{ be_const_key(get_style_value_color, -1), be_const_func(lvbe_obj_get_style_value_color) },
{ be_const_key(get_style_text_opa, -1), be_const_func(lvbe_obj_get_style_text_opa) },
{ be_const_key(set_style_local_pad_left, 295), be_const_func(lvbe_obj_set_style_local_pad_left) },
{ be_const_key(get_style_shadow_width, -1), be_const_func(lvbe_obj_get_style_shadow_width) },
{ be_const_key(report_style_mod, -1), be_const_func(lvbe_obj_report_style_mod) },
{ be_const_key(get_style_pad_top, 110), be_const_func(lvbe_obj_get_style_pad_top) },
{ be_const_key(set_style_local_line_dash_gap, -1), be_const_func(lvbe_obj_set_style_local_line_dash_gap) },
{ be_const_key(get_style_scale_end_line_width, 201), be_const_func(lvbe_obj_get_style_scale_end_line_width) },
{ be_const_key(del_anim_ready_cb, -1), be_const_func(lvbe_obj_del_anim_ready_cb) },
{ be_const_key(set_style_local_transform_width, -1), be_const_func(lvbe_obj_set_style_local_transform_width) },
{ be_const_key(get_style_bg_color, -1), be_const_func(lvbe_obj_get_style_bg_color) },
{ be_const_key(get_style_text_blend_mode, -1), be_const_func(lvbe_obj_get_style_text_blend_mode) },
{ be_const_key(align_mid_x, -1), be_const_func(lvbe_obj_align_mid_x) },
{ be_const_key(get_style_outline_width, -1), be_const_func(lvbe_obj_get_style_outline_width) },
{ be_const_key(get_ext_draw_pad, -1), be_const_func(lvbe_obj_get_ext_draw_pad) },
{ be_const_key(dot_p, 278), be_const_int(0) },
{ be_const_key(get_style_pattern_repeat, -1), be_const_func(lvbe_obj_get_style_pattern_repeat) },
{ be_const_key(set_style_local_image_recolor, -1), be_const_func(lvbe_obj_set_style_local_image_recolor) },
{ be_const_key(init_draw_img_dsc, -1), be_const_func(lvbe_obj_init_draw_img_dsc) },
{ be_const_key(set_style_local_border_blend_mode, 148), be_const_func(lvbe_obj_set_style_local_border_blend_mode) },
{ be_const_key(set_style_local_transition_prop_3, 72), be_const_func(lvbe_obj_set_style_local_transition_prop_3) },
{ be_const_key(get_state, -1), be_const_func(lvbe_obj_get_state) },
{ be_const_key(set_x, -1), be_const_func(lvbe_obj_set_x) },
{ be_const_key(set_style_local_text_decor, -1), be_const_func(lvbe_obj_set_style_local_text_decor) },
{ be_const_key(set_style_local_transition_prop_5, -1), be_const_func(lvbe_obj_set_style_local_transition_prop_5) },
{ be_const_key(set_height, 172), be_const_func(lvbe_obj_set_height) },
{ be_const_key(del_async, 213), be_const_func(lvbe_obj_del_async) },
{ be_const_key(set_style_local_shadow_ofs_y, -1), be_const_func(lvbe_obj_set_style_local_shadow_ofs_y) },
{ be_const_key(get_style_transition_prop_1, -1), be_const_func(lvbe_obj_get_style_transition_prop_1) },
{ be_const_key(count_children_recursive, -1), be_const_func(lvbe_obj_count_children_recursive) },
{ be_const_key(get_style_pad_left, -1), be_const_func(lvbe_obj_get_style_pad_left) },
{ be_const_key(set_user_data, -1), be_const_func(lvbe_obj_set_user_data) },
{ be_const_key(set_height_margin, 288), be_const_func(lvbe_obj_set_height_margin) },
{ be_const_key(set_style_local_text_line_space, -1), be_const_func(lvbe_obj_set_style_local_text_line_space) },
{ be_const_key(get_style_scale_end_color, -1), be_const_func(lvbe_obj_get_style_scale_end_color) },
{ be_const_key(set_height_fit, -1), be_const_func(lvbe_obj_set_height_fit) },
{ be_const_key(get_style_transform_zoom, 283), be_const_func(lvbe_obj_get_style_transform_zoom) },
{ be_const_key(handle_get_type_signal, -1), be_const_func(lvbe_obj_handle_get_type_signal) },
{ be_const_key(fade_out, -1), be_const_func(lvbe_obj_fade_out) },
{ be_const_key(get_style_value_ofs_x, 125), be_const_func(lvbe_obj_get_style_value_ofs_x) },
{ be_const_key(get_ext_click_pad_left, 113), be_const_func(lvbe_obj_get_ext_click_pad_left) },
{ be_const_key(align_mid_y, -1), be_const_func(lvbe_obj_align_mid_y) },
{ be_const_key(get_drag, -1), be_const_func(lvbe_obj_get_drag) },
{ be_const_key(set_style_local_value_font, 17), be_const_func(lvbe_obj_set_style_local_value_font) },
{ be_const_key(get_style_shadow_opa, -1), be_const_func(lvbe_obj_get_style_shadow_opa) },
{ be_const_key(set_parent, -1), be_const_func(lvbe_obj_set_parent) },
{ be_const_key(add_style, 73), be_const_func(lvbe_obj_add_style) },
{ be_const_key(set_style_local_outline_width, -1), be_const_func(lvbe_obj_set_style_local_outline_width) },
{ be_const_key(get_style_text_sel_bg_color, -1), be_const_func(lvbe_obj_get_style_text_sel_bg_color) },
};
static be_define_const_map(
be_class_lv_obj_map,
291
303
);
BE_EXPORT_VARIABLE be_define_const_class(

File diff suppressed because it is too large Load Diff

View File

@ -180,7 +180,8 @@ extern "C" {
* 'i' be_int
* 'b' be_bool
* 's' be_string
* 'o' be_instance
* 'lv_obj' be_instance of type or subtype
* '0'..'5' callback
*
* Ex: "oii+s" takes 3 mandatory arguments (obj_instance, int, int) and an optional fourth one [,string]
\*********************************************************************************************/
@ -189,54 +190,56 @@ extern "C" {
// read a single value at stack position idx, convert to int.
// if object instance, get `.p` member and convert it recursively
int32_t be_convert_single_elt(bvm *vm, int32_t idx);
int32_t be_convert_single_elt(bvm *vm, int32_t idx) {
if (be_isint(vm, idx)) { return be_toint(vm, idx); }
else if (be_isbool(vm, idx)) { return be_tobool(vm, idx); }
else if (be_isstring(vm, idx)) { return (int32_t) be_tostring(vm, idx); }
else if (be_iscomptr(vm, idx)) { return (int32_t) be_tocomptr(vm, idx); }
else if (be_isinstance(vm, idx)) {
int32_t be_convert_single_elt(bvm *vm, int32_t idx, const char * arg_type = nullptr) {
int32_t ret = 0;
char provided_type = 0;
// first convert the value to int32
if (be_isint(vm, idx)) { ret = be_toint(vm, idx); provided_type = 'i'; }
else if (be_isbool(vm, idx)) { ret = be_tobool(vm, idx); provided_type = 'b'; }
else if (be_isstring(vm, idx)) { ret = (int32_t) be_tostring(vm, idx); provided_type = 's'; }
else if (be_iscomptr(vm, idx)) { ret = (int32_t) be_tocomptr(vm, idx); provided_type = 'i'; }
// check if simple type was a match
if (provided_type) {
if (arg_type == nullptr) { return ret; } // if no type check, return
size_t arg_type_len = strlen(arg_type);
if ((arg_type_len != 1) || ((arg_type[0] != provided_type) && arg_type[0] != '.') ) {
berry_log_P("Unexpected argument type '%c', expected '%s'", provided_type, arg_type);
}
return ret;
}
// non-simple type
if (be_isinstance(vm, idx)) {
be_getmember(vm, idx, ".p");
int32_t ret = be_convert_single_elt(vm, -1); // recurse
int32_t ret = be_convert_single_elt(vm, -1, nullptr); // recurse
be_pop(vm, 1);
if (arg_type != nullptr) {
// Check type
be_classof(vm, idx);
bool class_found = be_getglobal(vm, arg_type);
// Stack: class_of_idx, class_of_target (or nil)
if (class_found) {
if (!be_isderived(vm, -2)) {
berry_log_P("Unexpected class type '%s', expected '%s'", be_classname(vm, -2), arg_type);
}
} else {
berry_log_P("Unable to find class '%s'", arg_type);
}
be_pop(vm, 2);
}
return ret;
} else {
be_raise(vm, kTypeError, nullptr);
}
//
return ret;
}
typedef int32_t (*fn_any_callable)(int32_t p0, int32_t p1, int32_t p2, int32_t p3, int32_t p4);
int be_call_c_func(bvm *vm, void * func, const char * return_type = nullptr, const char * arg_type = nullptr) {
int32_t p[5] = {0,0,0,0,0};
int32_t argc = be_top(vm); // Get the number of arguments
// AddLog(LOG_LEVEL_INFO, ">> be_call_c_func argc = %d", argc);
for (uint32_t i = 0; i < argc; i++) {
uint32_t idx = i+1;
p[i] = be_convert_single_elt(vm, idx);
}
fn_any_callable f = (fn_any_callable) func;
// AddLog(LOG_LEVEL_INFO, ">> be_call_c_func(%p) - %p,%p,%p,%p,%p - %s", f, p[0], p[1], p[2], p[3], p[4], return_type);
int32_t ret = (*f)(p[0], p[1], p[2], p[3], p[4]);
// AddLog(LOG_LEVEL_INFO, ">> be_call_c_func, ret = %p", ret);
if ((return_type == nullptr) || (strlen(return_type) == 0)) { be_return_nil(vm); } // does not return
else if (strlen(return_type) == 1) {
switch (return_type[0]) {
case 'i': be_pushint(vm, ret); break;
case 'b': be_pushbool(vm, ret); break;
case 's': be_pushstring(vm, (const char*) ret); break;
default: be_raise(vm, "internal_error", "Unsupported return type"); break;
}
be_return(vm);
} else { // class name
// AddLog(LOG_LEVEL_INFO, ">> be_call_c_func, create_obj", ret);
be_getglobal(vm, return_type); // stack = class
be_pushcomptr(vm, (void*) -1); // stack = class, -1
be_pushcomptr(vm, (void*) ret); // stack = class, -1, ptr
be_call(vm, 2); // instanciate with 2 arguments, stack = instance, -1, ptr
be_pop(vm, 2); // stack = instance
be_return(vm);
}
}
#endif // USE_BERRY

View File

@ -138,6 +138,146 @@ extern Adafruit_LvGL_Glue * glue;
extern void start_lvgl(const char * uconfig);
extern void lv_ex_get_started_1(void);
/*********************************************************************************************\
* Calling any LVGL function with auto-mapping
*
\*********************************************************************************************/
// General form of callback
#define LVBE_MAX_CALLBACK 6 // max 6 callbackss
typedef int32_t (*lvbe_callback)(struct _lv_obj_t * obj, int32_t v1, int32_t v2, int32_t v3, int32_t v4);
int32_t lvbe_callback_x(uint32_t n, struct _lv_obj_t * obj, int32_t v1, int32_t v2, int32_t v3, int32_t v4);
// We define 6 callback vectors, this may need to be raised
int32_t lvbe_callback_0(struct _lv_obj_t * obj, int32_t v1, int32_t v2, int32_t v3, int32_t v4) {
return lvbe_callback_x(0, obj, v1, v2, v3, v4);
}
int32_t lvbe_callback_1(struct _lv_obj_t * obj, int32_t v1, int32_t v2, int32_t v3, int32_t v4) {
return lvbe_callback_x(1, obj, v1, v2, v3, v4);
}
int32_t lvbe_callback_2(struct _lv_obj_t * obj, int32_t v1, int32_t v2, int32_t v3, int32_t v4) {
return lvbe_callback_x(2, obj, v1, v2, v3, v4);
}
int32_t lvbe_callback_3(struct _lv_obj_t * obj, int32_t v1, int32_t v2, int32_t v3, int32_t v4) {
return lvbe_callback_x(3, obj, v1, v2, v3, v4);
}
int32_t lvbe_callback_4(struct _lv_obj_t * obj, int32_t v1, int32_t v2, int32_t v3, int32_t v4) {
return lvbe_callback_x(4, obj, v1, v2, v3, v4);
}
int32_t lvbe_callback_5(struct _lv_obj_t * obj, int32_t v1, int32_t v2, int32_t v3, int32_t v4) {
return lvbe_callback_x(5, obj, v1, v2, v3, v4);
}
const lvbe_callback lvbe_callbacks[LVBE_MAX_CALLBACK] = {
lvbe_callback_0,
lvbe_callback_1,
lvbe_callback_2,
lvbe_callback_3,
lvbe_callback_4,
lvbe_callback_5,
};
int32_t lvbe_callback_x(uint32_t n, struct _lv_obj_t * obj, int32_t v1, int32_t v2, int32_t v3, int32_t v4) {
berry_log_P(">>>: Callback called%d", n);
return 0;
}
// check input parameters, and create callbacks if needed
// change values in place
//
// Format:
// - either a lowercase character encoding for a simple type
// - 'b': bool
// - 'i': int (int32_t)
// - 's': string (const char *)
//
// - a class name surroungded by parenthesis
// - '(lv_button)' -> lv_button class or derived
//
// - a callback, only 6 callbacks supported 0..5
// - '&1' callback 1
//
void be_check_arg_type(bvm *vm, int32_t argc, const char * arg_type, int32_t p[5]);
void be_check_arg_type(bvm *vm, int32_t argc, const char * arg_type, int32_t p[5]) {
bool arg_type_check = (arg_type != nullptr); // is type checking activated
int32_t arg_idx = 0; // position in arg_type string
char type_short_name[16];
for (uint32_t i = 0; i < argc; i++) {
type_short_name[0] = 0; // clear string
// extract individual type
if (nullptr != arg_type) {
switch (arg_type[arg_idx]) {
case '.':
case 'a'...'z':
type_short_name[0] = arg_type[arg_idx];
type_short_name[1] = 0;
arg_idx++;
break;
case '&':
type_short_name[0] = arg_type[arg_idx+1];
arg_idx += 2;
break;
case '(':
{
arg_idx++;
uint32_t offset = 0;
while (arg_type[arg_idx + offset] != ')' && arg_type[arg_idx + offset] != 0) {
type_short_name[offset] = arg_type[arg_idx + offset];
type_short_name[offset+1] = 0;
offset++;
}
if (arg_type[arg_idx + offset] == 0) {
arg_type = nullptr; // stop iterations
}
arg_idx += offset + 1;
}
break;
case 0:
arg_type = nullptr; // stop iterations
break;
}
}
// berry_log_P(">> be_call_c_func arg %i, type %s", i, arg_type_check ? type_short_name : "<null>");
p[i] = be_convert_single_elt(vm, i+1, arg_type_check ? type_short_name : nullptr);
}
// check if we are missing arguments
if (arg_type != nullptr && arg_type[arg_idx] != 0) {
berry_log_P("Missing arguments, remaining type '%s'", &arg_type[arg_idx]);
}
}
typedef int32_t (*fn_any_callable)(int32_t p0, int32_t p1, int32_t p2, int32_t p3, int32_t p4);
int be_call_c_func(bvm *vm, void * func, const char * return_type = nullptr, const char * arg_type = nullptr) {
int32_t p[5] = {0,0,0,0,0};
int32_t argc = be_top(vm); // Get the number of arguments
fn_any_callable f = (fn_any_callable) func;
be_check_arg_type(vm, argc, arg_type, p);
// AddLog(LOG_LEVEL_INFO, ">> be_call_c_func(%p) - %p,%p,%p,%p,%p - %s", f, p[0], p[1], p[2], p[3], p[4], return_type);
int32_t ret = (*f)(p[0], p[1], p[2], p[3], p[4]);
// AddLog(LOG_LEVEL_INFO, ">> be_call_c_func, ret = %p", ret);
if ((return_type == nullptr) || (strlen(return_type) == 0)) { be_return_nil(vm); } // does not return
else if (strlen(return_type) == 1) {
switch (return_type[0]) {
case 'i': be_pushint(vm, ret); break;
case 'b': be_pushbool(vm, ret); break;
case 's': be_pushstring(vm, (const char*) ret); break;
default: be_raise(vm, "internal_error", "Unsupported return type"); break;
}
be_return(vm);
} else { // class name
// AddLog(LOG_LEVEL_INFO, ">> be_call_c_func, create_obj", ret);
be_getglobal(vm, return_type); // stack = class
be_pushcomptr(vm, (void*) -1); // stack = class, -1
be_pushcomptr(vm, (void*) ret); // stack = class, -1, ptr
be_call(vm, 2); // instanciate with 2 arguments, stack = instance, -1, ptr
be_pop(vm, 2); // stack = instance
be_return(vm);
}
}
/*********************************************************************************************\
* Native functions mapped to Berry functions
*
@ -496,6 +636,7 @@ extern "C" {
be_return_nil(vm);
}
// called programmatically
int lvx_init_2(bvm *vm, void * func, const char * return_type, const char * arg_type = nullptr);
int lvx_init_2(bvm *vm, void * func, const char * return_type, const char * arg_type) {
int argc = be_top(vm);

View File

@ -396,6 +396,18 @@ void berry_log(const char * berry_buf) {
AddLog_P(LOG_LEVEL_INFO, PSTR("%s"), berry_buf);
}
void berry_log_P(const char * berry_buf, ...) {
// To save stack space support logging for max text length of 128 characters
char log_data[LOGSZ];
va_list arg;
va_start(arg, berry_buf);
uint32_t len = ext_vsnprintf_P(log_data, LOGSZ-3, berry_buf, arg);
va_end(arg);
if (len+3 > LOGSZ) { strcat(log_data, "..."); } // Actual data is more
berry_log(log_data);
}
/*********************************************************************************************\
* Helper function for `Driver` class

View File

@ -1,8 +1,8 @@
import re
import sys
in_file = "lv_widgets.h"
module_file = "lv_module.h"
lv_widgets_file = "lv_widgets.h"
lv_module_file = "lv_module.h"
out_prefix = "../../tasmota/lvgl_berry/"
lvgl_prefix = "../../lib/libesp32/Berry/default/"
@ -13,8 +13,17 @@ be_lv_c_mapping = "be_lv_c_mapping.h"
be_lv_widgets_libs = "be_lvgl_widgets_lib.c"
be_lv_lvgl_module = "be_lv_lvgl_module.c"
# detect a function definition all
# Ex: 'void lv_obj_set_parent(lv_obj_t * obj, lv_obj_t * parent);'
# Group 1: 'void'
# Group 2: 'lv_obj_set_parent'
# Group 3: 'lv_obj_t * obj, lv_obj_t * parent'
parse_func_def = re.compile("(.*?)\s(\w+)\((.*?)\)")
m = re.compile("(.*?)\s(\w+)\((.*?)\)")
# parse call argument type
# Ex: 'const lv_obj_t * parent' -> 'const ', 'lv_obj_t', ' * ', 'parent'
# Ex: 'bool auto_fit' -> '', 'bool', ' ', 'auto_fit'
parse_arg = re.compile("(\w+\s+)?(\w+)([\*\s]+)(\w+)")
return_types = {
"void": "",
@ -61,7 +70,12 @@ return_types = {
"lv_slider_type_t": "i",
"lv_spinner_type_t": "i",
"lv_spinner_dir_t": "i",
"lv_group_focus_cb_t": "i",
"lv_blend_mode_t": "i",
"lv_grad_dir_t": "i",
"lv_border_side_t": "i",
"lv_align_t": "i",
"lv_keyboard_mode_t": "i",
# "lv_group_focus_cb_t": "i",
"lv_obj_t *": "lv_obj",
@ -76,6 +90,7 @@ lv = {}
lvs = [] # special case for case for lv_style
lv0 = [] # function in lvlg module
lv_module = []
lv_cb_types = [] # list of callback types that will need each a separate C callback, later sorted by first argument
lv_widgets = ['arc', 'bar', 'btn', 'btnmatrix', 'calendar', 'canvas', 'chart', 'checkbox',
'cont', 'cpicker', 'dropdown', 'gauge', 'img', 'imgbtn', 'keyboard', 'label', 'led', 'line',
@ -95,7 +110,8 @@ def try_int(s):
def c_convert_ret_type(c_ret):
return return_types.get(c_ret, "")
with open(in_file) as f:
# parse widgets files containing most function calls
with open(lv_widgets_file) as f:
for l_raw in f:
l_raw = re.sub('//.*$', '', l_raw) # remove trailing comments
l_raw = re.sub('\s+', ' ', l_raw) # replace any multi-space with a single space
@ -104,10 +120,12 @@ with open(in_file) as f:
l_raw = re.sub('inline ', '', l_raw)
if (len(l_raw) == 0): continue
g = m.search(l_raw)
g = parse_func_def.search(l_raw)
if g:
# if match, we parse the line
ret_type = g.group(1)
# Ex: 'void lv_obj_set_parent(lv_obj_t * obj, lv_obj_t * parent);'
ret_type = g.group(1) # return type of the function
# Ex: ret_type -> 'void'
if ret_type not in return_types:
print(f" // Skipping unsupported return type: {ret_type}")
@ -117,12 +135,40 @@ with open(in_file) as f:
c_ret = c_convert_ret_type(ret_type)
# convert arguments
# TODO
c_args = None
args_raw = [ x.strip(" \t\n\r") for x in ",".split(g.group(2)) ] # split by comma and strip
c_args = ""
args_raw = [ x.strip(" \t\n\r") for x in g.group(3).split(",") ] # split by comma and strip
for arg_raw in args_raw:
# Ex: 'const lv_obj_t * parent' -> 'const ', 'lv_obj_t', ' * ', 'parent'
# Ex: 'bool auto_fit' -> '', 'bool', ' ', 'auto_fit'
ga = parse_arg.search(arg_raw)
if ga: # parsing ok?
ga_type = ga.group(2)
ga_ptr = ( ga.group(3).strip(" \t\n\r") == "*" ) # boolean
ga_name = ga.group(4)
ga_type_ptr = ga_type
if ga_ptr: ga_type_ptr += " *"
if ga_type_ptr in return_types:
ga_type = return_types[ga_type_ptr]
else:
# remove the trailing '_t' of type name if any
ga_type = re.sub(r"_t$", "", ga_type)
# if the type is a single letter, we just add it
if len(ga_type) == 1:
c_args += ga_type
else:
if ga_type.endswith("_cb"):
# it's a callback type, we encode it differently
if ga_type not in lv_cb_types:
lv_cb_types.append(ga_type)
c_args += "&" + str(lv_cb_types.index(ga_type))
else:
# we have a high-level type that we treat as a class name, enclose in parenthesis
c_args += "(" + ga_type + ")"
# analyze function name and determine if it needs to be assigned to a specific class
func_name = g.group(2)
# Ex: func_name -> 'lv_obj_set_parent'
if func_name.startswith("_"): continue # skip low-level
if func_name.startswith("lv_debug_"): continue # skip debug
@ -145,8 +191,10 @@ with open(in_file) as f:
if found: continue
print("| callback types"+str(lv_cb_types))
with open(module_file) as f:
# parse module file containing numerical constants
with open(lv_module_file) as f:
for l_raw in f:
l_raw = l_raw.strip(" \t\n\r") # remove leading or trailing spaces
if l_raw.startswith("//"):
@ -419,7 +467,8 @@ print("""
be_native_module_attr_table(lvgl) {
// Symbols be_native_module_str("SYMBOL_AUDIO", "\\xef\\x80\\x81"),
// Symbols
be_native_module_str("SYMBOL_AUDIO", "\\xef\\x80\\x81"),
be_native_module_str("SYMBOL_VIDEO", "\\xef\\x80\\x88"),
be_native_module_str("SYMBOL_LIST", "\\xef\\x80\\x8b"),
be_native_module_str("SYMBOL_OK", "\\xef\\x80\\x8c"),

View File

@ -1,3 +1,24 @@
/*
Callback types:
lv_group_focus_cb_t
lv_signal_cb_t
lv_group_style_mod_cb_t
lv_design_cb_t
lv_event_cb_t
typedef void (*lv_group_focus_cb_t)(struct _lv_group_t *);
typedef lv_res_t (*lv_signal_cb_t)(struct _lv_obj_t * obj, lv_signal_t sign, void * param);
typedef void (*lv_group_style_mod_cb_t)(struct _lv_group_t *, lv_style_t *);
typedef lv_design_res_t (*lv_design_cb_t)(struct _lv_obj_t * obj, const lv_area_t * clip_area, lv_design_mode_t mode);
typedef void (*lv_event_cb_t)(struct _lv_obj_t * obj, lv_event_t event);
General form of callback
typedef uint32_t (*lvbe_callback)(struct _lv_obj_t * obj, uint32_t v1, uint32_t v2);
*/
// Custome Tasmota code
void lv_img_set_tasmota_logo(lv_obj_t * img);
@ -111,7 +132,7 @@ void lv_obj_set_event_cb(lv_obj_t * obj, lv_event_cb_t event_cb);
lv_res_t lv_event_send(lv_obj_t * obj, lv_event_t event, const void * data);
lv_res_t lv_event_send_refresh(lv_obj_t * obj);
void lv_event_send_refresh_recursive(lv_obj_t * obj);
lv_res_t lv_event_send_func(lv_event_cb_t event_xcb, lv_obj_t * obj, lv_event_t event, const void * data);
// lv_res_t lv_event_send_func(lv_event_cb_t event_xcb, lv_obj_t * obj, lv_event_t event, const void * data);
const void * lv_event_get_data(void);
void lv_obj_set_signal_cb(lv_obj_t * obj, lv_signal_cb_t signal_cb);
lv_res_t lv_signal_send(lv_obj_t * obj, lv_signal_t signal, void * param);