Searched refs:btns (Results 1 – 7 of 7) sorted by relevance
/lvgl-3.7.0/src/extra/widgets/msgbox/ |
D | lv_msgbox.c | 122 mbox->btns = lv_btnmatrix_create(obj); in lv_msgbox_create() 123 lv_btnmatrix_set_map(mbox->btns, btn_txts); in lv_msgbox_create() 124 …lv_btnmatrix_set_btn_ctrl_all(mbox->btns, LV_BTNMATRIX_CTRL_CLICK_TRIG | LV_BTNMATRIX_CTRL_NO_REPE… in lv_msgbox_create() 131 const lv_font_t * font = lv_obj_get_style_text_font(mbox->btns, LV_PART_ITEMS); in lv_msgbox_create() 133 lv_obj_set_size(mbox->btns, btn_cnt * (2 * LV_DPI_DEF / 3), btn_h); in lv_msgbox_create() 134 lv_obj_set_style_max_width(mbox->btns, lv_pct(100), 0); in lv_msgbox_create() 135 …lv_obj_add_flag(mbox->btns, LV_OBJ_FLAG_EVENT_BUBBLE); /*To see the event directly on the messa… in lv_msgbox_create() 173 return mbox->btns; in lv_msgbox_get_btns()
|
D | lv_msgbox.h | 43 lv_obj_t * btns; member
|
/lvgl-3.7.0/examples/widgets/msgbox/ |
D | lv_example_msgbox_1.py | 5 btns = ["Apply", "Close", ""] variable 7 mbox1 = lv.msgbox(lv.scr_act(), "Hello", "This is a message box with two buttons.", btns, True)
|
D | lv_example_msgbox_1.c | 12 static const char * btns[] = {"Apply", "Close", ""}; in lv_example_msgbox_1() local 14 …t * mbox1 = lv_msgbox_create(NULL, "Hello", "This is a message box with two buttons.", btns, true); in lv_example_msgbox_1()
|
/lvgl-3.7.0/src/extra/widgets/tabview/ |
D | lv_tabview.c | 78 lv_obj_t * btns = lv_tabview_get_tab_btns(obj); in lv_tabview_add_tab() local 108 lv_btnmatrix_set_map(btns, (const char **)new_map); in lv_tabview_add_tab() 111 lv_btnmatrix_set_btn_ctrl_all(btns, LV_BTNMATRIX_CTRL_CHECKABLE | LV_BTNMATRIX_CTRL_CLICK_TRIG | in lv_tabview_add_tab() 119 lv_btnmatrix_set_btn_ctrl(btns, tabview->tab_cur, LV_BTNMATRIX_CTRL_CHECKED); in lv_tabview_add_tab() 172 lv_obj_t * btns = lv_tabview_get_tab_btns(obj); in lv_tabview_set_act() local 173 lv_btnmatrix_set_btn_ctrl(btns, id, LV_BTNMATRIX_CTRL_CHECKED); in lv_tabview_set_act() 307 lv_obj_t * btns = lv_event_get_target(e); in btns_value_changed_event_cb() local 309 lv_obj_t * tv = lv_obj_get_parent(btns); in btns_value_changed_event_cb() 310 uint32_t id = lv_btnmatrix_get_selected_btn(btns); in btns_value_changed_event_cb()
|
/lvgl-3.7.0/demos/keypad_encoder/ |
D | lv_demo_keypad_encoder.c | 173 static const char * btns[] = {"Ok", "Cancel", ""}; in msgbox_create() local 174 …lv_obj_t * mbox = lv_msgbox_create(NULL, "Hi", "Welcome to the keyboard and encoder demo", btns, f… in msgbox_create()
|
/lvgl-3.7.0/demos/widgets/ |
D | lv_demo_widgets.py | 136 btns = ["Cancel", "Ok", ""] 138 m.add_btns(btns)
|