uint32_ti;for(i =0; i <lv_obj_get_child_cnt(parent); i++) {lv_obj_t* child =lv_obj_get_child(parent, i);/*Do something with child*/} lv_obj_get_index(obj)returns the index of the object in its parent. It is equivalent to the number of younger children in the parent. Y...
首先创建一个 组(Groups) :lv_group_t * g = lv_group_create(); 然后将一个对象添加到 组(Groups) 中:lv_group_add_obj(g, obj); 最后要将组(Groups)与输入设备相关联:lv_indev_set_group(indev, g);其中 indev 是 lv_indev_drv_register(); 的返回值 3.3 使用默认组 在lvgl中有些部件,在创...
lv_obj_t* spangroup = lv_spangroup_create(lv_scr_act()); lv_obj_set_size(spangroup, 160, LV_SIZE_CONTENT); 1. 2. 创建的 span-group 和一般的控件没什么区别,可以给它添加一些样式: AI检测代码解析 lv_obj_set_style_border_color(spangroup, lv_palette_main(LV_PALETTE_BLUE), 0); lv_...
lv_observer_get_user_data lv_observer_remove lv_roller_bind_value lv_slider_bind_value @@ -550,7 +581,6 @@ lv_subject_init_int lv_subject_init_pointer lv_subject_init_string lv_subject_notify lv_subject_remove_all_obj lv_subject_set_color lv_subject_set_int lv_subject_set_pointer @...
lv_display_get_event_dsc lv_display_get_horizontal_resolution lv_display_get_inactive_time lv_display_get_invalidated_draw_buf_size lv_display_get_layer_bottom lv_display_get_layer_sys lv_display_get_layer_top @@ -1617,6 +1628,7 @@ lv_obj_get_coords lv_obj_get_height lv_obj_get_self...
version : lvgl 8.2.0 environment : codeblocks sample code like : lv_obj_t * obj = lv_obj_create(lv_scr_act()); lv_obj_set_pos(obj, 500, 500); //lv_obj_set_width(obj, 300); //lv_obj_set_height(obj, 500); lv_obj_set_size(obj,300, 300); pri...
I have a weird crash in my program ( I suspect a memory leak somewhere), dealing with adding objects to a rotary encoder group with lv_group_add_obj LPC55S69 // GuiGuider V1.3.1-GA // MCUXpresso V11.4.0 build 6237 // LvGL 8.2.0 & 8.0.2I...
222lv_obj_t* lv_group_get_focused(constlv_group_t * group); 223 224#if LV_USE_USER_DATA 225 230lv_group_user_data_t * lv_group_get_user_data(lv_group_t * group); 231 232#endif 233 239lv_group_style_mod_cb_t lv_group_get_style_mod_cb(constlv_group_t * group); ...
LV_EVENT_VALUE_CHANGEDis sent by the buttons if one of them is clicked.LV_OBJ_FLAG_EVENT_BUBBLEis enabled on the buttons so you can add events to the message box itself. In the event handler,lv_event_get_target(e)will return the button matrix andlv_event_get_current_target(e)will re...
Projects Security Insights Additional navigation options New issue Merged kisvegabormerged 1 commit intolvgl:masterfromniklasf:chore/const-lv-obj-get-scroll-lrbt Feb 7, 2025 +11−11 Conversation4Commits1Checks23Files changed2 Contributor niklasfcommentedJan 28, 2025 ...