/lvgl-latest/tests/src/test_cases/widgets/ |
D | test_roller.c | 287 lv_obj_t * r = lv_roller_create(active_screen); in test_roller_appearance() local 288 lv_obj_set_pos(r, 130, 20); in test_roller_appearance() 289 lv_roller_set_options(r, opts, LV_ROLLER_MODE_NORMAL); in test_roller_appearance() 290 lv_obj_set_style_text_font(r, &lv_font_montserrat_16, LV_PART_MAIN); in test_roller_appearance() 291 lv_obj_set_style_text_font(r, &lv_font_montserrat_24, LV_PART_SELECTED); in test_roller_appearance() 292 rollers[i++] = r; in test_roller_appearance() 293 r = lv_roller_create(active_screen); in test_roller_appearance() 294 lv_obj_set_pos(r, 130, 200); in test_roller_appearance() 295 lv_roller_set_options(r, opts, LV_ROLLER_MODE_INFINITE); in test_roller_appearance() 296 lv_obj_set_style_text_font(r, &lv_font_montserrat_16, LV_PART_MAIN); in test_roller_appearance() [all …]
|
/lvgl-latest/src/libs/thorvg/rapidjson/internal/ |
D | clzll.h | 38 unsigned long r = 0; in clzll() local 40 _BitScanReverse64(&r, x); in clzll() 43 if (_BitScanReverse(&r, static_cast<uint32_t>(x >> 32))) in clzll() 44 return 63 - (r + 32); in clzll() 47 _BitScanReverse(&r, static_cast<uint32_t>(x & 0xFFFFFFFF)); in clzll() 50 return 63 - r; in clzll() 56 uint32_t r = 0; in clzll() local 59 ++r; in clzll() 62 return r; in clzll()
|
D | regex.h | 469 unsigned r = 0; in RAPIDJSON_DIAG_OFF() local 473 if (r >= 429496729 && ds.Peek() > '5') // 2^32 - 1 = 4294967295 in RAPIDJSON_DIAG_OFF() 475 r = r * 10 + (ds.Take() - '0'); in RAPIDJSON_DIAG_OFF() 477 *u = r; in RAPIDJSON_DIAG_OFF() 503 SizeType r = NewRange('-'); in RAPIDJSON_DIAG_OFF() local 505 GetRange(current).next = r; in RAPIDJSON_DIAG_OFF() 534 SizeType r = NewRange(codepoint); in RAPIDJSON_DIAG_OFF() local 536 GetRange(current).next = r; in RAPIDJSON_DIAG_OFF() 538 start = r; in RAPIDJSON_DIAG_OFF() 539 current = r; in RAPIDJSON_DIAG_OFF() [all …]
|
/lvgl-latest/src/draw/vg_lite/ |
D | lv_draw_vg_lite_border.c | 38 float r); 119 float r) in path_append_inner_rect() argument 134 const float r_in = r - border_w; in path_append_inner_rect() 182 const float c1_x = x + r; in path_append_inner_rect() 183 const float c1_y = y + r; in path_append_inner_rect() 184 const float c2_x = x + w - r; in path_append_inner_rect() 187 const float c3_y = y + h - r; in path_append_inner_rect() 196 const float p2_y = y + r; in path_append_inner_rect() 197 const float p3_x = x + r; in path_append_inner_rect() 204 const float p6_x = x + w - r; in path_append_inner_rect() [all …]
|
D | lv_vg_lite_path.c | 417 float r) in lv_vg_lite_path_append_rect() argument 425 if(r > r_max) in lv_vg_lite_path_append_rect() 426 r = r_max; in lv_vg_lite_path_append_rect() 429 if(r <= 0) { in lv_vg_lite_path_append_rect() 440 if(math_equal(r, half_w) && math_equal(r, half_h)) { in lv_vg_lite_path_append_rect() 441 lv_vg_lite_path_append_circle(path, x + half_w, y + half_h, r, r); in lv_vg_lite_path_append_rect() 447 const float offset = r * PATH_ARC_MAGIC; in lv_vg_lite_path_append_rect() 451 lv_vg_lite_path_move_to(path, x + r, y); in lv_vg_lite_path_append_rect() 454 lv_vg_lite_path_line_to(path, x + w - r, y); in lv_vg_lite_path_append_rect() 457 lv_vg_lite_path_cubic_to(path, x + w - r + offset, y, x + w, y + r - offset, x + w, y + r); in lv_vg_lite_path_append_rect() [all …]
|
/lvgl-latest/src/indev/ |
D | lv_indev_gesture.c | 208 lv_indev_gesture_recognizer_t * r = recognizer; in lv_indev_gesture_detect_pinch() local 211 if(r->info == NULL) { in lv_indev_gesture_detect_pinch() 213 r->info = init_gesture_info(); in lv_indev_gesture_detect_pinch() 216 if(r->config == NULL) { in lv_indev_gesture_detect_pinch() 218 r->config = lv_malloc(sizeof(lv_indev_gesture_configuration_t)); in lv_indev_gesture_detect_pinch() 220 LV_ASSERT(r->config != NULL); in lv_indev_gesture_detect_pinch() 222 r->config->pinch_up_threshold = LV_GESTURE_PINCH_UP_THRESHOLD; in lv_indev_gesture_detect_pinch() 223 r->config->pinch_down_threshold = LV_GESTURE_PINCH_DOWN_THRESHOLD; in lv_indev_gesture_detect_pinch() 230 process_touch_event(touch, r->info); in lv_indev_gesture_detect_pinch() 234 … i, touch->id, touch->state, touch->point.x, touch->point.y, r->info->finger_cnt); in lv_indev_gesture_detect_pinch() [all …]
|
/lvgl-latest/scripts/ |
D | lv_conf_internal_gen.py | 119 …r = re.search(r'^([\s]*)#[\s]*(undef|define)[\s]+([^\s]+).*$', line) # \s means any white space … variable 121 if r: 122 indent = r[1] 124 name = r[3] 125 …name = re.sub(r'\(.*?\)', '', name, 1) #remove parentheses from macros. E.g. MY_FUNC(5) -> MY_F… 127 line = re.sub(r'[\s]*', '', line, 1) 131 is_one = re.search(r'#[\s]*define[\s]*[A-Z0-9_]+[\s]+1([\s]*$|[\s]+)', line) 171 r'''
|
D | update_version.py | 22 RE_PATTERN = r"(\d+)\.(\d+)\.(\d+)(-[\w\d]+)?" 26 if not re.match(r'^' + self.RE_PATTERN + r'$', user_input): 81 pattern = r'(' + re.escape(self.prefix) + ')' + Version.RE_PATTERN 82 repl = r'\g<1>' + str(version) 109 return r'(^#define ' + key + r' +).+' 115 return r'\g<1>' + val 120 return r'(^set\(' + key + r' +")([^"]*)(.+)' 123 return r'\g<1>' + val + r'\g<3>' 152 return r'\g<1>' + val + r' # \g<3>'
|
D | LVGLImage.py | 41 def color_pre_multiply(r, g, b, a, background): argument 46 return ((r * a + (255 - a) * br) >> 8, (g * a + (255 - a) * bg) >> 8, 267 for r, g, b in zip(R, G, B): 268 ret += [r, g, b] 298 for r, g, b, a in zip(R, G, B, A): 299 ret += [r, g, b, a] 588 def multiply(r, g, b, a): argument 589 r, g, b = (r * a) >> 8, (g * a) >> 8, (b * a) >> 8 590 return uint8_t(b) + uint8_t(g) + uint8_t(r) + uint8_t(a) 603 def multiply(b, g, r, a): argument [all …]
|
D | generate_lv_conf.py | 65 groups = re.search(r'([A-Z0-9_]+)\s+(.+)', line).groups() 79 res = re.search(r'#define\s+([A-Z0-9_]+)\s+(.+)', src_line) 84 pattern = r'(#define\s+[A-Z0-9_]+\s+)(.+)' 85 repl = r'\g<1>' + value
|
D | trace_filter.py | 35 pattern = re.compile(r'(^.+-[0-9]+\s\[[0-9]]\s[0-9]+\.[0-9]+:\s(' 37 + r'):\s[B|E]\|[0-9]+\|.+$)', re.M)
|
/lvgl-latest/src/misc/ |
D | lv_color.c | 143 uint8_t r, g, b; in lv_color_hsv_to_rgb() local 160 r = v; in lv_color_hsv_to_rgb() 165 r = q; in lv_color_hsv_to_rgb() 170 r = p; in lv_color_hsv_to_rgb() 175 r = p; in lv_color_hsv_to_rgb() 180 r = t; in lv_color_hsv_to_rgb() 185 r = v; in lv_color_hsv_to_rgb() 191 lv_color_t result = lv_color_make(r, g, b); in lv_color_hsv_to_rgb() 197 uint16_t r = ((uint32_t)r8 << 10) / 255; in lv_color_rgb_to_hsv() local 201 uint16_t rgbMin = r < g ? (r < b ? r : b) : (g < b ? g : b); in lv_color_rgb_to_hsv() [all …]
|
/lvgl-latest/examples/scroll/ |
D | lv_example_scroll_6.c | 12 int32_t r = lv_obj_get_height(cont) * 7 / 10; in scroll_event_cb() local 28 if(diff_y >= r) { in scroll_event_cb() 29 x = r; in scroll_event_cb() 33 uint32_t x_sqr = r * r - diff_y * diff_y; in scroll_event_cb() 36 x = r - res.i; in scroll_event_cb() 43 lv_opa_t opa = lv_map(x, 0, r, LV_OPA_TRANSP, LV_OPA_COVER); in scroll_event_cb()
|
/lvgl-latest/src/libs/thorvg/ |
D | tvgFill.cpp | 39 ret->pImpl->r = r; in duplicate() 48 Result RadialGradient::Impl::radial(float cx, float cy, float r, float fx, float fy, float fr) in radial() argument 50 if (r < 0 || fr < 0) return Result::InvalidArguments; in radial() 54 this->r = r; in radial() 179 Result RadialGradient::radial(float cx, float cy, float r) noexcept in radial() argument 181 return pImpl->radial(cx, cy, r, cx, cy, 0.0f); in radial() 185 Result RadialGradient::radial(float* cx, float* cy, float* r) const noexcept in radial() 189 if (r) *r = pImpl->r; in radial()
|
D | tvgLottieModifier.h | 37 float r; member 39 LottieRoundnessModifier(float r) : r(r) {}; in LottieRoundnessModifier() 43 bool modifyRect(const Point& size, float& r) const;
|
D | tvgLottieModel.cpp | 206 cs.r = (uint8_t)nearbyint((*color.input)[cidx + 1] * 255.0f); in populate() 214 cs.r = (uint8_t)nearbyint((*color.input)[cidx + 1] * 255.0f); in populate() 229 … cs.r = lerp<uint8_t>(output.last().r, (uint8_t)nearbyint((*color.input)[cidx + 1] * 255.0f), p); in populate() 233 cs.r = (uint8_t)nearbyint((*color.input)[cidx + 1] * 255.0f); in populate() 245 cs.r = (uint8_t)nearbyint((*color.input)[cidx + 1] * 255.0f); in populate() 258 cs.r = output.last().r; in populate() 261 } else cs.r = cs.g = cs.b = 255; in populate() 296 auto r = (w > h) ? (w + 0.375f * h) : (h + 0.375f * w); in fill() local 300 P(static_cast<RadialGradient*>(fill))->radial(s.x, s.y, r, s.x, s.y, 0.0f); in fill() 305 auto fx = s.x + cos(angle) * progress * r; in fill() [all …]
|
D | tvgLottieModifier.cpp | 33 …ommand>& cmds, Array<Point>& pts, const Point& prev, const Point& curr, const Point& next, float r) in _roundCorner() argument 36 auto rPrev = lenPrev > 0.0f ? 0.5f * std::min(lenPrev * 0.5f, r) / lenPrev : 0.0f; in _roundCorner() 38 auto rNext = lenNext > 0.0f ? 0.5f * std::min(lenNext * 0.5f, r) / lenNext : 0.0f; in _roundCorner() 202 _roundCorner(outCmds, outPts, prev, curr, inPts[iPts + 5], r); in modifyPath() 206 _roundCorner(outCmds, outPts, prev, curr, inPts[2], r); in modifyPath() 239 … auto r = len > 0.0f ? ROUNDED_POLYSTAR_MAGIC_NUMBER * std::min(len * 0.5f, this->r) / len : 0.0f; in modifyPolystar() local 254 auto dNext = r * (curr - next); in modifyPolystar() 255 auto dPrev = r * (curr - prev); in modifyPolystar() 273 auto dPrev = r * (inPts[1] - inPts[0]); in modifyPolystar() 281 auto dNext = r * (curr - next); in modifyPolystar() [all …]
|
D | tvgSwRaster.cpp | 139 static inline uint32_t _abgrJoin(uint8_t r, uint8_t g, uint8_t b, uint8_t a) in _abgrJoin() argument 141 return (a << 24 | b << 16 | g << 8 | r); in _abgrJoin() 145 static inline uint32_t _argbJoin(uint8_t r, uint8_t g, uint8_t b, uint8_t a) in _argbJoin() argument 147 return (a << 24 | r << 16 | g << 8 | b); in _argbJoin() 330 …MaskedRect(SwSurface* surface, const SwBBox& region, SwMask maskOp, uint8_t r, uint8_t g, uint8_t … in _rasterCompositeMaskedRect() argument 349 …MaskedRect(SwSurface* surface, const SwBBox& region, SwMask maskOp, uint8_t r, uint8_t g, uint8_t … in _rasterDirectMaskedRect() argument 370 static bool _rasterMaskedRect(SwSurface* surface, const SwBBox& region, uint8_t r, uint8_t g, uint8… in _rasterMaskedRect() argument 378 …(surface->compositor->method)) return _rasterDirectMaskedRect(surface, region, maskOp, r, g, b, a); in _rasterMaskedRect() 379 else return _rasterCompositeMaskedRect(surface, region, maskOp, r, g, b, a); in _rasterMaskedRect() 384 static bool _rasterMattedRect(SwSurface* surface, const SwBBox& region, uint8_t r, uint8_t g, uint8… in _rasterMattedRect() argument [all …]
|
D | tvgShape.cpp | 264 Result Shape::fill(uint8_t r, uint8_t g, uint8_t b, uint8_t a) noexcept in fill() argument 272 …if (r == pImpl->rs.color[0] && g == pImpl->rs.color[1] && b == pImpl->rs.color[2] && a == pImpl->r… in fill() 274 pImpl->rs.color[0] = r; in fill() 297 Result Shape::fillColor(uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a) const noexcept in fillColor() argument 299 pImpl->rs.fillColor(r, g, b, a); in fillColor() 331 Result Shape::stroke(uint8_t r, uint8_t g, uint8_t b, uint8_t a) noexcept in stroke() argument 333 pImpl->strokeColor(r, g, b, a); in stroke() 338 Result Shape::strokeColor(uint8_t* r, uint8_t* g, uint8_t* b, uint8_t* a) const noexcept in strokeColor() argument 340 if (!pImpl->rs.strokeColor(r, g, b, a)) return Result::InsufficientCondition; in strokeColor() 420 Result Shape::fill(FillRule r) noexcept in fill() argument [all …]
|
/lvgl-latest/libs/nema_gfx/include/ |
D | nema_raster.h | 53 void nema_raster_rounded_rect(int x0, int y0, int w, int h, int r); 67 void nema_raster_circle(float x, float y, float r); 70 void nema_raster_circle_aa(float x, float y, float r); 73 void nema_raster_stroked_circle_aa(float x, float y, float r, float w); 104 nema_raster_stroked_arc_aa( float x0, float y0, float r, float w, float start_angle, float end_angl… 111 nema_raster_stroked_arc_aa_mask( float x0, float y0, float r, float w, float start_angle, float end…
|
D | nema_provisional.h | 88 void nema_draw_rounded_rect_aa(float x, float y, float w, float h, float r, float border_width, uin… 101 void nema_fill_rounded_rect_aa(float x, float y, float w, float h, float r, uint32_t rgba8888);
|
D | nema_graphics.h | 501 void nema_draw_circle(int x, int y, int r, uint32_t rgba8888); 514 void nema_draw_circle_aa(float x, float y, float r, float w, uint32_t rgba8888); 528 void nema_draw_rounded_rect(int x0, int y0, int w, int h, int r, uint32_t rgba8888); 553 void nema_fill_circle(int x, int y, int r, uint32_t rgba8888); 565 void nema_fill_circle_aa(float x, float y, float r, uint32_t rgba8888); 593 void nema_fill_rounded_rect(int x0, int y0, int w, int h, int r, uint32_t rgba8888); 693 void nema_blit_rounded (int x, int y, int r);
|
/lvgl-latest/src/widgets/arc/ |
D | lv_arc.c | 48 static void get_knob_area(lv_obj_t * arc, const lv_point_t * center, int32_t r, lv_area_t * knob_ar… 469 int32_t r; in lv_arc_event() local 470 get_center(obj, ¢er, &r); in lv_arc_event() 478 r -= indic_width; in lv_arc_event() 482 r -= indic_width; in lv_arc_event() 485 r -= LV_MAX(r / 4, indic_width); in lv_arc_event() 487 if(r < 1) r = 1; in lv_arc_event() 489 if(p.x * p.x + p.y * p.y > r * r) { in lv_arc_event() 516 …const uint32_t circumference = (uint32_t)((2U * r * 314U) / 100U); /* Equivalent to: 2r * 3.14, a… in lv_arc_event() 632 int32_t r = lv_event_get_rotary_diff(e); in lv_arc_event() local [all …]
|
/lvgl-latest/scripts/gen_json/ |
D | get_sdl2.py | 28 with requests.get(url, stream=True) as r: 29 r.raise_for_status() 31 content_length = int(r.headers['Content-Length']) 37 for chunk in r.iter_content(chunk_size=1024):
|
/lvgl-latest/tests/src/test_cases/ |
D | test_array.c | 34 int32_t * r = lv_array_at(&array, 0); in test_array_set_get() local 35 TEST_ASSERT_EQUAL_UINT32(100, *r); in test_array_set_get() 76 uint32_t * r = lv_array_at(&array2, 1); in test_array_copy() local 77 TEST_ASSERT_EQUAL_UINT32(1, *r); in test_array_copy()
|