Lines Matching refs:button
225 :alt: LVGL button with label example
234 …lv_obj_t * button = lv_button_create(lv_screen_active()); /*Add a button to the …
235 lv_obj_center(button); /*Set its position*/
236 lv_obj_set_size(button, 100, 50); /*Set its size*/
237 …lv_obj_add_event_cb(button, button_event_cb, LV_EVENT_CLICKED, NULL); /*Assign a callback to the b…
239 lv_obj_t * label = lv_label_create(button); /*Add a label to the button*/
264 button = lv.button(lv.screen_active())
265 button.center()
266 button.set_size(100, 50)
267 button.add_event_cb(button_event_cb, lv.EVENT.CLICKED, None)
269 label = lv.label(button)