| 1123 | // Stateful path API, add points then finish with PathFill() or PathStroke() |
| 1124 | inline void PathClear() { _Path.resize(0); } |
| 1125 | inline void PathLineTo(const ImVec2& pos) { _Path.push_back(pos); } |
| 1126 | inline void PathLineToMergeDuplicate(const ImVec2& pos) { if (_Path.Size == 0 || _Path[_Path.Size-1].x != pos.x || _Path[_Path.Size-1].y != pos.y) _Path.push_back(pos); } |
| 1127 | inline void PathFill(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col, true); PathClear(); } |
| 1128 | inline void PathStroke(ImU32 col, bool closed, float thickness = 1.0f) { AddPolyline(_Path.Data, _Path.Size, col, closed, thickness, true); PathClear(); } |