I do delete the active (loaded) screen when my app finished that I don't need to load another active screen always I think, or maybe I should do nothing at app end. here the main.c code snippet: static lv_obj_t *app_scr = NULL; // main root screen static volatile bool app_brea...
lv_obj_deldeletes the child and afterwards informs the parent: lv_obj_send_event(par, LV_EVENT_CHILD_CHANGED,NULL);lv_obj_send_event(par, LV_EVENT_CHILD_DELETED,NULL); The parent now knows that some child changed and was deleted. The parent could not act on the child before deletion ...
*/voidlv_label_set_long_mode(lv_obj_t* label,lv_label_long_mode_tlong_mode){lv_label_ext_t* ext =lv_obj_get_ext_attr(label);#ifUSE_LV_ANIMATION/*Delete the old animation (if exists)*/lv_anim_del(label, (lv_anim_fp_t) lv_obj_set_x); lv_anim_del(label, (lv_anim_fp_t...
lv_msgbox_close(msgbox)closes (deletes) the message box. Events 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 ...
一、首先创建需要响应的OBJ 以lvgl开关obj为例 lv_obj_t * sw; sw = lv_switch_create (lv_scr_act()); 二、给其添加事件 首先定义回调函数 static void event_handler(lv_event_t * e) { lv_event_code_t code = lv_event_get_code(e); lv_obj_t * obj = lv_event_get_target(e); if(...
94 LV_EVENT_DELETE, 95 }; 96 typedef uint8_t lv_event_t; 103 typedef void (*lv_event_cb_t)(struct _lv_obj_t * obj, lv_event_t event); 104 108 enum { 109 /*General signals*/ 110 LV_SIGNAL_CLEANUP, 111 LV_SIGNAL_CHILD_CHG, 112 LV_SIGNAL_CORD_CHG, 113 LV_SI...
from C:\Users\merme\Documents\Arduino\7.0-inch_Squareline_Demo\ui_helpers.c:6: ui.h:29:8: error: unknown type name 'lv_obj_t' extern lv_obj_t *ui_Screen1; ^~~~ ui.h:30:24: error: unknown type name 'lv_event_t' void ui...
2.1.1134 Part 1 Section 19.3.2.4, oleObj (Global Element for Embedded objects and Controls) 2.1.1135 Part 1 Section 19.3.3.1, tag (Programmable Extensibility Tag) 2.1.1136 Part 1 Section 19.4.1, cm (Comment) 2.1.1137 Part 1 Section 19.4.5, pos (Comment Position) 2.1.1...
2.1.1134 Part 1 Section 19.3.2.4, oleObj (Global Element for Embedded objects and Controls) 2.1.1135 Part 1 Section 19.3.3.1, tag (Programmable Extensibility Tag) 2.1.1136 Part 1 Section 19.4.1, cm (Comment) 2.1.1137 Part 1 Section 19.4.5, pos (Comment Position) 2.1.1138...
The program stuck in vg_lite_finish() in the function lv_event_send(obj, LV_EVENT_DRAW_MAIN, draw_ctx) rather than every time vg_lite_finish() is called in other place. Then, I tested by disabling LV_DRAW_COMPLEX or LV_USE_GPU_NXP_VG_LITE and performed multiple power-o...