Home
last modified time | relevance | path

Searched refs:align (Results 1 – 25 of 87) sorted by relevance

1234

/lvgl-latest/src/misc/
Dlv_bidi.h114 void lv_bidi_calculate_align(lv_text_align_t * align, lv_base_dir_t * base_dir, const char * txt);
128 static inline void lv_bidi_calculate_align(lv_text_align_t * align, lv_base_dir_t * base_dir, const… in lv_bidi_calculate_align() argument
132 if(*align == LV_TEXT_ALIGN_AUTO) * align = LV_TEXT_ALIGN_LEFT; in lv_bidi_calculate_align()
Dlv_tlsf.c484 static size_t align_up(size_t x, size_t align) in align_up() argument
486 tlsf_assert(0 == (align & (align - 1)) && "must align to a power of two"); in align_up()
487 return (x + (align - 1)) & ~(align - 1); in align_up()
490 static size_t align_down(size_t x, size_t align) in align_down() argument
492 tlsf_assert(0 == (align & (align - 1)) && "must align to a power of two"); in align_down()
493 return x - (x & (align - 1)); in align_down()
496 static void * align_ptr(const void * ptr, size_t align) in align_ptr() argument
499 (tlsf_cast(tlsfptr_t, ptr) + (align - 1)) & ~(align - 1); in align_ptr()
500 tlsf_assert(0 == (align & (align - 1)) && "must align to a power of two"); in align_ptr()
508 static size_t adjust_request_size(size_t size, size_t align) in adjust_request_size() argument
[all …]
/lvgl-latest/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-latest/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-latest/examples/widgets/label/
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_1.py11 label1.align(lv.ALIGN.CENTER, 0, -40)
18 label2.align(lv.ALIGN.CENTER, 0, 40)
Dlv_example_label_5.py9 label1.align(lv.ALIGN.CENTER, 0, 40)
/lvgl-latest/examples/widgets/obj/
Dlv_example_obj_1.py3 obj1.align(lv.ALIGN.CENTER, -60, -30)
13 obj2.align(lv.ALIGN.CENTER, 60, 30)
/lvgl-latest/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-latest/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-latest/examples/widgets/bar/
Dlv_example_bar_5.py8 bar_ltr.align(lv.ALIGN.CENTER, 0, -30)
18 bar_rtl.align(lv.ALIGN.CENTER, 0, 30)
/lvgl-latest/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-latest/examples/widgets/btn/
Dlv_example_btn_1.py15 btn1.align(lv.ALIGN.CENTER,0,-40)
26 btn2.align(lv.ALIGN.CENTER,0,40)
/lvgl-latest/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-latest/src/draw/
Dlv_draw_label.c104 lv_text_align_t align = dsc->align; in lv_draw_label() local
107 lv_bidi_calculate_align(&align, &base_dir, txt); in lv_draw_label()
174 if(align == LV_TEXT_ALIGN_CENTER) { in lv_draw_label()
181 else if(align == LV_TEXT_ALIGN_RIGHT) { in lv_draw_label()
341 if(align == LV_TEXT_ALIGN_CENTER) { in lv_draw_label()
349 else if(align == LV_TEXT_ALIGN_RIGHT) { in lv_draw_label()
/lvgl-latest/examples/widgets/textarea/
Dlv_example_textarea_1.py18 ta.align(lv.ALIGN.TOP_MID, 0, 10)
29 btnm.align(lv.ALIGN.BOTTOM_MID, 0, -10)
/lvgl-latest/src/core/
Dlv_obj_pos.c334 void lv_obj_set_align(lv_obj_t * obj, lv_align_t align) in lv_obj_set_align() argument
336 lv_obj_set_style_align(obj, align, 0); in lv_obj_set_align()
339 void lv_obj_align(lv_obj_t * obj, lv_align_t align, lv_coord_t x_ofs, lv_coord_t y_ofs) in lv_obj_align() argument
341 lv_obj_set_style_align(obj, align, 0); in lv_obj_align()
345 void lv_obj_align_to(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_coord_t x_ofs, lv_… in lv_obj_align_to() argument
366 if(align == LV_ALIGN_DEFAULT) { in lv_obj_align_to()
367 … if(lv_obj_get_style_base_dir(base, LV_PART_MAIN) == LV_BASE_DIR_RTL) align = LV_ALIGN_TOP_RIGHT; in lv_obj_align_to()
368 else align = LV_ALIGN_TOP_LEFT; in lv_obj_align_to()
371 switch(align) { in lv_obj_align_to()
659 lv_align_t align = lv_obj_get_style_align(obj, LV_PART_MAIN); in lv_obj_refr_pos() local
[all …]
Dlv_obj_pos.h168 void lv_obj_set_align(struct _lv_obj_t * obj, lv_align_t align);
180 void lv_obj_align(struct _lv_obj_t * obj, lv_align_t align, lv_coord_t x_ofs, lv_coord_t y_ofs);
191 void lv_obj_align_to(struct _lv_obj_t * obj, const struct _lv_obj_t * base, lv_align_t align, lv_co…
Dlv_obj_scroll.h76 void lv_obj_set_scroll_snap_x(struct _lv_obj_t * obj, lv_scroll_snap_t align);
83 void lv_obj_set_scroll_snap_y(struct _lv_obj_t * obj, lv_scroll_snap_t align);
/lvgl-latest/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-latest/examples/widgets/table/
Dlv_example_table_1.c15 dsc->label_dsc->align = LV_TEXT_ALIGN_CENTER; in draw_part_event_cb()
21 dsc->label_dsc->align = LV_TEXT_ALIGN_RIGHT; in draw_part_event_cb()
/lvgl-latest/examples/widgets/imgbtn/
Dlv_example_imgbtn_1.py68 imgbtn1.align(lv.ALIGN.CENTER, 0, 0)
73 label.align(lv.ALIGN.CENTER, 0, -4)
/lvgl-latest/scripts/
Dcode-format.cfg11 --align-pointer=middle
12 --align-reference=middle
/lvgl-latest/src/extra/libs/tiny_ttf/
Dstb_rect_pack.h188 int align; member
250 context->align = 1; in stbrp_setup_allow_out_of_mem()
259 context->align = (context->width + context->num_nodes - 1) / context->num_nodes; in stbrp_setup_allow_out_of_mem()
352 width = (width + c->align - 1); in stbrp__skyline_find_best_pos()
353 width -= width % c->align; in stbrp__skyline_find_best_pos()
354 STBRP_ASSERT(width % c->align == 0); in stbrp__skyline_find_best_pos()

1234