Home
last modified time | relevance | path

Searched refs:lv_obj_add_state (Results 1 – 24 of 24) sorted by relevance

/lvgl-latest/examples/widgets/switch/
Dlv_example_switch_1.c24 lv_obj_add_state(sw, LV_STATE_CHECKED); in lv_example_switch_1()
28 lv_obj_add_state(sw, LV_STATE_DISABLED); in lv_example_switch_1()
32 lv_obj_add_state(sw, LV_STATE_CHECKED | LV_STATE_DISABLED); in lv_example_switch_1()
/lvgl-latest/examples/widgets/checkbox/
Dlv_example_checkbox_1.c27 lv_obj_add_state(cb, LV_STATE_CHECKED); in lv_example_checkbox_1()
32 lv_obj_add_state(cb, LV_STATE_DISABLED); in lv_example_checkbox_1()
36 lv_obj_add_state(cb, LV_STATE_CHECKED | LV_STATE_DISABLED); in lv_example_checkbox_1()
Dlv_example_checkbox_2.c20 lv_obj_add_state(act_cb, LV_STATE_CHECKED); /*Uncheck the current radio button*/ in radio_event_handler()
66 lv_obj_add_state(lv_obj_get_child(cont1, 0), LV_STATE_CHECKED); in lv_example_checkbox_2()
80 lv_obj_add_state(lv_obj_get_child(cont2, 0), LV_STATE_CHECKED); in lv_example_checkbox_2()
/lvgl-latest/examples/others/msg/
Dlv_example_msg_2.c104 lv_obj_add_state(ta, LV_STATE_DISABLED); in textarea_event_cb()
129 lv_obj_add_state(btn, LV_STATE_DISABLED); in log_out_event_cb()
144 lv_obj_add_state(btn, LV_STATE_DISABLED); in start_engine_msg_event_cb()
/lvgl-latest/demos/stress/
Dlv_demo_stress.c131 lv_obj_add_state(obj, LV_STATE_DISABLED); in obj_test_timer_cb()
194 lv_obj_add_state(obj, LV_STATE_CHECKED); in obj_test_timer_cb()
400 lv_obj_add_state(obj, LV_STATE_CHECKED); in obj_test_timer_cb()
403 lv_obj_add_state(obj, LV_STATE_CHECKED | LV_STATE_DISABLED); in obj_test_timer_cb()
/lvgl-latest/src/extra/others/gridnav/
Dlv_gridnav.c99 lv_obj_add_state(to_focus, LV_STATE_FOCUSED | LV_STATE_FOCUS_KEY); in lv_gridnav_set_focused()
211 lv_obj_add_state(guess, LV_STATE_FOCUSED | LV_STATE_FOCUS_KEY); in gridnav_event_cb()
219 lv_obj_add_state(dsc->focused_obj, LV_STATE_FOCUSED | LV_STATE_FOCUS_KEY); in gridnav_event_cb()
235 lv_obj_add_state(child, LV_STATE_FOCUSED | LV_STATE_FOCUS_KEY); in gridnav_event_cb()
/lvgl-latest/examples/widgets/textarea/
Dlv_example_textarea_1.c28 lv_obj_add_state(ta, LV_STATE_FOCUSED); /*To be sure the cursor is visible*/ in lv_example_textarea_1()
/lvgl-latest/examples/anim/
Dlv_example_anim_1.c48 lv_obj_add_state(sw, LV_STATE_CHECKED); in lv_example_anim_1()
/lvgl-latest/examples/widgets/list/
Dlv_example_list_2.c29 lv_obj_add_state(child, LV_STATE_CHECKED); in event_handler()
135 lv_obj_add_state(currentButton, LV_STATE_CHECKED); in lv_example_list_2()
/lvgl-latest/docs/widgets/core/
Dcheckbox.md28 lv_obj_add_state(cb, LV_STATE_CHECKED); /*Make the chekbox checked*/
30 lv_obj_add_state(cb, LV_STATE_CHECKED | LV_STATE_DISABLED); /*Make the checkbox checked and disable…
Dswitch.md21 Call `lv_obj_add_state(switch, LV_STATE_CHECKED)` to turn it on, or `lv_obj_clear_state(switch, LV_…
/lvgl-latest/demos/music/
Dlv_demo_music_list.c151 lv_obj_add_state(btn, LV_STATE_CHECKED); in _lv_demo_music_list_btn_check()
188 lv_obj_add_state(btn, LV_STATE_DISABLED); in add_list_btn()
Dlv_demo_music_main.c350 lv_obj_add_state(play_obj, LV_STATE_CHECKED); in _lv_demo_music_resume()
/lvgl-latest/tests/src/test_cases/
Dtest_checkbox.c42 lv_obj_add_state(checkbox, LV_STATE_CHECKED); in test_checkbox_should_call_event_handler_on_click_when_enabled()
/lvgl-latest/src/core/
Dlv_obj.c294 void lv_obj_add_state(lv_obj_t * obj, lv_state_t state) in lv_obj_add_state() function
731 lv_obj_add_state(obj, LV_STATE_PRESSED); in lv_obj_event()
738 if(!(lv_obj_get_state(obj) & LV_STATE_CHECKED)) lv_obj_add_state(obj, LV_STATE_CHECKED); in lv_obj_event()
759 lv_obj_add_state(obj, LV_STATE_CHECKED); in lv_obj_event()
819 lv_obj_add_state(obj, state); in lv_obj_event()
822 lv_obj_add_state(obj, state); in lv_obj_event()
827 lv_obj_add_state(obj, LV_STATE_SCROLLED); in lv_obj_event()
Dlv_obj.h250 void lv_obj_add_state(lv_obj_t * obj, lv_state_t state);
/lvgl-latest/demos/keypad_encoder/
Dlv_demo_keypad_encoder.c177 lv_obj_add_state(lv_msgbox_get_btns(mbox), LV_STATE_FOCUS_KEY); in msgbox_create()
/lvgl-latest/examples/widgets/menu/
Dlv_example_menu_5.c193 lv_obj_add_state(sw, chk ? LV_STATE_CHECKED : 0); in create_switch()
/lvgl-latest/src/extra/widgets/imgbtn/
Dlv_imgbtn.c106 lv_obj_add_state(obj, obj_state); in lv_imgbtn_set_state()
/lvgl-latest/demos/widgets/
Dlv_demo_widgets.c261 lv_obj_add_state(invite_btn, LV_STATE_DISABLED); in profile_create()
956 lv_obj_add_state(cb, LV_STATE_CHECKED); in shop_create()
960 lv_obj_add_state(cb, LV_STATE_DISABLED); in shop_create()
964 lv_obj_add_state(cb, LV_STATE_CHECKED | LV_STATE_DISABLED); in shop_create()
/lvgl-latest/src/extra/widgets/menu/
Dlv_menu.c229 lv_obj_add_state(menu->selected_tab, LV_STATE_CHECKED); in lv_menu_set_page()
/lvgl-latest/docs/overview/
Dobject.md218 In both cases OR-ed state values can be used as well. E.g. `lv_obj_add_state(obj, part, LV_STATE_PR…
/lvgl-latest/docs/get-started/
Dquick-overview.md179 lv_obj_add_state(obj, LV_STATE_...);
/lvgl-latest/src/widgets/
Dlv_dropdown.c459 lv_obj_add_state(dropdown_obj, LV_STATE_CHECKED); in lv_dropdown_open()