Home
last modified time | relevance | path

Searched refs:LV_STATE_PRESSED (Results 1 – 25 of 27) sorted by relevance

12

/lvgl-latest/examples/widgets/slider/
Dlv_example_slider_2.c48 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/
Dlv_theme_mono.c244 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/
Dlv_example_get_started_2.c61 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/
Dlv_theme_default.c754 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/
Dlv_example_style_13.c24 lv_obj_add_style(obj, &style_indic_pr, LV_PART_INDICATOR | LV_STATE_PRESSED); in lv_example_style_13()
Dlv_example_style_10.c35 lv_obj_add_style(obj, &style_pr, LV_STATE_PRESSED); in lv_example_style_10()
/lvgl-latest/src/extra/widgets/imgbtn/
Dlv_imgbtn.c98 …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/
Dlv_example_btn_3.c39 lv_obj_add_style(btn1, &style_pr, LV_STATE_PRESSED); in lv_example_btn_3()
Dlv_example_btn_2.c57 lv_obj_add_style(btn1, &style_pr, LV_STATE_PRESSED); in lv_example_btn_2()
/lvgl-latest/examples/widgets/imgbtn/
Dlv_example_imgbtn_1.c31 lv_obj_add_style(imgbtn1, &style_pr, LV_STATE_PRESSED); in lv_example_imgbtn_1()
/lvgl-latest/examples/others/snapshot/
Dlv_example_snapshot_1.c51 lv_obj_set_style_transform_zoom(img, 400, LV_STATE_PRESSED); in lv_example_snapshot_1()
/lvgl-latest/docs/get-started/
Dquick-overview.md169 - `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/
Dcoords.md192 …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);
Dstyle.md26 - `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…
Dobject.md207 - `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/
Dlv_example_table_2.c73 lv_obj_remove_style(table, NULL, LV_PART_ITEMS | LV_STATE_PRESSED); in lv_example_table_2()
/lvgl-latest/src/widgets/
Dlv_dropdown.c911 … 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()
Dlv_btnmatrix.c753 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()
Dlv_table.c787 …(!(obj->state & LV_STATE_SCROLLED) && (obj->state & LV_STATE_PRESSED)) cell_state |= LV_STATE_PRES… in draw_main()
/lvgl-latest/src/core/
Dlv_obj.h48 LV_STATE_PRESSED = 0x0020, enumerator
Dlv_obj.c731 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()
Dlv_indev.c632 … 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/
Dlv_demo_music_list.c182 lv_obj_add_style(btn, &style_btn_pr, LV_STATE_PRESSED); in add_list_btn()
/lvgl-latest/src/extra/others/ime/
Dlv_ime_pinyin.c598 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/
Dlv_gridnav.c220 …lv_obj_clear_state(dsc->focused_obj, LV_STATE_PRESSED); /*Be sure the focuses obj is not stuck in … in gridnav_event_cb()

12