Home
last modified time | relevance | path

Searched refs:btn2 (Results 1 – 8 of 8) sorted by relevance

/lvgl-3.5.0/examples/get_started/
Dlv_example_get_started_2.c69 lv_obj_t * btn2 = lv_btn_create(lv_scr_act()); in lv_example_get_started_2() local
70 lv_obj_remove_style_all(btn2); /*Remove the styles coming from the theme*/ in lv_example_get_started_2()
71 lv_obj_set_pos(btn2, 10, 80); in lv_example_get_started_2()
72 lv_obj_set_size(btn2, 120, 50); in lv_example_get_started_2()
73 lv_obj_add_style(btn2, &style_btn, 0); in lv_example_get_started_2()
74 lv_obj_add_style(btn2, &style_btn_red, 0); in lv_example_get_started_2()
75 lv_obj_add_style(btn2, &style_btn_pressed, LV_STATE_PRESSED); in lv_example_get_started_2()
76 lv_obj_set_style_radius(btn2, LV_RADIUS_CIRCLE, 0); /*Add a local style too*/ in lv_example_get_started_2()
78 label = lv_label_create(btn2); in lv_example_get_started_2()
Dlv_example_get_started_2.py50 btn2 = lv.btn(lv.scr_act()) variable
51 btn2.remove_style_all() # Remove the styles coming from the theme
52 btn2.set_pos(10, 80) # Set its position
53 btn2.set_size(120, 50) # Set its size
54 btn2.add_style(style_btn, 0)
55 btn2.add_style(style_btn_red, 0)
56 btn2.add_style(style_btn_pressed, lv.STATE.PRESSED)
57 btn2.set_style_radius(lv.RADIUS.CIRCLE, 0) # Add a local style
59 label = lv.label(btn2) # Add a label to the button
/lvgl-3.5.0/examples/widgets/btn/
Dlv_example_btn_1.c28 lv_obj_t * btn2 = lv_btn_create(lv_scr_act()); in lv_example_btn_1() local
29 lv_obj_add_event_cb(btn2, event_handler, LV_EVENT_ALL, NULL); in lv_example_btn_1()
30 lv_obj_align(btn2, LV_ALIGN_CENTER, 0, 40); in lv_example_btn_1()
31 lv_obj_add_flag(btn2, LV_OBJ_FLAG_CHECKABLE); in lv_example_btn_1()
32 lv_obj_set_height(btn2, LV_SIZE_CONTENT); in lv_example_btn_1()
34 label = lv_label_create(btn2); in lv_example_btn_1()
Dlv_example_btn_1.py20 btn2 = lv.btn(lv.scr_act()) variable
24 btn2.add_event_cb(event_handler,lv.EVENT.ALL, None)
26 btn2.align(lv.ALIGN.CENTER,0,40)
27 btn2.add_flag(lv.obj.FLAG.CHECKABLE)
28 btn2.set_height(lv.SIZE.CONTENT)
30 label=lv.label(btn2)
/lvgl-3.5.0/examples/widgets/win/
Dlv_example_win_1.py12 btn2=win.add_btn(lv.SYMBOL.RIGHT, 40) variable
13 btn2.add_event_cb(event_handler, lv.EVENT.ALL, None)
/lvgl-3.5.0/docs/overview/
Dlayer.md23 lv_obj_t * btn2 = lv_btn_create(scr, btn1); /*Copy the first button*/
24 lv_obj_set_pos(btn2, 180, 80); /*Set the position of the button*/
30 lv_obj_t * label2 = lv_label_create(btn2, NULL); /*Create a label on the second button*/
Dcoords.md227 lv_obj_add_style(btn2, &style_normal, LV_STATE_DEFAULT);
228 lv_obj_add_style(btn2, &style_pressed, LV_STATE_PRESSED);
247 lv_obj_add_style(btn2, &style_normal, LV_STATE_DEFAULT);
248 lv_obj_add_style(btn2, &style_pressed, LV_STATE_PRESSED);
/lvgl-3.5.0/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…