MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / PathStroke

Method PathStroke

plugins/Cardinal/src/DearImGui/imgui.h:2466–2466  ·  view source on GitHub ↗

Note: Anti-aliased filling requires points to be in clockwise order.

Source from the content-addressed store, hash-verified

2464 inline void PathLineToMergeDuplicate(const ImVec2& pos) { if (_Path.Size == 0 || memcmp(&_Path.Data[_Path.Size - 1], &pos, 8) != 0) _Path.push_back(pos); }
2465 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.
2466 inline void PathStroke(ImU32 col, ImDrawFlags flags = 0, float thickness = 1.0f) { AddPolyline(_Path.Data, _Path.Size, col, flags, thickness); _Path.Size = 0; }
2467 IMGUI_API void PathArcTo(const ImVec2& center, float radius, float a_min, float a_max, int num_segments = 0);
2468 IMGUI_API void PathArcToFast(const ImVec2& center, float radius, int a_min_of_12, int a_max_of_12); // Use precomputed angles for a 12 steps circle
2469 IMGUI_API void PathBezierCubicCurveTo(const ImVec2& p2, const ImVec2& p3, const ImVec2& p4, int num_segments = 0); // Cubic Bezier (4 control points)

Callers 4

RenderCheckMarkMethod · 0.80
ColorPicker4Method · 0.80
TabItemBackgroundMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected