/lvgl-latest/examples/widgets/slider/ |
D | lv_example_slider_2.c | 48 lv_obj_add_style(slider, &style_pressed_color, LV_PART_INDICATOR | LV_STATE_PRESSED); in lv_example_slider_2() 50 lv_obj_add_style(slider, &style_pressed_color, LV_PART_KNOB | LV_STATE_PRESSED); in lv_example_slider_2()
|
/lvgl-latest/src/extra/themes/mono/ |
D | lv_theme_mono.c | 244 lv_obj_add_style(obj, &styles->pr, LV_STATE_PRESSED); in theme_apply() 258 lv_obj_add_style(obj, &styles->pr, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply() 269 lv_obj_add_style(obj, &styles->pr, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply() 281 lv_obj_add_style(obj, &styles->pr, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply() 315 lv_obj_add_style(obj, &styles->pr, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply() 328 lv_obj_add_style(obj, &styles->pr, LV_PART_INDICATOR | LV_STATE_PRESSED); in theme_apply() 373 lv_obj_add_style(obj, &styles->pr, LV_STATE_PRESSED); in theme_apply() 382 lv_obj_add_style(obj, &styles->pr, LV_PART_SELECTED | LV_STATE_PRESSED); in theme_apply() 420 lv_obj_add_style(obj, &styles->pr, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply() 432 lv_obj_add_style(obj, &styles->pr, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply() [all …]
|
/lvgl-latest/examples/get_started/ |
D | lv_example_get_started_2.c | 61 lv_obj_add_style(btn, &style_btn_pressed, LV_STATE_PRESSED); in lv_example_get_started_2() 75 lv_obj_add_style(btn2, &style_btn_pressed, LV_STATE_PRESSED); in lv_example_get_started_2()
|
/lvgl-latest/src/extra/themes/default/ |
D | lv_theme_default.c | 754 lv_obj_add_style(obj, &styles->pressed, LV_STATE_PRESSED); in theme_apply() 755 lv_obj_add_style(obj, &styles->transition_normal, LV_STATE_PRESSED); in theme_apply() 758 lv_obj_add_style(obj, &styles->grow, LV_STATE_PRESSED); in theme_apply() 767 lv_obj_add_style(obj, &styles->menu_pressed, LV_STATE_PRESSED); in theme_apply() 786 lv_obj_add_style(obj, &styles->pressed, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply() 799 lv_obj_add_style(obj, &styles->pressed, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply() 815 lv_obj_add_style(obj, &styles->pressed, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply() 827 lv_obj_add_style(obj, &styles->pressed, LV_PART_ITEMS | LV_STATE_PRESSED); in theme_apply() 855 lv_obj_add_style(obj, &styles->grow, LV_PART_KNOB | LV_STATE_PRESSED); in theme_apply() 858 lv_obj_add_style(obj, &styles->transition_normal, LV_PART_KNOB | LV_STATE_PRESSED); in theme_apply() [all …]
|
/lvgl-latest/examples/styles/ |
D | lv_example_style_13.c | 24 lv_obj_add_style(obj, &style_indic_pr, LV_PART_INDICATOR | LV_STATE_PRESSED); in lv_example_style_13()
|
D | lv_example_style_10.c | 35 lv_obj_add_style(obj, &style_pr, LV_STATE_PRESSED); in lv_example_style_10()
|
/lvgl-latest/src/extra/widgets/imgbtn/ |
D | lv_imgbtn.c | 98 …LV_IMGBTN_STATE_PRESSED || state == LV_IMGBTN_STATE_CHECKED_PRESSED) obj_state |= LV_STATE_PRESSED; 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() 373 if(obj_state & LV_STATE_PRESSED) return LV_IMGBTN_STATE_CHECKED_PRESSED; in get_state() 377 if(obj_state & LV_STATE_PRESSED) return LV_IMGBTN_STATE_PRESSED; in get_state()
|
/lvgl-latest/examples/widgets/btn/ |
D | lv_example_btn_3.c | 39 lv_obj_add_style(btn1, &style_pr, LV_STATE_PRESSED); in lv_example_btn_3()
|
D | lv_example_btn_2.c | 57 lv_obj_add_style(btn1, &style_pr, LV_STATE_PRESSED); in lv_example_btn_2()
|
/lvgl-latest/examples/widgets/imgbtn/ |
D | lv_example_imgbtn_1.c | 31 lv_obj_add_style(imgbtn1, &style_pr, LV_STATE_PRESSED); in lv_example_imgbtn_1()
|
/lvgl-latest/examples/others/snapshot/ |
D | lv_example_snapshot_1.c | 51 lv_obj_set_style_transform_zoom(img, 400, LV_STATE_PRESSED); in lv_example_snapshot_1()
|
/lvgl-latest/docs/get-started/ |
D | quick-overview.md | 169 - `LV_STATE_PRESSED` Being pressed 173 …ically go to the `LV_STATE_FOCUSED` and `LV_STATE_PRESSED` states and when you release it the `LV_… 199 lv_obj_add_style(slider1, &style1, LV_PART_INDICATOR | LV_STATE_PRESSED); 204 lv_obj_add_style(btn1, &style1, LV_STATE_PRESSED); /*Equal to LV_PART_MAIN | LV_STATE_PRESSED*/ 234 lv_obj_set_style_bg_color(slider1, lv_color_hex(0x2080bb), LV_PART_INDICATOR | LV_STATE_PRESSED);
|
/lvgl-latest/docs/overview/ |
D | coords.md | 192 …r size depending on state. E.g. 100 px wide in `LV_STATE_DEFAULT` but 120 px in `LV_STATE_PRESSED`. 225 lv_obj_add_style(btn1, &style_pressed, LV_STATE_PRESSED); 228 lv_obj_add_style(btn2, &style_pressed, LV_STATE_PRESSED); 231 lv_obj_add_style(btn3, &style_pressed, LV_STATE_PRESSED); 245 lv_obj_add_style(btn1, &style_pressed, LV_STATE_PRESSED); 248 lv_obj_add_style(btn2, &style_pressed, LV_STATE_PRESSED); 251 lv_obj_add_style(btn3, &style_pressed, LV_STATE_PRESSED); 277 lv_obj_add_style(btn, &style_pressed, LV_STATE_PRESSED);
|
D | style.md | 26 - `LV_STATE_PRESSED` (0x0020) Being pressed 34 …focused and pressed at the same time. This is represented as `LV_STATE_FOCUSED | LV_STATE_PRESSED`. 45 - `LV_STATE_PRESSED`: gray 53 5. It's possible to set e.g. rose color for `LV_STATE_PRESSED | LV_STATE_FOCUSED`. 194 - `LV_STATE_PRESSED`: The main part in pressed state. `LV_PART_MAIN` can be omitted 198 - `LV_PART_INDICATOR | LV_STATE_PRESSED | LV_STATE_CHECKED` The indicator part when the object is p… 203 lv_obj_add_style(btn, &btn_red, LV_STATE_PRESSED); /*Overwrite only some colors to red when presse…
|
D | object.md | 207 - `LV_STATE_PRESSED` Being pressed 218 …state values can be used as well. E.g. `lv_obj_add_state(obj, part, LV_STATE_PRESSED | LV_PRESSED_…
|
/lvgl-latest/examples/widgets/table/ |
D | lv_example_table_2.c | 73 lv_obj_remove_style(table, NULL, LV_PART_ITEMS | LV_STATE_PRESSED); in lv_example_table_2()
|
/lvgl-latest/src/widgets/ |
D | lv_dropdown.c | 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() 915 draw_box(dropdown_obj, draw_ctx, dropdown->pr_opt_id, LV_STATE_PRESSED); in draw_list() 916 draw_box_label(dropdown_obj, draw_ctx, dropdown->pr_opt_id, LV_STATE_PRESSED); in draw_list() 922 draw_box(dropdown_obj, draw_ctx, dropdown->pr_opt_id, LV_STATE_PRESSED); in draw_list() 923 draw_box_label(dropdown_obj, draw_ctx, dropdown->pr_opt_id, LV_STATE_PRESSED); in draw_list()
|
D | lv_btnmatrix.c | 753 if(state_ori & LV_STATE_PRESSED) btn_state |= LV_STATE_PRESSED; in draw_main() 802 if((btn_state & LV_STATE_PRESSED) && (btnm->ctrl_bits[btn_i] & LV_BTNMATRIX_CTRL_POPOVER)) { in draw_main() 833 if((btn_state & LV_STATE_PRESSED) && (btnm->ctrl_bits[btn_i] & LV_BTNMATRIX_CTRL_POPOVER)) { in draw_main()
|
D | lv_table.c | 787 …(!(obj->state & LV_STATE_SCROLLED) && (obj->state & LV_STATE_PRESSED)) cell_state |= LV_STATE_PRES… in draw_main()
|
/lvgl-latest/src/core/ |
D | lv_obj.h | 48 LV_STATE_PRESSED = 0x0020, enumerator
|
D | lv_obj.c | 731 lv_obj_add_state(obj, LV_STATE_PRESSED); in lv_obj_event() 734 lv_obj_clear_state(obj, LV_STATE_PRESSED); in lv_obj_event() 746 lv_obj_clear_state(obj, LV_STATE_PRESSED); in lv_obj_event()
|
D | lv_indev.c | 632 … lv_obj_clear_state(indev_obj_act, LV_STATE_PRESSED); /*Remove the pressed state manually*/ in indev_encoder_proc() 706 … lv_obj_clear_state(indev_obj_act, LV_STATE_PRESSED); /*Remove the pressed state manually*/ in indev_encoder_proc()
|
/lvgl-latest/demos/music/ |
D | lv_demo_music_list.c | 182 lv_obj_add_style(btn, &style_btn_pr, LV_STATE_PRESSED); in add_list_btn()
|
/lvgl-latest/src/extra/others/ime/ |
D | lv_ime_pinyin.c | 598 lv_obj_set_style_bg_opa(pinyin_ime->cand_panel, LV_OPA_COVER, LV_PART_ITEMS | LV_STATE_PRESSED); in lv_ime_pinyin_constructor() 599 …obj_set_style_bg_color(pinyin_ime->cand_panel, lv_color_white(), LV_PART_ITEMS | LV_STATE_PRESSED); in lv_ime_pinyin_constructor()
|
/lvgl-latest/src/extra/others/gridnav/ |
D | lv_gridnav.c | 220 …lv_obj_clear_state(dsc->focused_obj, LV_STATE_PRESSED); /*Be sure the focuses obj is not stuck in … in gridnav_event_cb()
|