MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / PathLineTo

Method PathLineTo

Externals/imgui-1.46/Include/imgui.h:1125–1125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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(); }

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected