/lvgl-latest/examples/widgets/checkbox/ |
D | lv_example_checkbox_2.c | 19 lv_obj_clear_state(old_cb, LV_STATE_CHECKED); /*Uncheck the previous radio button*/ in radio_event_handler() 20 lv_obj_add_state(act_cb, LV_STATE_CHECKED); /*Uncheck the current radio button*/ in radio_event_handler() 33 lv_obj_add_style(obj, &style_radio_chk, LV_PART_INDICATOR | LV_STATE_CHECKED); in radiobutton_create() 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()
|
D | lv_example_checkbox_1.c | 10 const char * state = lv_obj_get_state(obj) & LV_STATE_CHECKED ? "Checked" : "Unchecked"; in event_handler() 27 lv_obj_add_state(cb, LV_STATE_CHECKED); in lv_example_checkbox_1() 36 lv_obj_add_state(cb, LV_STATE_CHECKED | LV_STATE_DISABLED); in lv_example_checkbox_1()
|
/lvgl-latest/examples/widgets/switch/ |
D | lv_example_switch_1.c | 9 LV_LOG_USER("State: %s\n", lv_obj_has_state(obj, LV_STATE_CHECKED) ? "On" : "Off"); in event_handler() 24 lv_obj_add_state(sw, LV_STATE_CHECKED); in lv_example_switch_1() 32 lv_obj_add_state(sw, LV_STATE_CHECKED | LV_STATE_DISABLED); in lv_example_switch_1()
|
/lvgl-latest/docs/widgets/core/ |
D | switch.md | 17 The switch uses the standard `LV_STATE_CHECKED` state. 19 …rrent state of the switch (with `true` being on), use `lv_obj_has_state(switch, LV_STATE_CHECKED)`. 21 Call `lv_obj_add_state(switch, LV_STATE_CHECKED)` to turn it on, or `lv_obj_clear_state(switch, LV_…
|
D | checkbox.md | 28 lv_obj_add_state(cb, LV_STATE_CHECKED); /*Make the chekbox checked*/ 29 lv_obj_clear_state(cb, LV_STATE_CHECKED); /*MAke the checkbox unchecked*/ 30 lv_obj_add_state(cb, LV_STATE_CHECKED | LV_STATE_DISABLED); /*Make the checkbox checked and disable…
|
/lvgl-latest/tests/src/test_cases/ |
D | test_switch.c | 86 TEST_ASSERT(lv_obj_has_state(sw, LV_STATE_CHECKED)); in test_switch_animation() 92 TEST_ASSERT_FALSE(lv_obj_has_state(sw, LV_STATE_CHECKED)); in test_switch_animation() 137 TEST_ASSERT(lv_obj_has_state(sw, LV_STATE_CHECKED)); in test_switch_should_state_change_when_event_bubbling_is_enabled()
|
D | test_checkbox.c | 42 lv_obj_add_state(checkbox, LV_STATE_CHECKED); in test_checkbox_should_call_event_handler_on_click_when_enabled()
|
/lvgl-latest/examples/anim/ |
D | lv_example_anim_1.c | 14 if(lv_obj_has_state(sw, LV_STATE_CHECKED)) { in sw_event_cb() 48 lv_obj_add_state(sw, LV_STATE_CHECKED); in lv_example_anim_1()
|
D | lv_example_anim_timeline_1.c | 100 bool reverse = lv_obj_has_state(btn, LV_STATE_CHECKED); in btn_start_event_handler()
|
/lvgl-latest/src/extra/widgets/imgbtn/ |
D | lv_imgbtn.c | 102 obj_state |= LV_STATE_CHECKED; in lv_imgbtn_set_state() 105 lv_obj_clear_state(obj, LV_STATE_CHECKED | LV_STATE_PRESSED | LV_STATE_DISABLED); in lv_imgbtn_set_state() 207 if(lv_obj_has_state(obj, LV_STATE_CHECKED)) { in lv_imgbtn_event() 368 if(obj_state & LV_STATE_CHECKED) return LV_IMGBTN_STATE_CHECKED_DISABLED; in get_state() 372 if(obj_state & LV_STATE_CHECKED) { in get_state()
|
/lvgl-latest/examples/widgets/list/ |
D | lv_example_list_2.c | 29 lv_obj_add_state(child, LV_STATE_CHECKED); in event_handler() 32 lv_obj_clear_state(child, LV_STATE_CHECKED); in event_handler() 135 lv_obj_add_state(currentButton, LV_STATE_CHECKED); in lv_example_list_2()
|
/lvgl-latest/demos/music/ |
D | lv_demo_music_list.c | 151 lv_obj_add_state(btn, LV_STATE_CHECKED); in _lv_demo_music_list_btn_check() 156 lv_obj_clear_state(btn, LV_STATE_CHECKED); in _lv_demo_music_list_btn_check() 183 lv_obj_add_style(btn, &style_btn_chk, LV_STATE_CHECKED); in add_list_btn()
|
/lvgl-latest/examples/widgets/dropdown/ |
D | lv_example_dropdown_3.c | 35 lv_obj_set_style_transform_angle(dropdown, 1800, LV_PART_INDICATOR | LV_STATE_CHECKED); in lv_example_dropdown_3()
|
/lvgl-latest/examples/widgets/tabview/ |
D | lv_example_tabview_2.c | 15 lv_obj_set_style_border_side(tab_btns, LV_BORDER_SIDE_RIGHT, LV_PART_ITEMS | LV_STATE_CHECKED); in lv_example_tabview_2()
|
/lvgl-latest/src/extra/themes/mono/ |
D | lv_theme_mono.c | 245 lv_obj_add_style(obj, &styles->inv, LV_STATE_CHECKED); in theme_apply() 270 lv_obj_add_style(obj, &styles->inv, LV_PART_ITEMS | LV_STATE_CHECKED); in theme_apply() 282 lv_obj_add_style(obj, &styles->inv, LV_PART_ITEMS | LV_STATE_CHECKED); in theme_apply() 327 lv_obj_add_style(obj, &styles->inv, LV_PART_INDICATOR | LV_STATE_CHECKED); in theme_apply() 381 lv_obj_add_style(obj, &styles->inv, LV_PART_SELECTED | LV_STATE_CHECKED); in theme_apply() 433 lv_obj_add_style(obj, &styles->inv, LV_PART_ITEMS | LV_STATE_CHECKED); in theme_apply()
|
/lvgl-latest/examples/scroll/ |
D | lv_example_scroll_2.c | 12 if(lv_obj_has_state(sw, LV_STATE_CHECKED)) lv_obj_add_flag(list, LV_OBJ_FLAG_SCROLL_ONE); in sw_event_cb()
|
/lvgl-latest/src/extra/themes/default/ |
D | lv_theme_default.c | 760 lv_obj_add_style(obj, &styles->bg_color_secondary, LV_STATE_CHECKED); in theme_apply() 788 lv_obj_add_style(obj, &styles->bg_color_primary, LV_PART_ITEMS | LV_STATE_CHECKED); in theme_apply() 800 … lv_obj_add_style(obj, &styles->bg_color_primary_muted, LV_PART_ITEMS | LV_STATE_CHECKED); in theme_apply() 801 lv_obj_add_style(obj, &styles->tab_btn, LV_PART_ITEMS | LV_STATE_CHECKED); in theme_apply() 828 lv_obj_add_style(obj, &styles->bg_color_primary, LV_PART_ITEMS | LV_STATE_CHECKED); in theme_apply() 886 lv_obj_add_style(obj, &styles->bg_color_primary, LV_PART_INDICATOR | LV_STATE_CHECKED); in theme_apply() 887 lv_obj_add_style(obj, &styles->cb_marker_checked, LV_PART_INDICATOR | LV_STATE_CHECKED); in theme_apply() 904 lv_obj_add_style(obj, &styles->bg_color_primary, LV_PART_INDICATOR | LV_STATE_CHECKED); in theme_apply() 912 lv_obj_add_style(obj, &styles->transition_normal, LV_PART_INDICATOR | LV_STATE_CHECKED); in theme_apply() 962 lv_obj_add_style(obj, &styles->bg_color_primary, LV_PART_SELECTED | LV_STATE_CHECKED); in theme_apply() [all …]
|
/lvgl-latest/demos/stress/ |
D | lv_demo_stress.c | 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/widgets/ |
D | lv_switch.c | 184 bool chk = lv_obj_get_state(obj) & LV_STATE_CHECKED; in draw_main() 246 bool chk = lv_obj_get_state(obj) & LV_STATE_CHECKED; in lv_switch_trigger_anim()
|
D | lv_dropdown.c | 459 lv_obj_add_state(dropdown_obj, LV_STATE_CHECKED); in lv_dropdown_open() 555 lv_obj_clear_state(obj, LV_STATE_CHECKED); in lv_dropdown_close() 911 … draw_box(dropdown_obj, draw_ctx, dropdown->pr_opt_id, LV_STATE_CHECKED | LV_STATE_PRESSED); in draw_list() 912 … draw_box_label(dropdown_obj, draw_ctx, dropdown->pr_opt_id, LV_STATE_CHECKED | LV_STATE_PRESSED); in draw_list() 917 draw_box(dropdown_obj, draw_ctx, dropdown->sel_opt_id, LV_STATE_CHECKED); in draw_list() 918 draw_box_label(dropdown_obj, draw_ctx, dropdown->sel_opt_id, LV_STATE_CHECKED); in draw_list()
|
/lvgl-latest/src/extra/themes/basic/ |
D | lv_theme_basic.c | 261 lv_obj_add_style(obj, &styles->dark, LV_PART_INDICATOR | LV_STATE_CHECKED); in theme_apply() 297 lv_obj_add_style(obj, &styles->dark, LV_PART_SELECTED | LV_STATE_CHECKED); in theme_apply() 357 lv_obj_add_style(obj, &styles->light, LV_PART_ITEMS | LV_STATE_CHECKED); in theme_apply()
|
/lvgl-latest/examples/widgets/menu/ |
D | lv_example_menu_5.c | 130 if(lv_obj_has_state(obj, LV_STATE_CHECKED)) { in switch_handler() 193 lv_obj_add_state(sw, chk ? LV_STATE_CHECKED : 0); in create_switch()
|
/lvgl-latest/src/core/ |
D | lv_obj.c | 738 if(!(lv_obj_get_state(obj) & LV_STATE_CHECKED)) lv_obj_add_state(obj, LV_STATE_CHECKED); in lv_obj_event() 739 else lv_obj_clear_state(obj, LV_STATE_CHECKED); in lv_obj_event() 759 lv_obj_add_state(obj, LV_STATE_CHECKED); in lv_obj_event() 762 lv_obj_clear_state(obj, LV_STATE_CHECKED); in lv_obj_event()
|
D | lv_obj.h | 43 LV_STATE_CHECKED = 0x0001, enumerator
|
/lvgl-latest/src/extra/widgets/menu/ |
D | lv_menu.c | 229 lv_obj_add_state(menu->selected_tab, LV_STATE_CHECKED); in lv_menu_set_page() 232 lv_obj_clear_state(menu->selected_tab, LV_STATE_CHECKED); in lv_menu_set_page() 683 lv_obj_clear_state(menu->selected_tab, LV_STATE_CHECKED); in lv_menu_load_page_event_cb()
|