| 617 | } |
| 618 | |
| 619 | int 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 | |
| 628 | bool ShowLegendEntries(ImPlotItemGroup& items, const ImRect& legend_bb, bool hovered, const ImVec2& pad, const ImVec2& spacing, bool vertical, ImDrawList& DrawList) { |
| 629 | // vars |
nothing calls this directly
no test coverage detected