Home
last modified time | relevance | path

Searched refs:part (Results 1 – 25 of 73) sorted by relevance

123

/lvgl-3.7.0/src/core/
Dlv_obj_draw.c39 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
41 lv_opa_t opa = lv_obj_get_style_opa_recursive(obj, part); in lv_obj_init_draw_rect_dsc()
42 if(part != LV_PART_MAIN) { in lv_obj_init_draw_rect_dsc()
54 if(part != LV_PART_MAIN) draw_dsc->blend_mode = lv_obj_get_style_blend_mode(obj, part); in lv_obj_init_draw_rect_dsc()
56 draw_dsc->radius = lv_obj_get_style_radius(obj, part); in lv_obj_init_draw_rect_dsc()
59 draw_dsc->bg_opa = lv_obj_get_style_bg_opa(obj, part); in lv_obj_init_draw_rect_dsc()
61 draw_dsc->bg_color = lv_obj_get_style_bg_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc()
62 const lv_grad_dsc_t * grad = lv_obj_get_style_bg_grad(obj, part); in lv_obj_init_draw_rect_dsc()
67 draw_dsc->bg_grad.dir = lv_obj_get_style_bg_grad_dir(obj, part); in lv_obj_init_draw_rect_dsc()
69 … draw_dsc->bg_grad.stops[0].color = lv_obj_get_style_bg_color_filtered(obj, part); in lv_obj_init_draw_rect_dsc()
[all …]
Dlv_obj_style_gen.h1 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 …]
Dlv_obj_draw.h62 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);
111 void lv_obj_init_draw_line_dsc(struct _lv_obj_t * obj, uint32_t part, lv_draw_line_dsc_t * draw_dsc…
120 void lv_obj_init_draw_arc_dsc(struct _lv_obj_t * obj, uint32_t part, lv_draw_arc_dsc_t * draw_dsc);
128 lv_coord_t lv_obj_calculate_ext_draw_size(struct _lv_obj_t * obj, uint32_t part);
Dlv_obj_style.c46 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 …]
Dlv_obj_style.h112 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…
239 …inline lv_coord_t lv_obj_get_style_transform_zoom_safe(const struct _lv_obj_t * obj, uint32_t part) in lv_obj_get_style_transform_zoom_safe() argument
241 int16_t zoom = lv_obj_get_style_transform_zoom(obj, part); in lv_obj_get_style_transform_zoom_safe()
251 lv_opa_t lv_obj_get_style_opa_recursive(const struct _lv_obj_t * obj, lv_part_t part);
/lvgl-3.7.0/src/extra/layouts/grid/
Dlv_grid.h121 … 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.7.0/src/extra/layouts/flex/
Dlv_flex.h112 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.7.0/src/draw/sdl/
Dlv_draw_sdl_img.c346 lv_area_t clip_tmp, part; in draw_img_rounded() local
351 … lv_area_set(&part, coords->x1, coords->y1 + radius, coords->x1 + radius - 1, coords->y2 - radius); in draw_img_rounded()
354 … lv_area_set(&part, coords->x1 + radius, coords->y1, coords->x2 - radius, coords->y2); in draw_img_rounded()
357 … lv_area_set(&part, coords->x2 - radius + 1, coords->y1 + radius, coords->x2, coords->y2 - radius); in draw_img_rounded()
360 … lv_area_set(&part, coords->x1 + radius, coords->y1, coords->x2 - radius, coords->y1 + radius - 1); in draw_img_rounded()
363 … lv_area_set(&part, coords->x1 + radius, coords->y2 - radius + 1, coords->x2 - radius, coords->y2); in draw_img_rounded()
366 … lv_area_set(&part, coords->x1, coords->y1 + radius, coords->x2, coords->y2 - radius); in draw_img_rounded()
371 if(!_lv_area_intersect(&clip_tmp, &part, clip)) continue; in draw_img_rounded()
/lvgl-3.7.0/docs/widgets/extra/
Dled.md8 The LEDs have only one main part, called `LV_LED_PART_MAIN` and it uses all the typical background …
25 - `part`: `LV_PART_MAIN`
Dmeter.md64 - `part`: `LV_PART_ITEMS`
70 - `part`: `LV_PART_ITEMS`
75 - `part`: `LV_PART_ITEMS`
80 - `part`: `LV_PART_TICKS`
Dchart.md132 - `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`
Dlist.md9 - `LV_PART_MAIN` The main part of the list that uses all the typical background properties
/lvgl-3.7.0/docs/overview/
Ddrawing.md44 … 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.7.0/examples/widgets/chart/
Dlv_example_chart_2.c14 if(dsc->part == LV_PART_ITEMS) { in draw_event_cb()
50 else if(dsc->part == LV_PART_MAIN) { in draw_event_cb()
Dlv_example_chart_7.c7 if(dsc->part == LV_PART_ITEMS) { in draw_event_cb()
Dlv_example_chart_3.py4 if dsc.part == lv.PART.TICKS and dsc.id == lv.chart.AXIS.PRIMARY_X:
/lvgl-3.7.0/docs/widgets/core/
Darc.md21 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`
Dcheckbox.md12 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.7.0/docs/others/
Dfragment.md8 …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.7.0/examples/widgets/slider/
Dlv_example_slider_3.c36 if(dsc->part == LV_PART_INDICATOR) { in slider_event_cb()
Dlv_example_slider_3.py13 if dsc.part == lv.PART.INDICATOR:
/lvgl-3.7.0/examples/widgets/table/
Dlv_example_table_1.c9 if(dsc->part == LV_PART_ITEMS) { in draw_part_event_cb()
Dlv_example_table_1.py5 if dsc.part == lv.PART.ITEMS:
/lvgl-3.7.0/examples/widgets/bar/
Dlv_example_bar_6.c12 if(dsc->part != LV_PART_INDICATOR) return; in event_cb()
Dlv_example_bar_6.py6 if dsc.part != lv.PART.INDICATOR:

123