Home
last modified time | relevance | path

Searched refs:linePoints (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/src/
H A Dpath_test.cpp133 std::vector<Point> linePoints; in TestLineTo() local
135 linePoints.emplace_back(Point(rect.GetLeft() + rect.GetWidth() / 4.0f, rect.GetTop())); in TestLineTo()
137 linePoints.emplace_back(Point(rect.GetLeft() + rect.GetWidth() / 4.0f, rect.GetBottom())); in TestLineTo()
139 linePoints.emplace_back(Point(rect.GetRight() - rect.GetWidth() / 4.0f, rect.GetTop())); in TestLineTo()
141 linePoints.emplace_back(Point(rect.GetRight() - rect.GetWidth() / 4.0f, rect.GetBottom())); in TestLineTo()
142 linePoints.emplace_back(Point(rect.GetLeft(), rect.GetTop() + rect.GetHeight() / 4.0f)); in TestLineTo()
143 linePoints.emplace_back(Point(rect.GetRight(), rect.GetTop() + rect.GetHeight() / 4.0f)); in TestLineTo()
144 linePoints.emplace_back(Point(rect.GetLeft(), rect.GetBottom() - rect.GetHeight() / 4.0f)); in TestLineTo()
149 for (size_t i = 0; i < linePoints.size(); i += 2) { in TestLineTo()
150 path.MoveTo(linePoints.at(i).GetX(), linePoints.at(i).GetY()); in TestLineTo()
[all …]
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/
H A Dui_chart.cpp797 const ChartLine& linePoints, in DrawGradientColor() argument
808 int16_t y = enableReverse_ ? (linePoints.start.y + startY) : (startY - linePoints.start.y); in DrawGradientColor()
827 if (tmpY == linePoints.start.y) { in DrawGradientColor()
836 FindCrossPoints(linePoints, polyLine, cross); in DrawGradientColor()
911 ChartLine linePoints = {{0}}; in GradientColor() local
912 linePoints.start.x = limitPoints.start.x; in GradientColor()
913 linePoints.end.x = limitPoints.end.x; in GradientColor()
917 linePoints.start.y = enableReverse_ ? (y - endY) : (startY - y); in GradientColor()
918 linePoints.end.y = linePoints.start.y; in GradientColor()
921 DrawGradientColor(gfxDstBuffer, invalidatedArea, data, linePoints, limitPoints, baseY); in GradientColor()
[all …]
/ohos5.0/foundation/arkui/ui_lite/interfaces/kits/components/
H A Dui_chart.h899 const ChartLine& linePoints,