Home
last modified time | relevance | path

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

/lvgl-2.7.6/src/
Dlv_api_map.h212 static inline void lv_obj_align_origo(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_c… in lv_obj_align_origo() argument
215 lv_obj_align_mid(obj, base, align, x_ofs, y_ofs); in lv_obj_align_origo()
218 static inline void lv_obj_align_origo_x(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv… in lv_obj_align_origo_x() argument
220 lv_obj_align_mid_y(obj, base, align, x_ofs); in lv_obj_align_origo_x()
223 static inline void lv_obj_align_origo_y(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv… in lv_obj_align_origo_y() argument
225 lv_obj_align_mid_y(obj, base, align, y_ofs); in lv_obj_align_origo_y()
/lvgl-2.7.6/src/lv_widgets/
Dlv_label.c101 ext->align = LV_LABEL_ALIGN_AUTO; in lv_label_create()
389 void lv_label_set_align(lv_obj_t * label, lv_label_align_t align) in lv_label_set_align() argument
394 if(ext->align == align) return; in lv_label_set_align()
396 ext->align = align; in lv_label_set_align()
514 lv_label_align_t align = ext->align; in lv_label_get_align() local
516 if(align == LV_LABEL_ALIGN_AUTO) { in lv_label_get_align()
521 if(base_dir == LV_BIDI_DIR_LTR) align = LV_LABEL_ALIGN_LEFT; in lv_label_get_align()
522 else if(base_dir == LV_BIDI_DIR_RTL) align = LV_LABEL_ALIGN_RIGHT; in lv_label_get_align()
524 align = LV_LABEL_ALIGN_LEFT; in lv_label_get_align()
528 return align; in lv_label_get_align()
[all …]
Dlv_cont.c352 lv_align_t align; in lv_cont_layout_col() local
358 align = LV_ALIGN_IN_TOP_LEFT; in lv_cont_layout_col()
362 align = LV_ALIGN_IN_TOP_MID; in lv_cont_layout_col()
366 align = LV_ALIGN_IN_TOP_RIGHT; in lv_cont_layout_col()
370 align = LV_ALIGN_IN_TOP_LEFT; in lv_cont_layout_col()
384 lv_obj_align(child, cont, align, hpad_corr + mleft, last_cord + mtop); in lv_cont_layout_col()
402 lv_align_t align; in lv_cont_layout_row() local
408 align = base_dir == LV_BIDI_DIR_RTL ? LV_ALIGN_IN_TOP_RIGHT : LV_ALIGN_IN_TOP_LEFT; in lv_cont_layout_row()
412 align = base_dir == LV_BIDI_DIR_RTL ? LV_ALIGN_IN_RIGHT_MID : LV_ALIGN_IN_LEFT_MID; in lv_cont_layout_row()
416align = base_dir == LV_BIDI_DIR_RTL ? LV_ALIGN_IN_BOTTOM_RIGHT : LV_ALIGN_IN_BOTTOM_LEFT; in lv_cont_layout_row()
[all …]
Dlv_btnmatrix.c432 void lv_btnmatrix_set_align(lv_obj_t * btnm, lv_label_align_t align) in lv_btnmatrix_set_align() argument
437 if(ext->align == align) return; in lv_btnmatrix_set_align()
439 ext->align = align; in lv_btnmatrix_set_align()
596 lv_label_align_t align = ext->align; in lv_btnmatrix_get_align() local
598 if(align == LV_LABEL_ALIGN_AUTO) { in lv_btnmatrix_get_align()
601 if(base_dir == LV_BIDI_DIR_RTL) align = LV_LABEL_ALIGN_RIGHT; in lv_btnmatrix_get_align()
602 else align = LV_LABEL_ALIGN_LEFT; in lv_btnmatrix_get_align()
604 align = LV_LABEL_ALIGN_LEFT; in lv_btnmatrix_get_align()
608 return align; in lv_btnmatrix_get_align()
647 lv_label_align_t align = lv_btnmatrix_get_align(btnm); in lv_btnmatrix_design() local
[all …]
Dlv_btnmatrix.h62 uint8_t align : 2; /*Align type from 'lv_label_align_t'*/ member
179 void lv_btnmatrix_set_align(lv_obj_t * btnm, lv_label_align_t align);
Dlv_table.h47 uint8_t align : 2; member
131 void lv_table_set_cell_align(lv_obj_t * table, uint16_t row, uint16_t col, lv_label_align_t align);
Dlv_label.h94 uint8_t align : 2; /*Align type from 'lv_label_align_t'*/ member
160 void lv_label_set_align(lv_obj_t * label, lv_label_align_t align);
Dlv_table.c159 if(base_dir == LV_BIDI_DIR_LTR) format.s.align = LV_LABEL_ALIGN_LEFT; in lv_table_set_cell_value()
160 else if(base_dir == LV_BIDI_DIR_RTL) format.s.align = LV_LABEL_ALIGN_RIGHT; in lv_table_set_cell_value()
163 format.s.align = _lv_bidi_detect_base_dir(txt); in lv_table_set_cell_value()
165 format.s.align = LV_LABEL_ALIGN_LEFT; in lv_table_set_cell_value()
290 void lv_table_set_cell_align(lv_obj_t * table, uint16_t row, uint16_t col, lv_label_align_t align) in lv_table_set_cell_align() argument
317 format.s.align = align; in lv_table_set_cell_align()
540 return format.s.align; in lv_table_get_cell_align()
763 format.s.align = LV_LABEL_ALIGN_LEFT; in lv_table_design()
837 switch(format.s.align) { in lv_table_design()
Dlv_roller.h96 void lv_roller_set_align(lv_obj_t * roller, lv_label_align_t align);
Dlv_canvas.h201 const char * txt, lv_label_align_t align);
Dlv_textarea.h196 void lv_textarea_set_text_align(lv_obj_t * ta, lv_label_align_t align);
Dlv_textarea.c793 void lv_textarea_set_text_align(lv_obj_t * ta, lv_label_align_t align) in lv_textarea_set_text_align() argument
800 lv_label_set_align(label, align); in lv_textarea_set_text_align()
804 if(align == LV_LABEL_ALIGN_LEFT) { in lv_textarea_set_text_align()
807 lv_label_set_align(label, align); in lv_textarea_set_text_align()
813 lv_label_set_align(label, align); in lv_textarea_set_text_align()
Dlv_dropdown.c1196 lv_label_align_t align = lv_label_get_align(label); in draw_box_label() local
1198 if(align == LV_LABEL_ALIGN_CENTER) label_dsc.flag |= LV_TXT_FLAG_CENTER; in draw_box_label()
1199 else if(align == LV_LABEL_ALIGN_RIGHT) label_dsc.flag |= LV_TXT_FLAG_RIGHT; in draw_box_label()
Dlv_roller.c209 void lv_roller_set_align(lv_obj_t * roller, lv_label_align_t align) in lv_roller_set_align() argument
216 lv_label_set_align(label, align); in lv_roller_set_align()
Dlv_canvas.c773 const char * txt, lv_label_align_t align) in lv_canvas_draw_text() argument
817 switch(align) { in lv_canvas_draw_text()
/lvgl-2.7.6/src/lv_core/
Dlv_obj.h164 lv_align_t align; member
486 void lv_obj_align(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_coord_t x_ofs, lv_coo…
495 void lv_obj_align_x(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_coord_t x_ofs);
504 void lv_obj_align_y(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_coord_t y_ofs);
514 void lv_obj_align_mid(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_coord_t x_ofs, lv…
524 void lv_obj_align_mid_x(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_coord_t x_ofs);
533 void lv_obj_align_mid_y(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_coord_t y_ofs);
Dlv_obj.c124 static void obj_align_core(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, bool x_set, boo…
126 static void obj_align_mid_core(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, bool x_set…
348 new_obj->realign.align = LV_ALIGN_CENTER; in lv_obj_create()
411 new_obj->realign.align = copy->realign.align; in lv_obj_create()
973 void lv_obj_align(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_coord_t x_ofs, lv_coo… in lv_obj_align() argument
981 obj_align_core(obj, base, align, true, true, x_ofs, y_ofs); in lv_obj_align()
985 obj->realign.align = align; in lv_obj_align()
1000 void lv_obj_align_x(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_coord_t x_ofs) in lv_obj_align_x() argument
1008 obj_align_core(obj, base, align, true, false, x_ofs, 0); in lv_obj_align_x()
1018 void lv_obj_align_y(lv_obj_t * obj, const lv_obj_t * base, lv_align_t align, lv_coord_t y_ofs) in lv_obj_align_y() argument
[all …]
/lvgl-2.7.6/scripts/
Dcode-format.cfg11 --align-pointer=middle
12 --align-reference=middle
/lvgl-2.7.6/
DREADME.md1 <h1 align="center"> LVGL - Light and Versatile Graphics Library</h1>
3 <p align="center">
7 <p align="center">
11 <h4 align="center">
149 btn.align(lv.scr_act(), lv.ALIGN.CENTER, 0, 0)
/lvgl-2.7.6/docs/
DROADMAP.md24 - Remove the align parameter from `lv_canvas_draw_text`
37 - lv_mem_alloc_aligned(size, align)
/lvgl-2.7.6/src/lv_misc/
Dlv_area.h205 void _lv_area_align(const lv_area_t * base, const lv_area_t * to_align, lv_align_t align, lv_point_…
Dlv_area.c273 void _lv_area_align(const lv_area_t * base, const lv_area_t * to_align, lv_align_t align, lv_point_… in _lv_area_align() argument
276 switch(align) { in _lv_area_align()