/lvgl-latest/examples/widgets/btn/ |
D | lv_example_btn_2.c | 54 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()
|
D | lv_example_btn_3.c | 37 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()
|
D | lv_example_btn_2.py | 50 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)
|
D | lv_example_btn_3.py | 31 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)
|
D | lv_example_btn_1.c | 20 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()
|
D | lv_example_btn_1.py | 10 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/ |
D | lv_example_win_1.py | 9 btn1 = win.add_btn(lv.SYMBOL.LEFT, 40) variable 10 btn1.add_event_cb(event_handler, lv.EVENT.ALL, None)
|
/lvgl-latest/docs/overview/ |
D | layer.md | 19 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*/
|
D | coords.md | 224 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);
|
D | object.md | 26 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/ |
D | quick-overview.md | 108 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/ |
D | btnmatrix.md | 18 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…
|