MCPcopy Create free account
hub / github.com/cinder/Cinder / PathLineToMergeDuplicate

Method PathLineToMergeDuplicate

include/imgui/imgui.h:3319–3319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3317 inline void PathClear() { _Path.Size = 0; }
3318 inline void PathLineTo(const ImVec2& pos) { _Path.push_back(pos); }
3319 inline void PathLineToMergeDuplicate(const ImVec2& pos) { if (_Path.Size == 0 || memcmp(&_Path.Data[_Path.Size - 1], &pos, 8) != 0) _Path.push_back(pos); }
3320 inline void PathFillConvex(ImU32 col) { AddConvexPolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; }
3321 inline void PathFillConcave(ImU32 col) { AddConcavePolyFilled(_Path.Data, _Path.Size, col); _Path.Size = 0; }
3322 inline void PathStroke(ImU32 col, ImDrawFlags flags = 0, float thickness = 1.0f) { AddPolyline(_Path.Data, _Path.Size, col, flags, thickness); _Path.Size = 0; }

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected