Lines Matching refs:start
60 const Point& start,
74 if (start.y < end.y) {
75 yTop = start.y - width / 2; // 2: half
79 yBottom = start.y + width / 2; // 2: half
86 if (start.y == end.y) {
87 DrawHorizontalLine(gfxDstBuffer, start, end, mask, width, color, opacity);
88 } else if (start.x == end.x) {
89 DrawVerticalLine(gfxDstBuffer, start, end, mask, width, color, opacity);
91 DrawWuLine(gfxDstBuffer, start, end, mask, width, color, opacity);
96 const Point& start,
105 if (start.y < end.y) {
106 rect.SetX(start.x - width / 2); // 2: half
107 rect.SetY(start.y);
109 rect.SetHeight(end.y - start.y + 1);
114 rect.SetHeight(start.y - end.y + 1);
120 void DrawLine::DrawHorizontalLine(BufferInfo& gfxDstBuffer, const Point& start,
129 if (start.x < end.x) {
130 rect.SetX(start.x);
131 rect.SetY(start.y - width / 2); // 2: half
132 rect.SetWidth(end.x - start.x + 1);
137 rect.SetWidth(start.x - end.x + 1);
144 void DrawLine::DrawWuLine(BufferInfo& gfxDstBuffer, const Point& start, const Point& end,
148 DrawThinWuLine(gfxDstBuffer, start, end, mask, width, color, opacity);
152 int16_t sx = start.x;
153 int16_t sy = start.y;
181 // width is longer than distance between start point and end point, need swap direction of line.
440 void DrawLine::DrawThinWuLine(BufferInfo& gfxDstBuffer, const Point& start, const Point& end,
443 int16_t sx = start.x;
444 int16_t sy = start.y;