Home
last modified time | relevance | path

Searched refs:arc (Results 1 – 23 of 23) sorted by relevance

/lvgl-3.7.0/tests/src/test_cases/
Dtest_arc.c19 static lv_obj_t * arc = NULL; variable
31 arc = lv_arc_create(active_screen); in test_arc_creation_successfull()
33 TEST_ASSERT_NOT_NULL(arc); in test_arc_creation_successfull()
41 arc = lv_arc_create(active_screen); in test_arc_should_truncate_to_max_range_when_new_value_exceeds_it()
43 lv_arc_set_value(arc, 200); in test_arc_should_truncate_to_max_range_when_new_value_exceeds_it()
45 TEST_ASSERT_EQUAL_INT16(value_after_truncation, lv_arc_get_value(arc)); in test_arc_should_truncate_to_max_range_when_new_value_exceeds_it()
53 arc = lv_arc_create(active_screen); in test_arc_should_truncate_to_min_range_when_new_value_is_inferior()
55 lv_arc_set_value(arc, 0); in test_arc_should_truncate_to_min_range_when_new_value_is_inferior()
57 TEST_ASSERT_EQUAL_INT16(value_after_truncation, lv_arc_get_value(arc)); in test_arc_should_truncate_to_min_range_when_new_value_is_inferior()
65 arc = lv_arc_create(active_screen); in test_arc_should_update_value_after_updating_range()
[all …]
/lvgl-3.7.0/src/widgets/
Dlv_arc.c40 static void inv_arc_area(lv_obj_t * arc, uint16_t start_angle, uint16_t end_angle, lv_part_t part);
44 static void get_knob_area(lv_obj_t * arc, const lv_point_t * center, lv_coord_t r, lv_area_t * knob…
45 static void value_update(lv_obj_t * arc);
91 lv_arc_t * arc = (lv_arc_t *)obj; in lv_arc_set_start_angle() local
95 int16_t old_delta = arc->indic_angle_end - arc->indic_angle_start; in lv_arc_set_start_angle()
96 int16_t new_delta = arc->indic_angle_end - start; in lv_arc_set_start_angle()
102 …else if(new_delta < old_delta) inv_arc_area(obj, arc->indic_angle_start, start, LV_PART_INDICATOR); in lv_arc_set_start_angle()
103 …else if(old_delta < new_delta) inv_arc_area(obj, start, arc->indic_angle_start, LV_PART_INDICATOR); in lv_arc_set_start_angle()
107 arc->indic_angle_start = start; in lv_arc_set_start_angle()
115 lv_arc_t * arc = (lv_arc_t *)obj; in lv_arc_set_end_angle() local
[all …]
/lvgl-3.7.0/examples/widgets/arc/
Dlv_example_arc_1.c12 lv_obj_t * arc = lv_arc_create(lv_scr_act()); in lv_example_arc_1() local
13 lv_obj_set_size(arc, 150, 150); in lv_example_arc_1()
14 lv_arc_set_rotation(arc, 135); in lv_example_arc_1()
15 lv_arc_set_bg_angles(arc, 0, 270); in lv_example_arc_1()
16 lv_arc_set_value(arc, 10); in lv_example_arc_1()
17 lv_obj_center(arc); in lv_example_arc_1()
18 lv_obj_add_event_cb(arc, value_changed_event_cb, LV_EVENT_VALUE_CHANGED, label); in lv_example_arc_1()
21 lv_event_send(arc, LV_EVENT_VALUE_CHANGED, NULL); in lv_example_arc_1()
26 lv_obj_t * arc = lv_event_get_target(e); in value_changed_event_cb() local
29 lv_label_set_text_fmt(label, "%d%%", lv_arc_get_value(arc)); in value_changed_event_cb()
[all …]
Dlv_example_arc_2.py8 def arc_loader_cb(self,tim,arc): argument
12 arc.set_end_angle(self.a)
23 arc = lv.arc(lv.scr_act()) variable
24 arc.set_bg_angles(0, 360)
25 arc.set_angles(270, 270)
26 arc.center()
35 timer.set_cb(lambda src: arc_loader.arc_loader_cb(timer,arc))
Dlv_example_arc_2.c16 lv_obj_t * arc = lv_arc_create(lv_scr_act()); in lv_example_arc_2() local
17 lv_arc_set_rotation(arc, 270); in lv_example_arc_2()
18 lv_arc_set_bg_angles(arc, 0, 360); in lv_example_arc_2()
19 lv_obj_remove_style(arc, NULL, LV_PART_KNOB); /*Be sure the knob is not displayed*/ in lv_example_arc_2()
20 lv_obj_clear_flag(arc, LV_OBJ_FLAG_CLICKABLE); /*To not allow adjusting by click*/ in lv_example_arc_2()
21 lv_obj_center(arc); in lv_example_arc_2()
25 lv_anim_set_var(&a, arc); in lv_example_arc_2()
Dlv_example_arc_1.py2 arc = lv.arc(lv.scr_act()) variable
3 arc.set_end_angle(200)
4 arc.set_size(150, 150)
5 arc.center()
Dindex.rst5 .. lv_example:: widgets/arc/lv_example_arc_1
7 :description: A simple example to demonstrate the use of an arc.
12 .. lv_example:: widgets/arc/lv_example_arc_2
/lvgl-3.7.0/docs/widgets/core/
Darc.md5 The Arc consists of a background and a foreground arc. The foreground (indicator) can be touch-adju…
8 …d using the typical background style properties and an arc using the arc style properties. The arc
9 …INDICATOR` Draws another arc using the *arc* style properties. Its padding values are interpreted …
17 A new value can be set using `lv_arc_set_value(arc, new_value)`.
18 … a range (minimum and maximum values) which can be modified with `lv_arc_set_range(arc, min, max)`.
21 …e indicator arc is drawn on the main part's arc. This if the value is set to maximum the indicator…
22 …le of the background arc use the `lv_arc_set_bg_angles(arc, start_angle, end_angle)` functions or …
29 An offset to the 0 degree position can be added with `lv_arc_set_rotation(arc, deg)`.
33 The arc can be one of the following modes:
34 - `LV_ARC_MODE_NORMAL` The indicator arc is drawn from the minimum value to the current.
[all …]
Dindex.md8 arc
/lvgl-3.7.0/src/draw/nxp/vglite/
Dlv_draw_vglite_arc.c387 static void get_subarc_control_points(vg_arc * arc, int32_t span) in get_subarc_control_points() argument
390 fullarc.angle = arc->angle; in get_subarc_control_points()
391 fullarc.quarter = arc->quarter; in get_subarc_control_points()
392 fullarc.rad = arc->rad; in get_subarc_control_points()
396 if(arc->angle == 90) { in get_subarc_control_points()
397 copy_arc(arc, &fullarc); in get_subarc_control_points()
402 uint16_t t2 = TperDegree[arc->angle + span]; in get_subarc_control_points()
425 uint16_t t1 = TperDegree[arc->angle]; in get_subarc_control_points()
467 arc->p0x = (int32_t)floorf(0.5f + pt1x); in get_subarc_control_points()
468 arc->p0y = (int32_t)floorf(0.5f + pt1y); in get_subarc_control_points()
[all …]
/lvgl-3.7.0/docs/widgets/extra/
Dspinner.md4 The Spinner object is a spinning arc over a ring.
7 The parts are identical to the parts of [lv_arc](/widgets/core/arc).
13 …e` sets the spin time in milliseconds, `arc_length` sets the length of the spinning arc in degrees.
18 See the events of the [Arc](/widgets/core/arc) too.
Dmeter.md10 - `LV_PART_ITEMS` The arcs using the *arc* properties.
49 …meter, scale, arc_width, arc_color, r_mod)` adds an arc indicator. By default, the radius of the a…
63 - `LV_METER_DRAW_PART_ARC` The arc indicator
67 - `radius`: radius of the arc
68 - `p1` center of the arc
Dcolorwheel.md10 …es all the rectangle like style properties and padding to make it larger than the width of the arc.
/lvgl-3.7.0/demos/widgets/
Dlv_demo_widgets.py103 def arc_phase1_ready_cb(a,arc): argument
106 a_arc.set_custom_exec_cb(lambda a_arc, val: anim_phase2(a_arc,arc,val))
109 a_arc.set_ready_cb(lambda a: arc_phase2_ready_cb(a,arc))
112 def arc_phase2_ready_cb(a,arc): argument
115 a_arc.set_custom_exec_cb(lambda a_arc, val: anim_phase1(a_arc,arc,val))
118 a_arc.set_ready_cb(lambda a: arc_phase1_ready_cb(a,arc))
121 def anim_phase1(a,arc,val): argument
122 arc.set_end_angle(val)
123 label = arc.get_child(None)
125 label.align(arc, lv.ALIGN.CENTER, 0, 0)
[all …]
/lvgl-3.7.0/examples/styles/
Dlv_example_style_7.py11 obj = lv.arc(lv.scr_act())
/lvgl-3.7.0/src/extra/widgets/meter/
Dlv_meter.c174 indic->type_data.arc.width = width; in lv_meter_add_arc()
175 indic->type_data.arc.color = color; in lv_meter_add_arc()
176 indic->type_data.arc.r_mod = r_mod; in lv_meter_add_arc()
352 arc_dsc.color = indic->type_data.arc.color; in draw_arcs()
353 arc_dsc.width = indic->type_data.arc.width; in draw_arcs()
365 part_draw_dsc.radius = r_out + indic->type_data.arc.r_mod; in draw_arcs()
640 r_out += indic->type_data.arc.r_mod; in inv_arc()
649 … end_angle), indic->type_data.arc.width, rounded, &a); in inv_arc()
Dlv_meter.h82 } arc; member
/lvgl-3.7.0/docs/overview/
Ddrawing.md3 With LVGL, you don't need to draw anything manually. Just create objects (like buttons, labels, arc
77 - **arc drawing** A circular border is drawn but an arc mask is applied too.
167 … A draw descriptor that can be modified to changed what LVGL will draw. Set only for arc-like parts
171 … // A point calculated during drawing. E.g. a point of a chart or the center of an arc.
174 lv_coord_t radius; // E.g. the radius of an arc (not the corner radius).
Dstyle-props.md589 Set the color of the arc.
607 Set an image from which the arc will be masked out. It's useful to display complex effects on the a…
/lvgl-3.7.0/docs/
DCHANGELOG.md20 - fix(arc): handle click outside background angle range (#4586) [`4667`](https://github.com/lvgl/lv…
28 - fix(arc): fix setting value by click [`20b6199`](https://github.com/lvgl/lvgl/commit/20b6199ba903…
63 - fix(vglite): be sure end_angle > start_angle in arc drawing [`01cd1fe`](https://github.com/lvgl/l…
202 - fix(arc): fix knob area invalidation [`d0e19eb`](https://github.com/lvgl/lvgl/commit/d0e19eb2d38b…
333 - fix(arc): fix arc knob invalidation in SYMMETRICAL mode [`a283273`](https://github.com/lvgl/lvgl/…
411 - feat(arc): add lv_arc_align_obj_to_angle and lv_arc_rotate_obj_to_angle [`a76bb70`](https://githu…
430 - fix(arc): fix bug with LV_ARC_MODE_REVERSE (#3417) [`3418`](https://github.com/lvgl/lvgl/pull/341…
531 - fix(arc): fix arc image drawing issue [`7153e3f`](https://github.com/lvgl/lvgl/commit/7153e3f8b7b…
759 - fix(arc) free memory when drawing full-circle arc [`2869`](https://github.com/littlevgl/lvgl/pull…
781 - fix(arc): fix knob invalidation [`345f688`](https://github.com/littlevgl/lvgl/commit/345f6882c980…
[all …]
/lvgl-3.7.0/docs/get-started/platforms/
Dnxp.md133 - Draw arc with optional rounded ending
168 - src/draw/nxp/vglite/lv_draw_vglite_arc.c[.h]: draw arc
/lvgl-3.7.0/docs/porting/
Dgpu.md14 - `void (*draw_arc)()` Draw an arc
/lvgl-3.7.0/
DKconfig136 Required to draw shadow, gradient, rounded corners, circles, arc, skew lines,