| 1977 | // Stateful path API, add points then finish with PathFillConvex() or PathStroke() |
| 1978 | inline void PathClear() { _Path.Size = 0; } |
| 1979 | inline void PathLineTo(const ImVec2& pos) { _Path.push_back(pos); } |
| 1980 | inline void PathLineToMergeDuplicate(const ImVec2& pos) { if (_Path.Size == 0 || memcmp(&_Path.Data[_Path.Size-1], &pos, 8) != 0) _Path.push_back(pos); } |
| 1981 | inline void PathFillConvex(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; } // Note: Anti-aliased filling requires points to be in clockwise order. |
| 1982 | inline void PathStroke(ImU32 col, bool closed, float thickness = 1.0f) { AddPolyline(_Path.Data, _Path.Size, col, closed, thickness); _Path.Size = 0; } |
no test coverage detected