MCPcopy Create free account
hub / github.com/MrDrElliot/LuminaEngine / LegendSortingComp

Function LegendSortingComp

Engine/Source/ThirdParty/imgui/implot.cpp:619–626  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

617}
618
619int LegendSortingComp(const void* _a, const void* _b) {
620 ImPlotItemGroup* items = GImPlot->SortItems;
621 const int a = *(const int*)_a;
622 const int b = *(const int*)_b;
623 const char* label_a = items->GetLegendLabel(a);
624 const char* label_b = items->GetLegendLabel(b);
625 return strcmp(label_a,label_b);
626}
627
628bool ShowLegendEntries(ImPlotItemGroup& items, const ImRect& legend_bb, bool hovered, const ImVec2& pad, const ImVec2& spacing, bool vertical, ImDrawList& DrawList) {
629 // vars

Callers

nothing calls this directly

Calls 1

GetLegendLabelMethod · 0.80

Tested by

no test coverage detected