Home
last modified time | relevance | path

Searched refs:Point (Results 1 – 25 of 35) sorted by relevance

12

/lvgl-latest/src/libs/thorvg/
DtvgMath.h176 void operator*=(Point& pt, const Matrix& m);
177 Point operator*(const Point& pt, const Matrix& m);
178 Point normal(const Point& p1, const Point& p2);
180 static inline float cross(const Point& lhs, const Point& rhs) in cross()
186 static inline bool zero(const Point& p) in zero()
192 static inline float length(const Point* a, const Point* b) in length()
204 static inline float length(const Point& a) in length()
210 static inline bool operator==(const Point& lhs, const Point& rhs)
216 static inline bool operator!=(const Point& lhs, const Point& rhs)
222 static inline Point operator-(const Point& lhs, const Point& rhs)
[all …]
DtvgLottieModifier.h41 …mand* inCmds, uint32_t inCmdsCnt, const Point* inPts, uint32_t inPtsCnt, Array<PathCommand>& outCm…
42 …ar(const Array<PathCommand>& inCmds, const Array<Point>& inPts, Array<PathCommand>& outCmds, Array…
43 bool modifyRect(const Point& size, float& r) const;
55 …mand* inCmds, uint32_t inCmdsCnt, const Point* inPts, uint32_t inPtsCnt, Array<PathCommand>& outCm…
56 …ar(const Array<PathCommand>& inCmds, const Array<Point>& inPts, Array<PathCommand>& outCmds, Array…
57 …mand* inCmds, uint32_t inCmdsCnt, const Point* inPts, uint32_t inPtsCnt, Array<PathCommand>& outCm…
70 …mdsCnt, const Point* inPts, uint32_t& currentPt, uint32_t currentCmd, State& state, bool degenerat…
71 …nextLine, uint32_t movetoIndex, bool nextClose, Array<PathCommand>& cmds, Array<Point>& pts) const;
DtvgSvgPath.cpp103 void _pathAppendArcTo(Array<PathCommand>* cmds, Array<Point>* pts, Point* cur, Point* curCtl, float… in _pathAppendArcTo()
238 Point p[3]; in _pathAppendArcTo()
317 …mand(Array<PathCommand>* cmds, Array<Point>* pts, char cmd, float* arr, int count, Point* cur, Poi… in _processCommand()
353 Point p = {arr[0], arr[1]}; in _processCommand()
362 Point p = {arr[0], arr[1]}; in _processCommand()
370 Point p[3]; in _processCommand()
385 Point p[3], ctrl; in _processCommand()
407 Point p[3]; in _processCommand()
426 Point p[3], ctrl; in _processCommand()
452 Point p = {arr[0], cur->y}; in _processCommand()
[all …]
DtvgLottieModifier.cpp33 …_roundCorner(Array<PathCommand>& cmds, Array<Point>& pts, const Point& prev, const Point& curr, co… in _roundCorner()
52 static bool _zero(const Point& p1, const Point& p2) in _zero()
59 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()
89 static bool _clockwise(const Point* pts, uint32_t n) in _clockwise()
102 …, uint32_t movetoOutIndex, bool nextClose, Array<PathCommand>& outCmds, Array<Point>& outPts) const in corner()
105 Point intersect{}; in corner()
133 …sCnt, const Point* inPts, uint32_t& currentPt, uint32_t currentCmd, State& state, bool degenerated… in line()
178 …mand* inCmds, uint32_t inCmdsCnt, const Point* inPts, uint32_t inPtsCnt, Array<PathCommand>& outCm… in modifyPath()
234 …ED const Array<PathCommand>& inCmds, const Array<Point>& inPts, Array<PathCommand>& outCmds, Array… in modifyPolystar()
[all …]
DtvgLottieInterpolator.h34 Point outTangent, inTangent;
37 void set(const char* key, Point& inTangent, Point& outTangent);
DtvgLottieParser.h55 LottieInterpolator* getInterpolator(const char* key, Point& in, Point& out);
58 void getInterpolatorPoint(Point& pt);
63 void getValue(Array<Point>& pts);
69 bool getValue(Point& pt);
DtvgLottieCommon.h35 Point* pts = nullptr;
62 Point pos;
63 Point size;
DtvgMath.cpp35 static float _lineLengthApprox(const Point& pt1, const Point& pt2) in _lineLengthApprox()
40 Point diff = {pt2.x - pt1.x, pt2.y - pt1.y}; in _lineLengthApprox()
47 static float _lineLength(const Point& pt1, const Point& pt2) in _lineLength()
49 Point diff = {pt2.x - pt1.x, pt2.y - pt1.y}; in _lineLength()
200 void operator*=(Point& pt, const Matrix& m) in operator *=()
209 Point operator*(const Point& pt, const Matrix& m) in operator *()
217 Point normal(const Point& p1, const Point& p2) in normal()
325 Point Bezier::at(float t) const in at()
327 Point cur; in at()
361Point pt ={a * start.x + b * ctrl1.x + c * ctrl2.x + d * end.x, a * start.y + b * ctrl1.y + c * ct… in angle()
DtvgLottieProperty.h96 Point dp = next->value - value; in angle()
118 …enum class Type : uint8_t { Point = 0, Float, Opacity, Color, PathSet, ColorStop, Position, TextDo… enumerator
156 static void _copy(PathSet* pathset, Array<Point>& outPts, Matrix* transform) in _copy()
158 Array<Point> inPts; in _copy()
162 Point pt = pathset->pts[i]; in _copy()
414 …bool operator()(float frameNo, Array<PathCommand>& cmds, Array<Point>& pts, Matrix* transform, con… in operator()
442 Array<Point> pts1(path->ptsCnt); in operator()
468 auto interpPts = (Point*)malloc(frame->value.ptsCnt * sizeof(Point)); in operator()
478 Array<Point> pts1; in operator()
490 …bool operator()(float frameNo, Array<PathCommand>& cmds, Array<Point>& pts, Matrix* transform, con… in operator()
[all …]
DtvgSwShape.cpp54 static bool _outlineMoveTo(SwOutline& outline, const Point* to, const Matrix& transform, bool close… in _outlineMoveTo()
65 static void _outlineLineTo(SwOutline& outline, const Point* to, const Matrix& transform) in _outlineLineTo()
72 static void _outlineCubicTo(SwOutline& outline, const Point* ctrl1, const Point* ctrl2, const Point in _outlineCubicTo()
104 static void _dashLineTo(SwDashStroke& dash, const Point* to, const Matrix& transform) in _dashLineTo()
165 static void _dashCubicTo(SwDashStroke& dash, const Point* ctrl1, const Point* ctrl2, const Point* t… in _dashCubicTo()
232 static void _dashMoveTo(SwDashStroke& dash, const Point* pts) in _dashMoveTo()
240 static void _dashMoveTo(SwDashStroke& dash, uint32_t offIdx, float offset, const Point* pts) in _dashMoveTo()
282 const Point* pts = rshape->path.pts.data + shiftPts; in _outlineLength()
288 const Point* close = nullptr; in _outlineLength()
333 const Point* pts = rshape->path.pts.data; in _genDashOutline()
[all …]
DtvgLottieModel.h189 LottiePosition position = Point{0, 0};
190 LottiePoint scale = Point{100, 100};
386 LottiePosition position = Point{0.0f, 0.0f};
387 LottiePoint size = Point{0.0f, 0.0f};
413 LottiePosition position = Point{0.0f, 0.0f};
438 LottiePosition position = Point{0.0f, 0.0f};
439 LottiePoint size = Point{0.0f, 0.0f};
490 LottiePosition position = Point{0.0f, 0.0f};
492 LottiePoint scale = Point{100.0f, 100.0f};
493 LottiePoint anchor = Point{0.0f, 0.0f};
[all …]
DtvgLottieExpressions.h62 bool result(float frameNo, Point& out, LottieExpression* exp) in result()
118 …bool result(float frameNo, Array<PathCommand>& cmds, Array<Point>& pts, Matrix* transform, const L… in result()
160 …template<typename Property> bool result(TVG_UNUSED float, TVG_UNUSED Point&, LottieExpression*) { … in result()
163 …result(TVG_UNUSED float, TVG_UNUSED Array<PathCommand>&, TVG_UNUSED Array<Point>&, TVG_UNUSED Matr… in result()
DtvgLottieBuilder.h43 Point position;
44 Point anchor;
45 Point scale;
DtvgLottieParser.cpp185 Array<Point> outs, ins, pts; in getValue()
215 Array<Point> outPts; in getValue()
267 void LottieParser::getValue(Array<Point>& pts) in getValue()
272 Point pt; in getValue()
318 bool LottieParser::getValue(Point& pt) in getValue()
352 void LottieParser::getInterpolatorPoint(Point& pt) in getInterpolatorPoint()
391 LottieInterpolator* LottieParser::getInterpolator(const char* key, Point& in, Point& out) in getInterpolator()
421 Point inTangent, outTangent; in parseKeyFrame()
548 else if (KEY_AS("s")) parseProperty<LottieProperty::Type::Point>(rect->size); in parseRect()
568 else if (KEY_AS("s")) parseProperty<LottieProperty::Type::Point>(ellipse->size); in parseEllipse()
[all …]
DtvgLottieInterpolator.cpp131 void LottieInterpolator::set(const char* key, Point& inTangent, Point& outTangent) in set()
DtvgShape.cpp85 uint32_t Shape::pathCoords(const Point** pts) const noexcept in pathCoords()
92 Result Shape::appendPath(const PathCommand *cmds, uint32_t cmdCnt, const Point* pts, uint32_t ptsCn… in appendPath()
178 Point start = {radius * cosf(startAngle), radius * sinf(startAngle)}; in appendArc()
189 Point end = {radius * cosf(endAngle), radius * sinf(endAngle)}; in appendArc()
208 Point ctrl1 = {ax - k2 * ay + cx, ay + k2 * ax + cy}; in appendArc()
209 Point ctrl2 = {bx + k2 * by + cx, by - k2 * bx + cy}; in appendArc()
DtvgPaint.cpp47 static Result _clipRect(RenderMethod* renderer, const Point* pts, const Matrix& pm, const Matrix& r… in _clipRect()
50 Point tmp[4]; in _clipRect()
51 Point min = {FLT_MAX, FLT_MAX}; in _clipRect()
52 Point max = {0.0f, 0.0f}; in _clipRect()
85 const Point* pts; in _compFastTrack()
333 Point pt[4] = {{tx, ty}, {tx + tw, ty}, {tx + tw, ty + th}, {tx, ty + th}}; in bounds()
DtvgCommon.h62 using Size = Point;
DtvgShape.h133 Point min = { pts->x, pts->y }; in bounds()
134 Point max = { pts->x, pts->y }; in bounds()
175 void append(const PathCommand* cmds, uint32_t cmdCnt, const Point* pts, uint32_t ptsCnt) in append()
178 memcpy(rs.path.pts.end(), pts, sizeof(Point) * ptsCnt); in append()
DtvgLottieBuilder.cpp395 Point points[4]; in _appendRect()
428 Point points[ptsCnt]; in _appendRect()
513 Point points[ptsCnt]; in _appendCircle()
631 Point in = {x, y}; in _updateStar()
673 Point in2 = {previousX - cp1x, previousY - cp1y}; in _updateStar()
674 Point in3 = {x + cp2x, y + cp2y}; in _updateStar()
675 Point in4 = {x, y}; in _updateStar()
683 Point in = {x, y}; in _updateStar()
737 Point in = {x, y}; in _updatePolygon()
760 Point in2 = {previousX - cp1x, previousY - cp1y}; in _updatePolygon()
[all …]
DtvgSwImage.cpp50 Point to[4]; in _genOutline()
DtvgLottieExpressions.cpp115 case LottieProperty::Type::Point: { in _value()
452 Point pt1 = {(float)jerry_value_as_number(val1), (float)jerry_value_as_number(val2)}; in _interp()
453 Point pt2 = {(float)jerry_value_as_number(val3), (float)jerry_value_as_number(val4)}; in _interp()
454 Point ret; in _interp()
767 case LottieProperty::Type::Point: { in _velocityAtTime()
799 Point cur, prv; in _speedAtTime()
803 case LottieProperty::Type::Point: { in _speedAtTime()
944 …} else if (exp->property->type == LottieProperty::Type::Point || exp->property->type == LottieProp… in _key()
Dthorvg.h271 struct Point struct
992 …Result appendPath(const PathCommand* cmds, uint32_t cmdCnt, const Point* pts, uint32_t ptsCnt) noe…
1135 uint32_t pathCoords(const Point** pts) const noexcept;
DtvgSwMath.cpp164 Point v = pt.toPoint(); in mathRotate()
269 SwPoint mathTransform(const Point* to, const Matrix& transform) in mathTransform()
/lvgl-latest/src/drivers/windows/
Dlv_windows_input.c364 POINT Point; in lv_windows_pointer_device_window_message_handler() local
365 Point.x = TOUCH_COORD_TO_PIXEL(inputs[i].x); in lv_windows_pointer_device_window_message_handler()
366 Point.y = TOUCH_COORD_TO_PIXEL(inputs[i].y); in lv_windows_pointer_device_window_message_handler()
367 if(!ScreenToClient(hWnd, &Point)) { in lv_windows_pointer_device_window_message_handler()
372 Point.x, in lv_windows_pointer_device_window_message_handler()
375 Point.y, in lv_windows_pointer_device_window_message_handler()

12