Home
last modified time | relevance | path

Searched refs:mbox (Results 1 – 7 of 7) sorted by relevance

/lvgl-3.4.0/src/extra/widgets/msgbox/
Dlv_msgbox.c79 lv_msgbox_t * mbox = (lv_msgbox_t *)obj; in lv_msgbox_create() local
89 mbox->title = lv_label_create(obj); in lv_msgbox_create()
90 lv_label_set_text(mbox->title, has_title ? title : ""); in lv_msgbox_create()
91 lv_label_set_long_mode(mbox->title, LV_LABEL_LONG_SCROLL_CIRCULAR); in lv_msgbox_create()
92 if(add_close_btn) lv_obj_set_flex_grow(mbox->title, 1); in lv_msgbox_create()
93 else lv_obj_set_width(mbox->title, LV_PCT(100)); in lv_msgbox_create()
97 mbox->close_btn = lv_btn_create(obj); in lv_msgbox_create()
98 lv_obj_set_ext_click_area(mbox->close_btn, LV_DPX(10)); in lv_msgbox_create()
99 lv_obj_add_event_cb(mbox->close_btn, msgbox_close_click_event_cb, LV_EVENT_CLICKED, NULL); in lv_msgbox_create()
100 lv_obj_t * label = lv_label_create(mbox->close_btn); in lv_msgbox_create()
[all …]
Dlv_msgbox.h81 uint16_t lv_msgbox_get_active_btn(lv_obj_t * mbox);
83 const char * lv_msgbox_get_active_btn_text(lv_obj_t * mbox);
85 void lv_msgbox_close(lv_obj_t * mbox);
87 void lv_msgbox_close_async(lv_obj_t * mbox);
/lvgl-3.4.0/examples/widgets/msgbox/
Dlv_example_msgbox_1.py2 mbox = e.get_current_target()
3 print("Button %s clicked" % mbox.get_active_btn_text())
/lvgl-3.4.0/demos/keypad_encoder/
Dlv_demo_keypad_encoder.c165 …lv_obj_t * mbox = lv_msgbox_create(NULL, "Hi", "Welcome to the keyboard and encoder demo", btns, f… in msgbox_create() local
166 lv_obj_add_event_cb(mbox, msgbox_event_cb, LV_EVENT_ALL, NULL); in msgbox_create()
167 lv_group_focus_obj(lv_msgbox_get_btns(mbox)); in msgbox_create()
168 lv_obj_add_state(lv_msgbox_get_btns(mbox), LV_STATE_FOCUS_KEY); in msgbox_create()
174 lv_obj_align(mbox, LV_ALIGN_CENTER, 0, 0); in msgbox_create()
176 lv_obj_t * bg = lv_obj_get_parent(mbox); in msgbox_create()
/lvgl-3.4.0/docs/widgets/extra/
Dmsgbox.md35 lv_obj_t * lv_msgbox_get_title(lv_obj_t * mbox);
36 lv_obj_t * lv_msgbox_get_close_btn(lv_obj_t * mbox);
37 lv_obj_t * lv_msgbox_get_text(lv_obj_t * mbox);
38 lv_obj_t * lv_msgbox_get_btns(lv_obj_t * mbox);
/lvgl-3.4.0/docs/overview/
Devent.md142 lv_event_send(mbox, LV_EVENT_VALUE_CHANGED, &btn_id);
/lvgl-3.4.0/docs/
DCHANGELOG.md1427 - mbox -> msgbox