Home
last modified time | relevance | path

Searched refs:ALIGN (Results 1 – 25 of 50) sorted by relevance

12

/lvgl-3.7.0/src/draw/sw/
Dlv_draw_sw_gradient.c24 #undef ALIGN
26 #define ALIGN(X) (((X) + 7) & ~7) macro
28 #define ALIGN(X) (((X) + 3) & ~3) macro
73 size_t s = ALIGN(sizeof(*c)) + ALIGN(c->alloc_size * sizeof(lv_color_t)); in get_cache_item_size()
75 s += ALIGN(c->size * sizeof(lv_color32_t)); in get_cache_item_size()
77 s += ALIGN(c->w * sizeof(lv_scolor24_t)); in get_cache_item_size()
163 size_t req_size = ALIGN(sizeof(lv_grad_t)) + ALIGN(map_size * sizeof(lv_color_t)); in allocate_item()
165 req_size += ALIGN(size * sizeof(lv_color32_t)); in allocate_item()
167 req_size += ALIGN(w * sizeof(lv_scolor24_t)); in allocate_item()
205 item->map = (lv_color_t *)(p + ALIGN(sizeof(*item))); in allocate_item()
[all …]
/lvgl-3.7.0/examples/widgets/bar/
Dlv_example_bar_5.py8 bar_ltr.align(lv.ALIGN.CENTER, 0, -30)
12 label.align_to(bar_ltr, lv.ALIGN.OUT_TOP_MID, 0, -5)
18 bar_rtl.align(lv.ALIGN.CENTER, 0, 30)
22 label.align_to(bar_rtl, lv.ALIGN.OUT_TOP_MID, 0, -5)
/lvgl-3.7.0/examples/widgets/dropdown/
Dlv_example_dropdown_2.py15 dd.align(lv.ALIGN.TOP_MID, 0, 10)
20 dd.align(lv.ALIGN.BOTTOM_MID, 0, -10)
26 dd.align(lv.ALIGN.LEFT_MID, 10, 0)
32 dd.align(lv.ALIGN.RIGHT_MID, -10, 0)
/lvgl-3.7.0/examples/widgets/led/
Dlv_example_led_1.py7 led1.align(lv.ALIGN.CENTER, -80, 0)
12 led2.align(lv.ALIGN.CENTER, 0, 0)
18 led3.align(lv.ALIGN.CENTER, 80, 0)
/lvgl-3.7.0/examples/widgets/label/
Dlv_example_label_1.py10 label1.set_style_text_align(lv.ALIGN.CENTER, 0)
11 label1.align(lv.ALIGN.CENTER, 0, -40)
18 label2.align(lv.ALIGN.CENTER, 0, 40)
Dlv_example_label_3.py20 ltr_label.align(lv.ALIGN.TOP_LEFT, 5, 5)
27 rtl_label.align(lv.ALIGN.LEFT_MID, 5, 0)
35 cz_label.align(lv.ALIGN.BOTTOM_LEFT, 5, -5)
Dlv_example_label_2.py26 main_label.align(lv.ALIGN.CENTER, 0, 0)
29 shadow_label.align_to(main_label, lv.ALIGN.TOP_LEFT, 2, 2)
/lvgl-3.7.0/examples/widgets/img/
Dlv_example_img_2.py55 red_slider.align(lv.ALIGN.LEFT_MID, 25, 0)
56 green_slider.align_to(red_slider, lv.ALIGN.OUT_RIGHT_MID, 25, 0)
57 blue_slider.align_to(green_slider, lv.ALIGN.OUT_RIGHT_MID, 25, 0)
58 intense_slider.align_to(blue_slider, lv.ALIGN.OUT_RIGHT_MID, 25, 0)
63 img1.align(lv.ALIGN.RIGHT_MID, -20, 0)
Dlv_example_img_1.py27 img1.align(lv.ALIGN.CENTER, 0, -20)
32 img2.align_to(img1, lv.ALIGN.OUT_BOTTOM_MID, 0, 20)
/lvgl-3.7.0/examples/widgets/textarea/
Dlv_example_textarea_2.py28 pwd_label.align_to(pwd_ta, lv.ALIGN.OUT_TOP_LEFT, 0, 0)
37 text_ta.align(lv.ALIGN.TOP_RIGHT, -5, 20)
42 oneline_label.align_to(text_ta, lv.ALIGN.OUT_TOP_LEFT, 0, 0)
Dlv_example_textarea_1.py18 ta.align(lv.ALIGN.TOP_MID, 0, 10)
29 btnm.align(lv.ALIGN.BOTTOM_MID, 0, -10)
/lvgl-3.7.0/examples/widgets/chart/
Dlv_example_chart_5.py66 chart.align(lv.ALIGN.CENTER, -30, -30)
82 slider.align_to(chart, lv.ALIGN.OUT_BOTTOM_MID, 0, 20)
88 slider.align_to(chart, lv.ALIGN.OUT_RIGHT_MID, 20, 0)
/lvgl-3.7.0/examples/widgets/obj/
Dlv_example_obj_1.py3 obj1.align(lv.ALIGN.CENTER, -60, -30)
13 obj2.align(lv.ALIGN.CENTER, 60, 30)
/lvgl-3.7.0/examples/widgets/slider/
Dlv_example_slider_1.py8 slider_label.align_to(slider, lv.ALIGN.OUT_BOTTOM_MID, 0, 10)
19 slider_label.align_to(slider, lv.ALIGN.OUT_BOTTOM_MID, 0, 10)
/lvgl-3.7.0/examples/libs/gif/
Dlv_example_gif_1.py21 img1.align(lv.ALIGN.RIGHT_MID, -150, 0)
27 img2.align(lv.ALIGN.RIGHT_MID, -250, 0)
/lvgl-3.7.0/examples/widgets/roller/
Dlv_example_roller_2.py38 roller.align(lv.ALIGN.LEFT_MID, 10, 0)
47 roller.align(lv.ALIGN.CENTER, 0, 0)
58 roller.align(lv.ALIGN.RIGHT_MID, -10, 0)
/lvgl-3.7.0/examples/libs/png/
Dlv_example_png_1.py20 img1.align(lv.ALIGN.RIGHT_MID, -250, 0)
37 img2.align(lv.ALIGN.RIGHT_MID, -150, 0)
/lvgl-3.7.0/examples/widgets/btn/
Dlv_example_btn_1.py15 btn1.align(lv.ALIGN.CENTER,0,-40)
26 btn2.align(lv.ALIGN.CENTER,0,40)
/lvgl-3.7.0/examples/layouts/flex/
Dlv_example_flex_1.py8 cont_row.align(lv.ALIGN.TOP_MID, 0, 5)
14 cont_col.align_to(cont_row, lv.ALIGN.OUT_BOTTOM_MID, 0, 5)
/lvgl-3.7.0/examples/widgets/keyboard/
Dlv_example_keyboard_1.py18 ta.align(lv.ALIGN.TOP_LEFT, 10, 10)
24 ta.align(lv.ALIGN.TOP_RIGHT, -10, 10)
/lvgl-3.7.0/examples/widgets/spinbox/
Dlv_example_spinbox_1.py22 btn.align_to(spinbox, lv.ALIGN.OUT_RIGHT_MID, 5, 0)
28 btn.align_to(spinbox, lv.ALIGN.OUT_LEFT_MID, -5, 0)
/lvgl-3.7.0/examples/styles/
Dlv_example_style_14.py29 btn.align(lv.ALIGN.TOP_MID, 0, 20)
37 btn.align(lv.ALIGN.BOTTOM_MID, 0, -20)
Dlv_example_style_11.py29 obj_base.align(lv.ALIGN.LEFT_MID, 20, 0)
39 obj_warning.align(lv.ALIGN.RIGHT_MID, -20, 0)
/lvgl-3.7.0/examples/scroll/
Dlv_example_scroll_2.py41 sw.align(lv.ALIGN.TOP_RIGHT, -20, 10)
45 label.align_to(sw, lv.ALIGN.OUT_BOTTOM_MID, 0, 5)
/lvgl-3.7.0/examples/widgets/imgbtn/
Dlv_example_imgbtn_1.py68 imgbtn1.align(lv.ALIGN.CENTER, 0, 0)
73 label.align(lv.ALIGN.CENTER, 0, -4)

12