Home
last modified time | relevance | path

Searched refs:v (Results 1 – 25 of 79) sorted by relevance

1234

/lvgl-latest/src/misc/
Dlv_style_gen.c5 lv_style_value_t v = { in lv_style_set_width() local
8 lv_style_set_prop(style, LV_STYLE_WIDTH, v); in lv_style_set_width()
13 lv_style_value_t v = { in lv_style_set_min_width() local
16 lv_style_set_prop(style, LV_STYLE_MIN_WIDTH, v); in lv_style_set_min_width()
21 lv_style_value_t v = { in lv_style_set_max_width() local
24 lv_style_set_prop(style, LV_STYLE_MAX_WIDTH, v); in lv_style_set_max_width()
29 lv_style_value_t v = { in lv_style_set_height() local
32 lv_style_set_prop(style, LV_STYLE_HEIGHT, v); in lv_style_set_height()
37 lv_style_value_t v = { in lv_style_set_min_height() local
40 lv_style_set_prop(style, LV_STYLE_MIN_HEIGHT, v); in lv_style_set_min_height()
[all …]
Dlv_color.h104 # define LV_COLOR_SET_R1(c, v) (c).ch.red = (uint8_t)((v) & 0x1) argument
105 # define LV_COLOR_SET_G1(c, v) (c).ch.green = (uint8_t)((v) & 0x1) argument
106 # define LV_COLOR_SET_B1(c, v) (c).ch.blue = (uint8_t)((v) & 0x1) argument
107 # define LV_COLOR_SET_A1(c, v) do {} while(0) argument
117 # define LV_COLOR_SET_R8(c, v) (c).ch.red = (uint8_t)((v) & 0x7U) argument
118 # define LV_COLOR_SET_G8(c, v) (c).ch.green = (uint8_t)((v) & 0x7U) argument
119 # define LV_COLOR_SET_B8(c, v) (c).ch.blue = (uint8_t)((v) & 0x3U) argument
120 # define LV_COLOR_SET_A8(c, v) do {} while(0) argument
130 # define LV_COLOR_SET_R16(c, v) (c).ch.red = (uint8_t)((v) & 0x1FU) argument
132 # define LV_COLOR_SET_G16(c, v) (c).ch.green = (uint8_t)((v) & 0x3FU) argument
[all …]
Dlv_color.c151 lv_color_t lv_color_hsv_to_rgb(uint16_t h, uint8_t s, uint8_t v) in lv_color_hsv_to_rgb() argument
155 v = (uint16_t)((uint16_t)v * 255) / 100; in lv_color_hsv_to_rgb()
162 return lv_color_make(v, v, v); in lv_color_hsv_to_rgb()
168 p = (v * (255 - s)) >> 8; in lv_color_hsv_to_rgb()
169 q = (v * (255 - ((s * remainder) >> 8))) >> 8; in lv_color_hsv_to_rgb()
170 t = (v * (255 - ((s * (255 - remainder)) >> 8))) >> 8; in lv_color_hsv_to_rgb()
174 r = v; in lv_color_hsv_to_rgb()
180 g = v; in lv_color_hsv_to_rgb()
185 g = v; in lv_color_hsv_to_rgb()
191 b = v; in lv_color_hsv_to_rgb()
[all …]
/lvgl-latest/src/core/
Dlv_obj_style_gen.c5 lv_style_value_t v = { in lv_obj_set_style_width() local
8 lv_obj_set_local_style_prop(obj, LV_STYLE_WIDTH, v, selector); in lv_obj_set_style_width()
13 lv_style_value_t v = { in lv_obj_set_style_min_width() local
16 lv_obj_set_local_style_prop(obj, LV_STYLE_MIN_WIDTH, v, selector); in lv_obj_set_style_min_width()
21 lv_style_value_t v = { in lv_obj_set_style_max_width() local
24 lv_obj_set_local_style_prop(obj, LV_STYLE_MAX_WIDTH, v, selector); in lv_obj_set_style_max_width()
29 lv_style_value_t v = { in lv_obj_set_style_height() local
32 lv_obj_set_local_style_prop(obj, LV_STYLE_HEIGHT, v, selector); in lv_obj_set_style_height()
37 lv_style_value_t v = { in lv_obj_set_style_min_height() local
40 lv_obj_set_local_style_prop(obj, LV_STYLE_MIN_HEIGHT, v, selector); in lv_obj_set_style_min_height()
[all …]
Dlv_obj_style_gen.h3 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_WIDTH); in lv_obj_get_style_width() local
4 return (lv_coord_t)v.num; in lv_obj_get_style_width()
9 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_MIN_WIDTH); in lv_obj_get_style_min_width() local
10 return (lv_coord_t)v.num; in lv_obj_get_style_min_width()
15 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_MAX_WIDTH); in lv_obj_get_style_max_width() local
16 return (lv_coord_t)v.num; in lv_obj_get_style_max_width()
21 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_HEIGHT); in lv_obj_get_style_height() local
22 return (lv_coord_t)v.num; in lv_obj_get_style_height()
27 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_MIN_HEIGHT); in lv_obj_get_style_min_height() local
28 return (lv_coord_t)v.num; in lv_obj_get_style_min_height()
[all …]
Dlv_obj_style.c47 …_t get_prop_core(const lv_obj_t * obj, lv_part_t part, lv_style_prop_t prop, lv_style_value_t * v);
51 static void trans_anim_cb(void * _tr, int32_t v);
55 static void fade_anim_cb(void * obj, int32_t v);
380 …e_value_t _lv_obj_style_apply_color_filter(const lv_obj_t * obj, uint32_t part, lv_style_value_t v) in _lv_obj_style_apply_color_filter() argument
382 if(obj == NULL) return v; in _lv_obj_style_apply_color_filter()
386 if(f_opa != 0) v.color = f->filter_cb(f, v.color, f_opa); in _lv_obj_style_apply_color_filter()
388 return v; in _lv_obj_style_apply_color_filter()
406 lv_style_value_t v; in _lv_obj_style_state_compare() local
409 if(lv_style_get_prop(style, LV_STYLE_PAD_TOP, &v))layout_diff = true; in _lv_obj_style_state_compare()
410 else if(lv_style_get_prop(style, LV_STYLE_PAD_BOTTOM, &v)) layout_diff = true; in _lv_obj_style_state_compare()
[all …]
/lvgl-latest/src/extra/layouts/grid/
Dlv_grid.h123 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() local
124 return (const lv_coord_t *)v.ptr; in lv_obj_get_style_grid_row_dsc_array()
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() local
130 return (const lv_coord_t *)v.ptr; in lv_obj_get_style_grid_column_dsc_array()
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() local
136 return (lv_grid_align_t)v.num; in lv_obj_get_style_grid_row_align()
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() local
142 return (lv_grid_align_t)v.num; in lv_obj_get_style_grid_column_align()
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() local
148 return (lv_coord_t)v.num; in lv_obj_get_style_grid_cell_column_pos()
[all …]
Dlv_grid.c175 lv_style_value_t v = { in lv_style_set_grid_row_dsc_array() local
178 lv_style_set_prop(style, LV_STYLE_GRID_ROW_DSC_ARRAY, v); in lv_style_set_grid_row_dsc_array()
183 lv_style_value_t v = { in lv_style_set_grid_column_dsc_array() local
186 lv_style_set_prop(style, LV_STYLE_GRID_COLUMN_DSC_ARRAY, v); in lv_style_set_grid_column_dsc_array()
191 lv_style_value_t v = { in lv_style_set_grid_row_align() local
194 lv_style_set_prop(style, LV_STYLE_GRID_ROW_ALIGN, v); in lv_style_set_grid_row_align()
199 lv_style_value_t v = { in lv_style_set_grid_column_align() local
202 lv_style_set_prop(style, LV_STYLE_GRID_COLUMN_ALIGN, v); in lv_style_set_grid_column_align()
207 lv_style_value_t v = { in lv_style_set_grid_cell_column_pos() local
210 lv_style_set_prop(style, LV_STYLE_GRID_CELL_COLUMN_POS, v); in lv_style_set_grid_cell_column_pos()
[all …]
/lvgl-latest/demos/music/assets/
Dspectrum.py23 v = 0 variable
24 for i in range(f_prev, f): v += S[i][t]
25 if v != 0: v = int(v/30)
26 if v < 0: v = 0
28 fout.write(str(int(v)) + ", ")
/lvgl-latest/src/extra/layouts/flex/
Dlv_flex.h114 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_FLEX_FLOW); in lv_obj_get_style_flex_flow() local
115 return (lv_flex_flow_t)v.num; in lv_obj_get_style_flex_flow()
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() local
121 return (lv_flex_align_t)v.num; in lv_obj_get_style_flex_main_place()
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() local
127 return (lv_flex_align_t)v.num; in lv_obj_get_style_flex_cross_place()
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() local
133 return (lv_flex_align_t)v.num; in lv_obj_get_style_flex_track_place()
138 lv_style_value_t v = lv_obj_get_style_prop(obj, part, LV_STYLE_FLEX_GROW); in lv_obj_get_style_flex_grow() local
139 return (uint8_t)v.num; in lv_obj_get_style_flex_grow()
Dlv_flex.c124 lv_style_value_t v = { in lv_style_set_flex_flow() local
127 lv_style_set_prop(style, LV_STYLE_FLEX_FLOW, v); in lv_style_set_flex_flow()
132 lv_style_value_t v = { in lv_style_set_flex_main_place() local
135 lv_style_set_prop(style, LV_STYLE_FLEX_MAIN_PLACE, v); in lv_style_set_flex_main_place()
140 lv_style_value_t v = { in lv_style_set_flex_cross_place() local
143 lv_style_set_prop(style, LV_STYLE_FLEX_CROSS_PLACE, v); in lv_style_set_flex_cross_place()
148 lv_style_value_t v = { in lv_style_set_flex_track_place() local
151 lv_style_set_prop(style, LV_STYLE_FLEX_TRACK_PLACE, v); in lv_style_set_flex_track_place()
156 lv_style_value_t v = { in lv_style_set_flex_grow() local
159 lv_style_set_prop(style, LV_STYLE_FLEX_GROW, v); in lv_style_set_flex_grow()
[all …]
/lvgl-latest/examples/anim/
Dlv_example_anim_2.c4 static void anim_x_cb(void * var, int32_t v) in anim_x_cb() argument
6 lv_obj_set_x(var, v); in anim_x_cb()
9 static void anim_size_cb(void * var, int32_t v) in anim_size_cb() argument
11 lv_obj_set_size(var, v, v); in anim_size_cb()
Dlv_example_anim_timeline_1.py50 def set_width(self,obj, v): argument
51 obj.set_width(v)
53 def set_height(self,obj, v): argument
54 obj.set_height(v)
62 self.a1.set_custom_exec_cb(lambda a,v: self.set_width(self.obj1,v))
70 self.a2.set_custom_exec_cb(lambda a,v: self.set_height(self.obj1,v))
79 self.a3.set_custom_exec_cb(lambda a,v: self.set_width(self.obj2,v))
87 self.a4.set_custom_exec_cb(lambda a,v: self.set_height(self.obj2,v))
96 self.a5.set_custom_exec_cb(lambda a,v: self.set_width(self.obj3,v))
104 self.a6.set_custom_exec_cb(lambda a,v: self.set_height(self.obj3,v))
Dlv_example_anim_2.py1 def anim_x_cb(obj, v): argument
2 obj.set_x(v)
4 def anim_size_cb(obj, v): argument
5 obj.set_size(v, v)
/lvgl-latest/src/extra/widgets/spinner/
Dlv_spinner.c24 static void arc_anim_start_angle(void * obj, int32_t v);
25 static void arc_anim_end_angle(void * obj, int32_t v);
91 static void arc_anim_start_angle(void * obj, int32_t v) in arc_anim_start_angle() argument
93 lv_arc_set_start_angle(obj, (uint16_t) v); in arc_anim_start_angle()
96 static void arc_anim_end_angle(void * obj, int32_t v) in arc_anim_end_angle() argument
98 lv_arc_set_end_angle(obj, (uint16_t) v); in arc_anim_end_angle()
/lvgl-latest/examples/widgets/img/
Dlv_example_img_3.c4 static void set_angle(void * img, int32_t v) in set_angle() argument
6 lv_img_set_angle(img, v); in set_angle()
9 static void set_zoom(void * img, int32_t v) in set_zoom() argument
11 lv_img_set_zoom(img, v); in set_zoom()
Dlv_example_img_3.py25 def set_angle(img, v): argument
26 img.set_angle(v)
28 def set_zoom(img, v): argument
29 img.set_zoom(v)
/lvgl-latest/examples/others/msg/
Dlv_example_msg_1.c34 int32_t v = lv_slider_get_value(slider); in slider_event_cb() local
35 lv_msg_send(MSG_NEW_TEMPERATURE, &v); in slider_event_cb()
44 const int32_t * v = lv_msg_get_payload(m); in label_event_cb() local
46 lv_label_set_text_fmt(label, fmt, *v); in label_event_cb()
/lvgl-latest/examples/layouts/flex/
Dlv_example_flex_5.c4 static void row_gap_anim(void * obj, int32_t v) in row_gap_anim() argument
6 lv_obj_set_style_pad_row(obj, v, 0); in row_gap_anim()
9 static void column_gap_anim(void * obj, int32_t v) in column_gap_anim() argument
11 lv_obj_set_style_pad_column(obj, v, 0); in column_gap_anim()
Dlv_example_flex_5.py1 def row_gap_anim(obj, v): argument
2 obj.set_style_pad_row(v, 0)
5 def column_gap_anim(obj, v): argument
6 obj.set_style_pad_column(v, 0)
/lvgl-latest/src/extra/widgets/colorwheel/
Dlv_colorwheel.c101 if(hsv.v > 100) hsv.v = 100; in lv_colorwheel_set_hsv()
106 …if(colorwheel->hsv.h == hsv.h && colorwheel->hsv.s == hsv.s && colorwheel->hsv.v == hsv.v) return … in lv_colorwheel_set_hsv()
186 return lv_color_hsv_to_rgb(colorwheel->hsv.h, colorwheel->hsv.s, colorwheel->hsv.v); in lv_colorwheel_get_rgb()
229 colorwheel->hsv.v = 100; in lv_colorwheel_constructor()
405 hsv_cur.v = (colorwheel->hsv.v + 1) % 100; in lv_colorwheel_event()
426 hsv_cur.v = colorwheel->hsv.v > 0 ? (colorwheel->hsv.v - 1) : 100; in lv_colorwheel_event()
513 hsv_cur.v = (angle * 100) / 360; in lv_colorwheel_event()
581 hsv_cur.v = 100; in double_click_reset()
613 static void fast_hsv2rgb(uint16_t h, uint8_t s, uint8_t v, uint8_t * r, uint8_t * g, uint8_t * b) in fast_hsv2rgb() argument
616 *r = *g = *b = v; in fast_hsv2rgb()
[all …]
/lvgl-latest/examples/layouts/grid/
Dlv_example_grid_5.c4 static void row_gap_anim(void * obj, int32_t v) in row_gap_anim() argument
6 lv_obj_set_style_pad_row(obj, v, 0); in row_gap_anim()
9 static void column_gap_anim(void * obj, int32_t v) in column_gap_anim() argument
11 lv_obj_set_style_pad_column(obj, v, 0); in column_gap_anim()
Dlv_example_grid_5.py1 def row_gap_anim(obj, v): argument
2 obj.set_style_pad_row(v, 0)
4 def column_gap_anim(obj, v): argument
5 obj.set_style_pad_column(v, 0)
/lvgl-latest/examples/widgets/chart/
Dlv_example_chart_5.c52 int32_t v = lv_slider_get_value(obj); in slider_x_event_cb() local
53 lv_chart_set_zoom_x(chart, v); in slider_x_event_cb()
59 int32_t v = lv_slider_get_value(obj); in slider_y_event_cb() local
60 lv_chart_set_zoom_y(chart, v); in slider_y_event_cb()
Dlv_example_chart_5.py48 v = slider.get_value()
49 chart.set_zoom_x(v)
54 v = slider.get_value()
55 chart.set_zoom_y(v)

1234