Home
last modified time | relevance | path

Searched refs:button (Results 1 – 25 of 57) sorted by relevance

123

/lvgl-latest/examples/widgets/button/
Dindex.rst5 .. lv_example:: widgets/button/lv_example_button_1
12 .. lv_example:: widgets/button/lv_example_button_2
15 Gummy button
18 .. lv_example:: widgets/button/lv_example_button_3
/lvgl-latest/docs/details/widgets/
Dbuttonmatrix.rst14 each button uses only eight extra bytes of memory instead of the ~100-150
55 have 2 buttons each with 50% width and a second row with 1 button having
75 Each button's behavior can be customized with the following control flags:
77 - :cpp:enumerator:`LV_BUTTONMATRIX_CTRL_HIDDEN`: Hides button; it continues to hold its space in la…
78 …T`: Do not emit :cpp:enumerator:`LV_EVENT_LONG_PRESSED_REPEAT` events while button is long-pressed.
79 - :cpp:enumerator:`LV_BUTTONMATRIX_CTRL_DISABLED`: Disables button like :cpp:enumerator:`LV_STATE_D…
81 - :cpp:enumerator:`LV_BUTTONMATRIX_CTRL_CHECKED`: Make the button checked. It will use the :cpp:enu…
83 - :cpp:enumerator:`LV_BUTTONMATRIX_CTRL_POPOVER`: Show button text in a pop-over while being presse…
90 To set and clear a button's control flags, use
95 respectively. ``button_id`` is a zero-based button index (0 = first button).
[all …]
Dmenu.rst24 - Back button: :ref:`lv_button`
25 - Back button icon: :ref:`lv_image`
29 - Back button: :ref:`lv_button`
30 - Back button icon: :ref:`lv_image`
55 Root back button mode
58 The following root back button modes exist:
63 You can set root back button modes with
88 If you have, for instance, created a button obj in the main Page. When you
89 click the button Widget, you want it to open up a new Page, use
116 - :cpp:enumerator:`LV_EVENT_CLICKED` Sent when a back button in a header from either
[all …]
Dkeyboard.rst81 Button Matrix's :ref:`button map` section for more information about
104 - :cpp:enumerator:`LV_EVENT_VALUE_CHANGED` Sent when the button is pressed/released
106 pressed/released button.
107 - :cpp:enumerator:`LV_EVENT_READY`: The *Ok* button was clicked.
108 - :cpp:enumerator:`LV_EVENT_CANCEL`: The *Close* button was clicked.
111 :cpp:func:`lv_keyboard_def_event_cb`, which handles the button pressing, map
136 - :cpp:enumerator:`LV_KEY_ENTER` To press/release the selected button.
Dlist.rst40 :cpp:expr:`lv_list_add_button(list, icon, text)` adds a full-width button with an icon
42 button created, which you can use to, for example, add an event call-back.
44 The text is scrolled horizontally if it is longer than the button.
Dbutton.rst24 - :cpp:enumerator:`LV_PART_MAIN` The background of the button; uses the :ref:`typical
73 .. include:: ../../examples/widgets/button/index.rst
Dindex.rst13 button
Dtabview.rst22 A new tab can be selected either by clicking on a tab button or by
66 - Click on its tab button
100 or clicking the tab button. :cpp:expr:`lv_tabview_get_tab_active(tabview)`
Dmsgbox.rst13 a title, a close button, and other buttons), and an optional footer
56 user to have a choice of responses, add each button using the
59 pointer to the button created, which can be used to add ``LV_EVENT_CLICKED`` (or
Ddropdown.rst27 The Drop-Down List Widget is built from the elements: "button" and "list"
33 - :cpp:enumerator:`LV_PART_MAIN` Background of button, uses the :ref:`typical
38 The button goes to :cpp:enumerator:`LV_STATE_CHECKED` when it's opened.
126 the selected option is displayed on the button.
/lvgl-latest/src/widgets/tabview/
Dlv_tabview.c80 lv_obj_t * button = lv_button_create(tab_bar); in lv_tabview_add_tab() local
81 lv_obj_set_flex_grow(button, 1); in lv_tabview_add_tab()
82 lv_obj_set_size(button, lv_pct(100), lv_pct(100)); in lv_tabview_add_tab()
83 lv_obj_add_event_cb(button, button_clicked_event_cb, LV_EVENT_CLICKED, NULL); in lv_tabview_add_tab()
85 if(g) lv_group_add_obj(g, button); in lv_tabview_add_tab()
87 lv_obj_t * label = lv_label_create(button); in lv_tabview_add_tab()
105 lv_obj_t * button = lv_obj_get_child_by_type(tab_bar, idx, &lv_button_class); in lv_tabview_rename_tab() local
106 lv_obj_t * label = lv_obj_get_child_by_type(button, 0, &lv_label_class); in lv_tabview_rename_tab()
146 lv_obj_t * button = lv_obj_get_child_by_type(tab_bar, i, &lv_button_class); in lv_tabview_set_active() local
147 while(button) { in lv_tabview_set_active()
[all …]
/lvgl-latest/docs/_static/js/
Dcustom.js9 const button = document.createElement("span");
10 button.classList.add("lv-api-expansion-button");
11 button.addEventListener("click", () => {
16 dt.insertBefore(button, dt.firstChild);
/lvgl-latest/src/drivers/sdl/
Dlv_sdl_mousewheel.c95 win_id = event->button.windowID; in lv_sdl_mousewheel_handler()
127 if(event->button.button == SDL_BUTTON_MIDDLE) { in lv_sdl_mousewheel_handler()
132 if(event->button.button == SDL_BUTTON_MIDDLE) { in lv_sdl_mousewheel_handler()
Dlv_sdl_mouse.c106 win_id = event->button.windowID; in lv_sdl_mouse_handler()
157 if(event->button.button == SDL_BUTTON_LEFT) in lv_sdl_mouse_handler()
164 if(event->button.button == SDL_BUTTON_LEFT) { in lv_sdl_mouse_handler()
/lvgl-latest/docs/_static/css/
Dcustom.css98 .lv-example-link-button {
106 .lv-example-link-button:hover {
111 .lv-example-link-button:visited {
119 .lv-api-expansion-button {
122 .lv-api-expansion-button::before {
128 .unexpanded .lv-api-expansion-button::before {
131 .expanded .lv-api-expansion-button::before {
/lvgl-latest/docs/details/base-widget/
Dlayer.rst26 For example, assume we add a button to a parent Widget named button1 and
27 then another button named button2. Then button1 (along with its child
40 lv_obj_t * btn1 = lv_button_create(scr); /* Create the first button on the screen */
41 lv_obj_set_pos(btn1, 60, 40); /* Set the position of the first button */
43 lv_obj_t * btn2 = lv_button_create(scr); /* Create the second button on the screen */
44 lv_obj_set_pos(btn2, 180, 80); /* Set the position of the second button */
47 lv_obj_t * label1 = lv_label_create(btn1); /* Create a label on the first button */
50 lv_obj_t * label2 = lv_label_create(btn2); /* Create a label on the second button */
/lvgl-latest/demos/high_res/
Dlv_demo_high_res_app_about.c192 lv_obj_t * button = lv_obj_create(parent); in create_button() local
193 lv_obj_remove_style_all(button); in create_button()
194 lv_obj_set_style_bg_opa(button, LV_OPA_COVER, 0); in create_button()
195 lv_obj_set_size(button, c->sz->icon[4], c->sz->icon[1]); in create_button()
196 lv_obj_set_style_radius(button, c->sz->gap[3], 0); in create_button()
197 lv_obj_add_style(button, &c->styles[STYLE_COLOR_ACCENT][STYLE_TYPE_OBJ], 0); in create_button()
198 lv_obj_set_style_opa(button, LV_OPA_20, LV_STATE_DISABLED); in create_button()
199 lv_obj_t * img = lv_image_create(button); in create_button()
204 return button; in create_button()
/lvgl-latest/docs/
DREADME_zh.rst225 :alt: LVGL button with label example
234 …lv_obj_t * button = lv_button_create(lv_screen_active());                   /*Add a button to the …
235 lv_obj_center(button);                                     /*Set its position*/
236 lv_obj_set_size(button, 100, 50);                                  /*Set its size*/
237 …lv_obj_add_event_cb(button, button_event_cb, LV_EVENT_CLICKED, NULL); /*Assign a callback to the b…
239 lv_obj_t * label = lv_label_create(button);                        /*Add a label to the button*/
264 button = lv.button(lv.screen_active())
265 button.center()
266 button.set_size(100, 50)
267 button.add_event_cb(button_event_cb, lv.EVENT.CLICKED, None)
[all …]
/lvgl-latest/examples/widgets/imagebutton/
Dindex.rst2 Simple Image button
/lvgl-latest/docs/details/other-components/
Dfile_explorer.rst79 - ``File System``: button
83 - ``HOME``: button
84 - ``Video``: button
85 - ``Pictures``: button
86 - ``Music``: button
87 - ``Documents``: button
177 - after a user clicks on a ``Quick-Access Panel`` navigation button, and
/lvgl-latest/examples/get_started/
Dindex.rst8 A button with a label and react on click event
/lvgl-latest/examples/scroll/
Dindex.rst13 Floating button
/lvgl-latest/
DREADME.md151 ![LVGL button with label example](https://github.com/kisvegabor/test/raw/master/readme_example_2.gi…
157 lv_obj_t * button = lv_button_create(lv_screen_active());                   /*Add a button to the c…
158 lv_obj_center(button);                                     /*Set its position*/
159 lv_obj_set_size(button, 100, 50);                                  /*Set its size*/
160 lv_obj_add_event_cb(button, button_event_cb, LV_EVENT_CLICKED, NULL); /*Assign a callback to the bu…
162 lv_obj_t * label = lv_label_create(button);                        /*Add a label to the button*/
182 button = lv.button(lv.screen_active())
183 button.center()
184 button.set_size(100, 50)
185 button.add_event_cb(button_event_cb, lv.EVENT.CLICKED, None)
[all …]
/lvgl-latest/docs/details/main-components/
Dindev.rst268 1. press of its button,
269 2. oong-press of its button,
276 - When you press the encoder on a simple object (like a button), it will be clicked.
280 - To leave edit mode, long press the button.
426 - :cpp:enumerator:`LV_KEY_ENTER`: will simulate press or pushing of the encoder button.
456 A *Hardware Button* here is an external button (switch) typically next to the screen
457 which is assigned to specific coordinates of the screen. If a button is pressed it
476 static uint32_t last_btn = 0; /* Store the last pressed button */
477 int btn_pr = my_btn_read(); /* Get the ID (0,1,2...) of the pressed button */
478 …if(btn_pr >= 0) { /* Is there a button press? (E.g. -1 indicated no button was press…
[all …]
/lvgl-latest/src/drivers/x11/
Dlv_x11_input.c84 switch(event.xbutton.button) { in x11_inp_event_handler()
101 LV_LOG_WARN("unhandled button press : %d", event.xbutton.button); in x11_inp_event_handler()
105 switch(event.xbutton.button) { in x11_inp_event_handler()

123