Home
last modified time | relevance | path

Searched full:line (Results 1 – 25 of 304) sorted by relevance

12345678910>>...13

/lvgl-latest/tests/unity/
Dunity_internals.h575 void UnityPrintF(const UNITY_LINE_TYPE line, const char* format, ...);
594 * convention and will pull in file and line information
667 UNITY_NORETURN void UnityFail(const char* message, const UNITY_LINE_TYPE line);
668 UNITY_NORETURN void UnityIgnore(const char* message, const UNITY_LINE_TYPE line);
670 void UnityFail(const char* message, const UNITY_LINE_TYPE line);
671 void UnityIgnore(const char* message, const UNITY_LINE_TYPE line);
674 void UnityMessage(const char* message, const UNITY_LINE_TYPE line);
801 /* This tricky series of macros gives us an optional line argument to treat it as RUN_TEST(func, nu…
805 #define RUN_TEST_AT_LINE(func, line, ...) UnityDefaultTestRun(func, #func, line) argument
824 /* If we can't do the tricky version, we'll just have to require them to always include the line nu…
[all …]
Dgenerate_test_runner.rb128 …source_scrubbed = source_scrubbed.gsub(/\/\/(?:.+\/\*|\*(?:$|[^\/])).*$/, '') # remove line comme…
130 …source_scrubbed = source_scrubbed.gsub(/\/\/.*$/, '') # remove line comme…
131 …|\}) /x) # Treat preprocessor directives as a logical line. Match ;, {, and } …
132 ….map { |line| line.gsub(substring_unre, substring_unsubs) } # unhide the problematic characters pr…
134 lines.each_with_index do |line, _index|
136 …next unless line =~ /^((?:\s*(?:TEST_(?:CASE|RANGE|MATRIX))\s*\(.*?\)\s*)*)\s*void\s+((?:#{@option…
137 …next unless line =~ /^((?:\s*(?:TEST_(?:CASE|RANGE|MATRIX))\s*\(.*?\)\s*)*)\s*void\s+((?:#{@option…
188 # determine line numbers and create tests to run
192 source_lines[source_index..].each_with_index do |line, index|
193 next unless line =~ /\s+#{tests_and_line_numbers[i][:test]}(?:\s|\()/
[all …]
/lvgl-latest/tests/src/test_cases/widgets/
Dtest_line.c8 static lv_obj_t * line = NULL; variable
17 line = lv_line_create(active_screen); in setUp()
27 TEST_ASSERT_EQUAL_UINT16(default_point_num, lv_line_get_point_count(line)); in test_line_should_have_valid_documented_default_values()
28 TEST_ASSERT_NULL(lv_line_get_points(line)); in test_line_should_have_valid_documented_default_values()
29 TEST_ASSERT_FALSE(lv_line_get_y_invert(line)); in test_line_should_have_valid_documented_default_values()
30 TEST_ASSERT_FALSE(lv_obj_has_flag(line, LV_OBJ_FLAG_CLICKABLE)); in test_line_should_have_valid_documented_default_values()
31 /* line doesn't have any points, so it's 0,0 in size */ in test_line_should_have_valid_documented_default_values()
32 TEST_ASSERT_EQUAL_UINT16(0U, lv_obj_get_self_width(line)); in test_line_should_have_valid_documented_default_values()
33 TEST_ASSERT_EQUAL_UINT16(0U, lv_obj_get_self_height(line)); in test_line_should_have_valid_documented_default_values()
38 lv_line_set_y_invert(line, true); in test_line_should_return_valid_y_invert()
[all …]
Dtest_scale.c61 /* Main line properties */ in test_scale_render_example_2()
83 /* Main line properties */ in test_scale_render_example_2()
207 /* Main line properties */ in test_scale_render_example_4()
231 /* Main line properties */ in test_scale_render_example_4()
496 lv_obj_t * line = lv_line_create(scale); in test_scale_set_line_needle_value() local
499 lv_scale_set_line_needle_value(scale, line, 50, 35); in test_scale_set_line_needle_value()
500 TEST_ASSERT_EQUAL_UINT32(2, lv_line_get_point_count(line)); in test_scale_set_line_needle_value()
501 const lv_point_precise_t * allocated_points_array = lv_line_get_points(line); in test_scale_set_line_needle_value()
503 TEST_ASSERT_TRUE(lv_line_is_point_array_mutable(line)); in test_scale_set_line_needle_value()
504 TEST_ASSERT_EQUAL_PTR(allocated_points_array, lv_line_get_points_mutable(line)); in test_scale_set_line_needle_value()
[all …]
/lvgl-latest/src/widgets/line/
Dlv_line.c45 .name = "line",
82 lv_line_t * line = (lv_line_t *)obj; in lv_line_set_y_invert() local
83 if(line->y_inv == en) return; in lv_line_set_y_invert()
85 line->y_inv = en ? 1U : 0U; in lv_line_set_y_invert()
98 lv_line_t * line = (lv_line_t *)obj; in lv_line_get_points() local
99 return line->point_array.constant; in lv_line_get_points()
106 lv_line_t * line = (lv_line_t *)obj; in lv_line_get_point_count() local
107 return line->point_num; in lv_line_get_point_count()
114 lv_line_t * line = (lv_line_t *)obj; in lv_line_is_point_array_mutable() local
115 return line->point_array_is_mutable; in lv_line_is_point_array_mutable()
[all …]
Dlv_line.h34 * Create a line object
35 * @param parent pointer to an object, it will be the parent of the new line
36 * @return pointer to the created line
45 * Set an array of points. The line object will connect these points.
46 * @param obj pointer to a line object
47 …an array of points. Only the address is saved, so the array needs to be alive while the line exists
54 * @param obj pointer to a line object
55 …t array of points. Only the address is saved, so the array needs to be alive while the line exists.
64 * @param obj pointer to a line object
75 * @param obj pointer to a line object
[all …]
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_mask.h78 * Apply the added buffers on a line. Used internally by the library's drawing routines.
81 * @param abs_x absolute X coordinate where the line to calculate start
82 * @param abs_y absolute Y coordinate where the line to calculate start
83 * @param len length of the line to calculate (in pixel count)
85 * - `LV_DRAW_MASK_RES_FULL_TRANSP`: the whole line is transparent. `mask_buf` is not set to zero
86 * - `LV_DRAW_MASK_RES_FULL_COVER`: the whole line is fully visible. `mask_buf` is unchanged
87 …_RES_CHANGED`: `mask_buf` has changed, it shows the desired opacity of each pixel in the given line
106 *Initialize a line mask from two points.
108 * @param p1x X coordinate of the first point of the line
109 * @param p1y Y coordinate of the first point of the line
[all …]
/lvgl-latest/src/libs/thorvg/
DtvgLottieModifier.cpp59 static bool _intersect(const Line& line1, const Line& line2, Point& intersection, bool& inside) in _intersect()
82 static Line _offset(const Point& p1, const Point& p2, float offset) in _offset()
102 void LottieOffsetModifier::corner(const Line& line, const Line& nextLine, uint32_t movetoOutIndex, … in corner() argument
106 if (_intersect(line, nextLine, intersect, inside)) { in corner()
111 outPts.push(line.pt2); in corner()
114 outPts.push((line.pt2 + intersect) * 0.5f); in corner()
118 auto norm = normal(line.pt1, line.pt2); in corner()
129 } else outPts.push(line.pt2); in corner()
133 void LottieOffsetModifier::line(const PathCommand* inCmds, uint32_t inCmdsCnt, const Point* inPts, … in line() function in LottieOffsetModifier
140 …if (inCmds[currentCmd - 1] != PathCommand::LineTo) state.line = _offset(inPts[currentPt - 1], inPt… in line()
[all …]
DtvgSwRle.cpp312 /* compute the coverage line's coverage, depending on the outline fill rule */ in _horizLine()
520 auto line = rw.lineStack; in _lineTo() local
521 line[0] = to; in _lineTo()
522 line[1] = rw.pos; in _lineTo()
525 auto diff = line[0] - line[1]; in _lineTo()
529 mathSplitLine(line); in _lineTo()
530 ++line; in _lineTo()
533 e1 = TRUNC(line[1]); in _lineTo()
534 e2 = TRUNC(line[0]); in _lineTo()
536 auto f1 = line[1] - SUBPIXELS(e1); in _lineTo()
[all …]
DtvgSwRasterTexmap.h153 //Draw horizontal line
202 //Draw horizontal line
346 //Draw horizontal line in _rasterBlendingPolygonImageSegment()
389 //Draw horizontal line in _rasterBlendingPolygonImageSegment()
530 //Draw horizontal line in _rasterPolygonImageSegment()
580 //Draw horizontal line in _rasterPolygonImageSegment()
691 //Skip poly if it's an infinitely thin line in _rasterPolygonImage()
1056 auto line = &aaSpans->lines[y - aaSpans->yStart]; in _apply() local
1057 auto width = line->x[1] - line->x[0]; in _apply()
1062 dst = surface->buf32 + (offset + line->x[0]); in _apply()
[all …]
/lvgl-latest/docs/
Dconfig_builder.py32 for i, line in enumerate(data):
33 if 'LV_USE_PROFILER' in line:
36 if 'LV_USE' in line or ('LV_FONT' in line and '#define' in line):
37 line = [item for item in line.split(' ') if item]
39 for j, item in enumerate(line):
41 line[j] = '1'
43 line = ' '.join(line)
44 data[i] = line
45 elif line.startswith('#if 0'):
46 line = line.replace('#if 0', '#if 1')
[all …]
DREADME.md70 …t is important to allow paragraphs to flow off to the right with one long line so that when they a…
99 <=== Empty line -- important!
112 The first line is for the purposes of providing a uniquely-named **link target** that can be refere…
119 - **must** be followed by at least one blank line for the doc-generation logic to process it correc…
133 This in-line markup (interpreted text using the Sphinx-defined custom `:ref:` role) is then replace…
194 * Include at least 1 empty line after a code block.
195 * There must be one empty line between the code block directive and the code.
197 …ou want to separate code into easier-to-understand sections you can do so with a single empty line.
229 <=== blank line here is important
231 <=== blank line here is important
[all …]
Ddoc_builder.py290 self.line_no = child.attrib['line']
306 line_no = element.attrib['line']
325 warn(None, 'LINE:', self.line_no)
333 warn(None, 'LINE:', field.line_no)
442 self.line_no = element.attrib['line']
449 warn(None, 'LINE:', self.line_no)
630 self.line_no = child.attrib['line']
672 warn(None, 'LINE:', self.line_no)
678 warn(None, 'LINE:', self.line_no)
686 warn(None, 'LINE:', self.line_no)
[all …]
Dexample_list.py15 for line in data:
16 line = line.strip()
18 if not line:
21 if line.startswith('---'):
24 elif line.startswith('.. lv_example::'):
25 name = line.replace('.. lv_example::', '').strip()
28 last_line = line
58 "line": "Line",
DCODING_STYLE.rst70 - One line, one declaration (BAD: char x, y;).
87 * Brief description. Add a blank line + additional paragraphs when more detail is needed.
106 * When more detail is needed, add a blank line then the detail.
114 not end-of-line comments like this ``// Description``.
186 - When more detail is needed, add a blank line below the brief description and add
188 for calling the function. Doxygen needs the blank line to separate "brief" from
242 follows it until Doxygen encounters a blank line or another Doxygen command.
244 documents the return value until Doxygen encounters a blank line or another Doxygen command.
251 starts a paragraph where a note can be entered. The note ends with a blank line,
307 { /* Main brackets of functions in new line */
[all …]
/lvgl-latest/src/widgets/span/
Dlv_span.c449 int32_t max_w = max_width - indent; /* first line need minus indent */ in lv_spangroup_get_expand_height()
453 lv_point_set(&txt_pos, indent, 0); /* first line need add indent */ in lv_spangroup_get_expand_height()
468 int32_t max_line_h = 0; /* the max height of span-font when a line have a lot of span */ in lv_spangroup_get_expand_height()
470 /* the loop control to find a line and push the relevant span info into stack */ in lv_spangroup_get_expand_height()
493 /* get current span text line info */ in lv_spangroup_get_expand_height()
536 /* next line init */ in lv_spangroup_get_expand_height()
539 … /* iterate all the spans in the current line and set the trailing height to the max line height */ in lv_spangroup_get_expand_height()
914 int32_t max_w = max_width - indent; /* first line need minus indent */ in lv_draw_span()
920 txt_pos.x = coords.x1 + indent; /* first line need add indent */ in lv_draw_span()
937 int32_t max_line_h = 0; /* the max height of span-font when a line have a lot of span */ in lv_draw_span()
[all …]
/lvgl-latest/src/widgets/scale/
Dlv_scale.c561 /* Configure line draw descriptor for the minor tick drawing */ in scale_draw_indicator()
567 /* Main line style */ in scale_draw_indicator()
611 /* The tick is represented by a line. We need two points to draw it */ in scale_draw_indicator()
765 /* Configure line draw descriptor for the minor tick drawing */ in scale_calculate_main_compensation()
796 /* The tick is represented by a line. We need two points to draw it */ in scale_calculate_main_compensation()
801 /* Store initial and last tick widths to be used in the main line drawing */ in scale_calculate_main_compensation()
819 /* Configure both line and label draw descriptors for the tick and label drawings */ in scale_draw_main()
825 /* Get style properties so they can be used in the main line drawing */ in scale_draw_main()
863 /* Adjust main line with initial and last tick width */ in scale_draw_main()
874 /* Adjust main line with initial and last tick width */ in scale_draw_main()
[all …]
/lvgl-latest/docs/details/widgets/
Dline.rst4 Line (lv_line)
10 The Line Widget is capable of drawing straight lines between a set of
19 and line style properties.
29 A Line's points have to be stored in an :cpp:struct:`lv_point_precise_t` array and passed to
34 (e.g. ``{5, 10}``), or as a percentage of the Line's bounding box using
35 :cpp:expr:`lv_pct(x)`. In the latter case, the Line's width/height may need to
42 By default, the Line's width and height are set to :c:macro:`LV_SIZE_CONTENT`.
44 the size is set explicitly, parts on the Line may not be visible.
51 with :cpp:expr:`lv_line_set_y_invert(line, true)`. In this case, *y == 0* will
61 Only :ref:`generic events <events>` are sent by Line Widgets.
[all …]
Dchart.rst40 - Can be LINE (default), BAR, SCATTER, or none.
59 - For LINE- and BAR-charts, this is the number of points on the X axis.
60 - LINE- and BAR-charts require only one data-value array to supply Y-values for each data point.
116 background <typical bg props>` and line style properties (for division lines).
121 - :cpp:enumerator:`LV_PART_ITEMS` Refers to the LINE or BAR data series.
123 - LINE chart: *line* properties are used by lines.
125 the appearance of points on the line.
129 - :cpp:enumerator:`LV_PART_INDICATOR` Refers to points on LINE- and SCATTER-charts
131 - :cpp:enumerator:`LV_PART_CURSOR` *Line* properties are used to style cursors.
155 lines between the points if line-width style values for
[all …]
Dscale.rst23 - :cpp:enumerator:`LV_PART_MAIN` Main line --- the blue line in example image.
42 with tick marks below the line. If you need it to have a different shape, orientation
70 Normally ticks and their labels are drawn first and the main line is drawn next,
71 giving the ticks and their labels the appearance of being underneath the main line
73 and labels appear on top the main line, using
77 Example with with ticks and labels drawn *under* the main line (default):
81 Example with ticks and labels drawn *on top of* the main line:
155 different Style properties to draw them (colors, line thicknesses, font, etc.).
239 - For main line *when it is a straight line* (:cpp:enumerator:`LV_PART_MAIN`):
245 - For main line *when it is an arc* (:cpp:enumerator:`LV_PART_MAIN`):
/lvgl-latest/scripts/
Dlv_conf_internal_gen.py108 for line in fin.read().splitlines():
110 if '#define LV_CONF_H' in line:
116 if '/*--END OF LV_CONF_H--*/' in line: break
118 #Is there a #define in this line?
119 …r = re.search(r'^([\s]*)#[\s]*(undef|define)[\s]+([^\s]+).*$', line) # \s means any white space …
127 line = re.sub(r'[\s]*', '', line, 1) variable
131 is_one = re.search(r'#[\s]*define[\s]*[A-Z0-9_]+[\s]+1([\s]*$|[\s]+)', line)
146 f'{indent} {line}\n'
160 f'{indent} {line}\n'
165 elif re.search('^ *typedef .*;.*$', line):
[all …]
Dupdate_version.py52 def applyVersionToLine(self, line: str, version: Version) -> Union[str, None]:
60 for i, line in enumerate(lines):
61 line_with_version = self.applyVersionToLine(line, version)
80 def applyVersionToLine(self, line: str, version: Version):
83 replaced, n = re.subn(pattern, repl, line)
91 def applyVersionToLine(self, line: str, version: Version):
102 replaced, n = re.subn(pattern, repl, line)
131 def applyVersionToLine(self, line: str, version: Version):
141 replaced, n = re.subn(pattern, repl, line)
/lvgl-latest/.github/workflows/
Dcheck_bom.yml26 …-include="*.py" --include="*.cmake" --include="Makefile" $'\xEF\xBB\xBF' . | while read -r line; do
27 a=$(head -c 3 "$line")
29 echo "${line}" && exit 1
35 …k" --include="*.py" --include="*.cmake" --include="Makefile" $'\xFF\xFE' . | while read -r line; do
36 a=$(head -c 3 "$line")
38 echo "${line}" && exit 1
44 …k" --include="*.py" --include="*.cmake" --include="Makefile" $'\xFE\xFF' . | while read -r line; do
45 a=$(head -c 3 "$line")
47 echo "${line}" && exit 1
/lvgl-latest/src/libs/svg/
Dlv_svg_render.c445 lv_svg_render_line_t * line = (lv_svg_render_line_t *)obj; in _set_line_attr() local
448 line->x1 = attr->value.fval; in _set_line_attr()
451 line->y1 = attr->value.fval; in _set_line_attr()
454 line->x2 = attr->value.fval; in _set_line_attr()
457 line->y2 = attr->value.fval; in _set_line_attr()
1348 lv_svg_render_line_t * line = (lv_svg_render_line_t *)obj; in _render_line() local
1350 lv_fpoint_t sp = {line->x1, line->y1}; in _render_line()
1352 lv_fpoint_t ep = {line->x2, line->y2}; in _render_line()
1706 lv_svg_render_line_t * line = (lv_svg_render_line_t *)obj; in _get_line_bounds() local
1707 area->x1 = (int32_t)(line->x1); in _get_line_bounds()
[all …]
/lvgl-latest/src/draw/
Dlv_draw_vector.h146 * Add a line to the path from last point to the point
153 * Add a quadratic bezier line to the path from last point to the point
161 * Add a cubic bezier line to the path from last point to the point
347 * Set stroke line width for descriptor
349 * @param width the stroke line width
354 * Set stroke line dash pattern for descriptor
356 * @param dash_pattern an array of values that specify the segments of dash line
362 * Set stroke line cap style for descriptor
364 * @param cap the line cap to be set in lv_vector_stroke_cap_t format
369 * Set stroke line join style for descriptor
[all …]

12345678910>>...13