Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 84) sorted by relevance

1234

/lvgl-latest/tests/unity/
Dunity_internals.h575 void UnityPrintF(const UNITY_LINE_TYPE line, const char* format, ...);
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);
805 #define RUN_TEST_AT_LINE(func, line, ...) UnityDefaultTestRun(func, #func, line) argument
871 #define UNITY_TEST_FAIL(line, message) UnityFail( (message), (UNITY_LINE_TYPE)(line)) argument
872 #define UNITY_TEST_IGNORE(line, message) UnityIgnore( (message), (UNITY_LINE_TYPE)(line)) argument
878 …ion, line, message) do { if (condition) { /* nothing*… argument
[all …]
Dgenerate_test_runner.rb132 ….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…
192 source_lines[source_index..].each_with_index do |line, index|
193 next unless line =~ /\s+#{tests_and_line_numbers[i][:test]}(?:\s|\()/
/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()
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()
39 TEST_ASSERT_TRUE(lv_line_get_y_invert(line)); in test_line_should_return_valid_y_invert()
[all …]
Dtest_scale.c496 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()
508 lv_line_set_points_mutable(line, provided_points_array, 2); in test_scale_set_line_needle_value()
509 lv_scale_set_line_needle_value(scale, line, 20, 20); in test_scale_set_line_needle_value()
514 TEST_ASSERT_EQUAL_PTR(provided_points_array, lv_line_get_points_mutable(line)); in test_scale_set_line_needle_value()
521 lv_line_set_points(line, provided_points_array, 2); /* immutable setter */ in test_scale_set_line_needle_value()
[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 …]
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
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 …]
/lvgl-latest/src/widgets/line/
Dlv_line.c82 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()
122 lv_line_t * line = (lv_line_t *)obj; in lv_line_get_points_mutable() local
[all …]
/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
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)
165 elif re.search('^ *typedef .*;.*$', line):
Dgenexamplelist.sh7 cat $TMPFILE | while read -r line; do
8 echo "extern void ${line}(void);"
11 cat $TMPFILE | while read -r line; do
12 echo " { \"$line\", $line },";
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)
Dgenerate_lv_conf.py62 for line in file.readlines():
63 if len(line.strip()) == 0 or line.startswith('#'):
65 groups = re.search(r'([A-Z0-9_]+)\s+(.+)', line).groups()
Dcode-format.cfg21 # Allows each platform to use its own line endings. This then does
22 # what Git does out of the box: uses platform line endings in the
23 # working directory, but uses only LF line endings in the repository.
24 # `astyle` also natively uses line the endings it finds in the files,
Dproperties.py50 for line in file.readlines():
51 match = re.match(pattern, line)
62 for line in file.readlines():
63 match = re.match(pattern, line)
/lvgl-latest/src/drivers/glfw/
Dlv_opengles_debug.c44 void GLLogCall(const char * function, const char * file, int line) in GLLogCall() argument
48 LV_LOG_ERROR("[OpenGL Error] (%d) %s %s:%d", error, function, file, line); in GLLogCall()
/lvgl-latest/src/libs/thorvg/
DtvgLottieModifier.cpp102 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()
145 outPts.push(state.line.pt1); in line()
146 state.firstLine = state.line; in line()
[all …]
DtvgLottieModifier.h63 Line line{};
70 …void line(const PathCommand* inCmds, uint32_t inCmdsCnt, const Point* inPts, uint32_t& currentPt, …
71 …void corner(const Line& line, const Line& nextLine, uint32_t movetoIndex, bool nextClose, Array<Pa…
DtvgSwRle.cpp520 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()
623 f2 = {line[0].x - SUBPIXELS(e2.x), line[0].y - SUBPIXELS(e2.y)}; in _lineTo()
[all …]
/lvgl-latest/src/misc/
Dlv_log.c41 #define LOG_FILE_LINE_EXPR , &file[p], line
72 void lv_log_add(lv_log_level_t level, const char * file, int line, const char * func, const char * … in lv_log_add() argument
91 LV_UNUSED(line); in lv_log_add()
Dlv_log.h91 void lv_log_add(lv_log_level_t level, const char * file, int line,
148 #define lv_log_add(level, file, line, ...) argument
/lvgl-latest/examples/widgets/chart/
Dindex.rst27 Faded area line chart with custom division lines
45 Circular line chart with gap
/lvgl-latest/docs/details/widgets/
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`):
Dline.rst19 and line style properties.
51 with :cpp:expr:`lv_line_set_y_invert(line, true)`. In this case, *y == 0* will
89 .. include:: ../../examples/widgets/line/index.rst
/lvgl-latest/examples/widgets/line/
Dindex.rst5 .. lv_example:: widgets/line/lv_example_line_1
/lvgl-latest/src/draw/
Dlv_draw_buf.c531 uint8_t * line = (uint8_t *)draw_buf->data; in lv_draw_buf_premultiply() local
533 lv_color32_t * pixel = (lv_color32_t *)line; in lv_draw_buf_premultiply()
538 line += stride; in lv_draw_buf_premultiply()
546 uint8_t * line = (uint8_t *)draw_buf->data; in lv_draw_buf_premultiply() local
547 lv_opa_t * alpha = (lv_opa_t *)(line + stride * h); in lv_draw_buf_premultiply()
549 lv_color16_t * pixel = (lv_color16_t *)line; in lv_draw_buf_premultiply()
554 line += stride; in lv_draw_buf_premultiply()
562 uint8_t * line = (uint8_t *)draw_buf->data; in lv_draw_buf_premultiply() local
564 uint8_t * pixel = line; in lv_draw_buf_premultiply()
570 line += stride; in lv_draw_buf_premultiply()

1234