Lines Matching refs:btn
39 lv_obj_t * btn; in lv_example_msg_2() local
43 btn = lv_btn_create(lv_scr_act()); in lv_example_msg_2()
44 lv_obj_set_pos(btn, 240, 10); in lv_example_msg_2()
45 lv_obj_add_event_cb(btn, log_out_event_cb, LV_EVENT_ALL, NULL); in lv_example_msg_2()
46 lv_msg_subsribe_obj(MSG_LOGIN_OK, btn, NULL); in lv_example_msg_2()
47 lv_msg_subsribe_obj(MSG_LOG_OUT, btn, NULL); in lv_example_msg_2()
49 label = lv_label_create(btn); in lv_example_msg_2()
62 btn = lv_btn_create(lv_scr_act()); in lv_example_msg_2()
63 lv_obj_set_pos(btn, 10, 80); in lv_example_msg_2()
64 lv_obj_add_event_cb(btn, start_engine_msg_event_cb, LV_EVENT_MSG_RECEIVED, NULL); in lv_example_msg_2()
65 lv_obj_add_flag(btn, LV_OBJ_FLAG_CHECKABLE); in lv_example_msg_2()
66 lv_msg_subsribe_obj(MSG_LOGIN_OK, btn, NULL); in lv_example_msg_2()
67 lv_msg_subsribe_obj(MSG_LOG_OUT, btn, NULL); in lv_example_msg_2()
69 label = lv_label_create(btn); in lv_example_msg_2()
123 lv_obj_t * btn = lv_event_get_target(e); in log_out_event_cb() local
126 lv_obj_clear_state(btn, LV_STATE_DISABLED); in log_out_event_cb()
129 lv_obj_add_state(btn, LV_STATE_DISABLED); in log_out_event_cb()
138 lv_obj_t * btn = lv_event_get_target(e); in start_engine_msg_event_cb() local
141 lv_obj_clear_state(btn, LV_STATE_DISABLED); in start_engine_msg_event_cb()
144 lv_obj_add_state(btn, LV_STATE_DISABLED); in start_engine_msg_event_cb()