Home
last modified time | relevance | path

Searched refs:btn1 (Results 1 – 12 of 12) sorted by relevance

/lvgl-latest/examples/widgets/btn/
Dlv_example_btn_2.c54 lv_obj_t * btn1 = lv_btn_create(lv_scr_act()); in lv_example_btn_2() local
55 … lv_obj_remove_style_all(btn1); /*Remove the style coming from the theme*/ in lv_example_btn_2()
56 lv_obj_add_style(btn1, &style, 0); in lv_example_btn_2()
57 lv_obj_add_style(btn1, &style_pr, LV_STATE_PRESSED); in lv_example_btn_2()
58 lv_obj_set_size(btn1, LV_SIZE_CONTENT, LV_SIZE_CONTENT); in lv_example_btn_2()
59 lv_obj_center(btn1); in lv_example_btn_2()
61 lv_obj_t * label = lv_label_create(btn1); in lv_example_btn_2()
Dlv_example_btn_3.c37 lv_obj_t * btn1 = lv_btn_create(lv_scr_act()); in lv_example_btn_3() local
38 lv_obj_align(btn1, LV_ALIGN_CENTER, 0, -80); in lv_example_btn_3()
39 lv_obj_add_style(btn1, &style_pr, LV_STATE_PRESSED); in lv_example_btn_3()
40 lv_obj_add_style(btn1, &style_def, 0); in lv_example_btn_3()
42 lv_obj_t * label = lv_label_create(btn1); in lv_example_btn_3()
Dlv_example_btn_2.py50 btn1 = lv.btn(lv.scr_act()) variable
51 btn1.remove_style_all() # Remove the style coming from the theme
52 btn1.add_style(style, 0)
53 btn1.add_style(style_pr, lv.STATE.PRESSED)
54 btn1.set_size(lv.SIZE.CONTENT, lv.SIZE.CONTENT)
55 btn1.center()
57 label = lv.label(btn1)
Dlv_example_btn_3.py31 btn1 = lv.btn(lv.scr_act()) variable
32 btn1.align(lv.ALIGN.CENTER, 0, -80)
33 btn1.add_style(style_pr, lv.STATE.PRESSED)
34 btn1.add_style(style_def, 0)
36 label = lv.label(btn1)
Dlv_example_btn_1.c20 lv_obj_t * btn1 = lv_btn_create(lv_scr_act()); in lv_example_btn_1() local
21 lv_obj_add_event_cb(btn1, event_handler, LV_EVENT_ALL, NULL); in lv_example_btn_1()
22 lv_obj_align(btn1, LV_ALIGN_CENTER, 0, -40); in lv_example_btn_1()
24 label = lv_label_create(btn1); in lv_example_btn_1()
Dlv_example_btn_1.py10 btn1 = lv.btn(lv.scr_act()) variable
13 btn1.add_event_cb(event_handler,lv.EVENT.ALL, None)
15 btn1.align(lv.ALIGN.CENTER,0,-40)
16 label=lv.label(btn1)
/lvgl-latest/examples/widgets/win/
Dlv_example_win_1.py9 btn1 = win.add_btn(lv.SYMBOL.LEFT, 40) variable
10 btn1.add_event_cb(event_handler, lv.EVENT.ALL, None)
/lvgl-latest/docs/overview/
Dlayer.md19 lv_obj_t * btn1 = lv_btn_create(scr, NULL); /*Create a button on the screen*/
20 lv_btn_set_fit(btn1, true, true); /*Enable automatically setting the size accordi…
21 lv_obj_set_pos(btn1, 60, 40); /*Set the position of the button*/
23 lv_obj_t * btn2 = lv_btn_create(scr, btn1); /*Copy the first button*/
27 lv_obj_t * label1 = lv_label_create(btn1, NULL); /*Create a label on the first button*/
Dcoords.md224 lv_obj_add_style(btn1, &style_normal, LV_STATE_DEFAULT);
225 lv_obj_add_style(btn1, &style_pressed, LV_STATE_PRESSED);
244 lv_obj_add_style(btn1, &style_normal, LV_STATE_DEFAULT);
245 lv_obj_add_style(btn1, &style_pressed, LV_STATE_PRESSED);
Dobject.md26 lv_obj_set_size(btn1, 100, 50); /*Set a button's size*/
27 lv_obj_set_pos(btn1, 20,30); /*Set a button's position*/
/lvgl-latest/docs/get-started/
Dquick-overview.md108 lv_obj_set_x(btn1, 30);
109 lv_obj_set_y(btn1, 10);
110 lv_obj_set_size(btn1, 200, 50);
204 lv_obj_add_style(btn1, &style1, LV_STATE_PRESSED); /*Equal to LV_PART_MAIN | LV_STATE_PRESSED*/
214 lv_obj_add_style(btn1, &style1, 0); /*Equal to LV_PART_MAIN | LV_STATE_DEFAULT*/
221 lv_obj_add_style(btn1, &style_btn, 0);
222 lv_obj_add_style(btn1, &style1_btn_red, 0);
/lvgl-latest/docs/widgets/core/
Dbtnmatrix.md18 The declaration of a map should look like `const char * map[] = {"btn1", "btn2", "btn3", NULL}`.
21 Use `"\n"` in the map to insert a **line break**. E.g. `{"btn1", "btn2", "\n", "btn3", ""}`. Each l…