/lvgl-3.5.0/src/core/ |
D | lv_obj_draw.c | 39 void lv_obj_init_draw_rect_dsc(lv_obj_t * obj, uint32_t part, lv_draw_rect_dsc_t * draw_dsc) in lv_obj_init_draw_rect_dsc() argument 42 if(part != LV_PART_MAIN) { in lv_obj_init_draw_rect_dsc() 43 opa = lv_obj_get_style_opa(obj, part); in lv_obj_init_draw_rect_dsc() 55 if(part != LV_PART_MAIN) draw_dsc->blend_mode = lv_obj_get_style_blend_mode(obj, part); in lv_obj_init_draw_rect_dsc() 57 draw_dsc->radius = lv_obj_get_style_radius(obj, part); in lv_obj_init_draw_rect_dsc() 60 draw_dsc->bg_opa = lv_obj_get_style_bg_opa(obj, part); in lv_obj_init_draw_rect_dsc() 62 draw_dsc->bg_color = lv_obj_get_style_bg_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc() 63 const lv_grad_dsc_t * grad = lv_obj_get_style_bg_grad(obj, part); in lv_obj_init_draw_rect_dsc() 68 draw_dsc->bg_grad.dir = lv_obj_get_style_bg_grad_dir(obj, part); in lv_obj_init_draw_rect_dsc() 70 … draw_dsc->bg_grad.stops[0].color = lv_obj_get_style_bg_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc() [all …]
|
D | lv_obj_style_gen.h | 1 static inline lv_coord_t lv_obj_get_style_width(const struct _lv_obj_t * obj, uint32_t part) in lv_obj_get_style_width() argument 3 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_WIDTH); in lv_obj_get_style_width() 7 static inline lv_coord_t lv_obj_get_style_min_width(const struct _lv_obj_t * obj, uint32_t part) in lv_obj_get_style_min_width() argument 9 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_MIN_WIDTH); in lv_obj_get_style_min_width() 13 static inline lv_coord_t lv_obj_get_style_max_width(const struct _lv_obj_t * obj, uint32_t part) in lv_obj_get_style_max_width() argument 15 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_MAX_WIDTH); in lv_obj_get_style_max_width() 19 static inline lv_coord_t lv_obj_get_style_height(const struct _lv_obj_t * obj, uint32_t part) in lv_obj_get_style_height() argument 21 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_HEIGHT); in lv_obj_get_style_height() 25 static inline lv_coord_t lv_obj_get_style_min_height(const struct _lv_obj_t * obj, uint32_t part) in lv_obj_get_style_min_height() argument 27 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_MIN_HEIGHT); in lv_obj_get_style_min_height() [all …]
|
D | lv_obj_draw.h | 62 uint32_t part; /**< The current part for which the event is sent*/ member 83 void lv_obj_init_draw_rect_dsc(struct _lv_obj_t * obj, uint32_t part, lv_draw_rect_dsc_t * draw_dsc… 93 void lv_obj_init_draw_label_dsc(struct _lv_obj_t * obj, uint32_t part, lv_draw_label_dsc_t * draw_d… 102 void lv_obj_init_draw_img_dsc(struct _lv_obj_t * obj, uint32_t part, lv_draw_img_dsc_t * draw_dsc); 112 void lv_obj_init_draw_line_dsc(struct _lv_obj_t * obj, uint32_t part, lv_draw_line_dsc_t * draw_dsc… 121 void lv_obj_init_draw_arc_dsc(struct _lv_obj_t * obj, uint32_t part, lv_draw_arc_dsc_t * draw_dsc); 129 lv_coord_t lv_obj_calculate_ext_draw_size(struct _lv_obj_t * obj, uint32_t part);
|
D | lv_obj_style.c | 46 static _lv_obj_style_t * get_trans_style(lv_obj_t * obj, uint32_t part); 47 static lv_style_res_t get_prop_core(const lv_obj_t * obj, lv_part_t part, lv_style_prop_t prop, lv_… 50 static bool trans_del(lv_obj_t * obj, lv_part_t part, lv_style_prop_t prop, trans_t * tr_limit); 109 lv_part_t part = lv_obj_style_get_selector_part(selector); in lv_obj_remove_style() local 119 (part != LV_PART_ANY && part_act != part) || in lv_obj_remove_style() 126 trans_del(obj, part, LV_STYLE_PROP_ANY, NULL); in lv_obj_remove_style() 149 lv_obj_refresh_style(obj, part, prop); in lv_obj_remove_style() 175 lv_part_t part = lv_obj_style_get_selector_part(selector); in lv_obj_refresh_style() local 183 if(part == LV_PART_ANY || in lv_obj_refresh_style() 184 part == LV_PART_MAIN || in lv_obj_refresh_style() [all …]
|
D | lv_obj_style.h | 112 void lv_obj_refresh_style(struct _lv_obj_t * obj, lv_part_t part, lv_style_prop_t prop); 131 lv_style_value_t lv_obj_get_style_prop(const struct _lv_obj_t * obj, lv_part_t part, lv_style_prop_… 161 lv_style_value_t _lv_obj_style_apply_color_filter(const struct _lv_obj_t * obj, uint32_t part, lv_s… 171 void _lv_obj_style_create_transition(struct _lv_obj_t * obj, lv_part_t part, lv_state_t prev_state, 237 lv_text_align_t lv_obj_calculate_style_text_align(const struct _lv_obj_t * obj, lv_part_t part, con…
|
/lvgl-3.5.0/src/extra/layouts/grid/ |
D | lv_grid.h | 121 … inline const lv_coord_t * lv_obj_get_style_grid_row_dsc_array(const lv_obj_t * obj, uint32_t part) in lv_obj_get_style_grid_row_dsc_array() argument 123 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_GRID_ROW_DSC_ARRAY); in lv_obj_get_style_grid_row_dsc_array() 127 …line const lv_coord_t * lv_obj_get_style_grid_column_dsc_array(const lv_obj_t * obj, uint32_t part) in lv_obj_get_style_grid_column_dsc_array() argument 129 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_GRID_COLUMN_DSC_ARRAY); in lv_obj_get_style_grid_column_dsc_array() 133 static inline lv_grid_align_t lv_obj_get_style_grid_row_align(const lv_obj_t * obj, uint32_t part) in lv_obj_get_style_grid_row_align() argument 135 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_GRID_ROW_ALIGN); in lv_obj_get_style_grid_row_align() 139 …atic inline lv_grid_align_t lv_obj_get_style_grid_column_align(const lv_obj_t * obj, uint32_t part) in lv_obj_get_style_grid_column_align() argument 141 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_GRID_COLUMN_ALIGN); in lv_obj_get_style_grid_column_align() 145 static inline lv_coord_t lv_obj_get_style_grid_cell_column_pos(const lv_obj_t * obj, uint32_t part) in lv_obj_get_style_grid_cell_column_pos() argument 147 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_GRID_CELL_COLUMN_POS); in lv_obj_get_style_grid_cell_column_pos() [all …]
|
/lvgl-3.5.0/src/extra/layouts/flex/ |
D | lv_flex.h | 112 static inline lv_flex_flow_t lv_obj_get_style_flex_flow(const lv_obj_t * obj, uint32_t part) in lv_obj_get_style_flex_flow() argument 114 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_FLEX_FLOW); in lv_obj_get_style_flex_flow() 118 static inline lv_flex_align_t lv_obj_get_style_flex_main_place(const lv_obj_t * obj, uint32_t part) in lv_obj_get_style_flex_main_place() argument 120 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_FLEX_MAIN_PLACE); in lv_obj_get_style_flex_main_place() 124 static inline lv_flex_align_t lv_obj_get_style_flex_cross_place(const lv_obj_t * obj, uint32_t part) in lv_obj_get_style_flex_cross_place() argument 126 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_FLEX_CROSS_PLACE); in lv_obj_get_style_flex_cross_place() 130 static inline lv_flex_align_t lv_obj_get_style_flex_track_place(const lv_obj_t * obj, uint32_t part) in lv_obj_get_style_flex_track_place() argument 132 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_FLEX_TRACK_PLACE); in lv_obj_get_style_flex_track_place() 136 static inline uint8_t lv_obj_get_style_flex_grow(const lv_obj_t * obj, uint32_t part) in lv_obj_get_style_flex_grow() argument 138 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_FLEX_GROW); in lv_obj_get_style_flex_grow()
|
/lvgl-3.5.0/src/draw/sdl/ |
D | lv_draw_sdl_img.c | 331 lv_area_t clip_tmp, part; in draw_img_rounded() local 336 … lv_area_set(&part, coords->x1, coords->y1 + radius, coords->x1 + radius - 1, coords->y2 - radius); in draw_img_rounded() 339 … lv_area_set(&part, coords->x1 + radius, coords->y1, coords->x2 - radius, coords->y2); in draw_img_rounded() 342 … lv_area_set(&part, coords->x2 - radius + 1, coords->y1 + radius, coords->x2, coords->y2 - radius); in draw_img_rounded() 345 … lv_area_set(&part, coords->x1 + radius, coords->y1, coords->x2 - radius, coords->y1 + radius - 1); in draw_img_rounded() 348 … lv_area_set(&part, coords->x1 + radius, coords->y2 - radius + 1, coords->x2 - radius, coords->y2); in draw_img_rounded() 351 … lv_area_set(&part, coords->x1, coords->y1 + radius, coords->x2, coords->y2 - radius); in draw_img_rounded() 356 if(!_lv_area_intersect(&clip_tmp, &part, clip)) continue; in draw_img_rounded()
|
/lvgl-3.5.0/docs/widgets/extra/ |
D | led.md | 8 The LEDs have only one main part, called `LV_LED_PART_MAIN` and it uses all the typical background … 25 - `part`: `LV_PART_MAIN`
|
D | meter.md | 64 - `part`: `LV_PART_ITEMS` 70 - `part`: `LV_PART_ITEMS` 75 - `part`: `LV_PART_ITEMS` 80 - `part`: `LV_PART_TICKS`
|
D | chart.md | 132 - `part`: `LV_PART_MAIN` 135 - `part`: `LV_PART_MAIN` 140 - `part`: `LV_PART_ITEMS` 149 - `part`: `LV_PART_ITEMS` 156 - `part`: `LV_PART_CURSOR` 162 - `part`: `LV_PART_TICKS`
|
/lvgl-3.5.0/docs/overview/ |
D | drawing.md | 44 … wait for `lv_disp_flush_ready()` (called from `flush_cb`) before starting to redraw the next part. 73 - **line** Created from four "line masks" to mask out the left, right, top and bottom part of the l… 76 - **rectangle border** Same as a rounded rectangle but the inner part is masked out too. 148 …aws a part of an object (e.g. a slider's indicator, a table's cell or a button matrix's button) it… 151 …e is used to describe the context of the drawing. Not all fields are set for every part and widget. 159 uint32_t part; // The current part for which the event is sent 160 uint32_t id; // The index of the part. E.g. a button's index on button matri… 170 lv_area_t * draw_area; // The area of the part being drawn 176 const void * sub_part_ptr; // A pointer the identifies something in the part. E.g. chart s… 183 Start the drawing of a part. This is a good place to modify the draw descriptors (e.g. `rect_dsc`),… [all …]
|
/lvgl-3.5.0/examples/widgets/chart/ |
D | lv_example_chart_2.c | 14 if(dsc->part == LV_PART_ITEMS) { in draw_event_cb() 50 else if(dsc->part == LV_PART_MAIN) { in draw_event_cb()
|
D | lv_example_chart_7.c | 7 if(dsc->part == LV_PART_ITEMS) { in draw_event_cb()
|
D | lv_example_chart_3.py | 4 if dsc.part == lv.PART.TICKS and dsc.id == lv.chart.AXIS.PRIMARY_X:
|
/lvgl-3.5.0/docs/widgets/core/ |
D | arc.md | 21 The indicator arc is drawn on the main part's arc. This if the value is set to maximum the indicato… 75 - `part`: `LV_PART_MAIN` 80 - `part`: `LV_PART_INDICATOR` 85 - `part`: `LV_PART_KNOB`
|
D | checkbox.md | 12 By default, its size is equal to the height of the main part's font. Padding properties make the ti… 37 - `part`: `LV_PART_INDICATOR`
|
/lvgl-3.5.0/docs/others/ |
D | fragment.md | 8 …osted by an object, or another fragment. The fragment’s view hierarchy becomes part of, or attaches 25 /* IMPORTANT: don't miss this part */
|
/lvgl-3.5.0/examples/widgets/slider/ |
D | lv_example_slider_3.c | 36 if(dsc->part == LV_PART_INDICATOR) { in slider_event_cb()
|
D | lv_example_slider_3.py | 13 if dsc.part == lv.PART.INDICATOR:
|
/lvgl-3.5.0/examples/widgets/table/ |
D | lv_example_table_1.c | 9 if(dsc->part == LV_PART_ITEMS) { in draw_part_event_cb()
|
D | lv_example_table_1.py | 5 if dsc.part == lv.PART.ITEMS:
|
/lvgl-3.5.0/examples/widgets/bar/ |
D | lv_example_bar_6.c | 12 if(dsc->part != LV_PART_INDICATOR) return; in event_cb()
|
D | lv_example_bar_6.py | 6 if dsc.part != lv.PART.INDICATOR:
|
/lvgl-3.5.0/src/widgets/ |
D | lv_arc.c | 36 static void inv_arc_area(lv_obj_t * arc, uint16_t start_angle, uint16_t end_angle, lv_part_t part); 635 part_draw_dsc.part = LV_PART_MAIN; in lv_arc_draw() 660 part_draw_dsc.part = LV_PART_INDICATOR; in lv_arc_draw() 682 part_draw_dsc.part = LV_PART_KNOB; in lv_arc_draw() 694 static void inv_arc_area(lv_obj_t * obj, uint16_t start_angle, uint16_t end_angle, lv_part_t part) in inv_arc_area() argument 718 lv_coord_t w = lv_obj_get_style_arc_width(obj, part); in inv_arc_area() 719 lv_coord_t rounded = lv_obj_get_style_arc_rounded(obj, part); in inv_arc_area()
|