MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / IMGUI_CDECL TabItemComparerBySection

Function IMGUI_CDECL TabItemComparerBySection

KBotExt/imgui/imgui_widgets.cpp:7506–7515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7504}
7505
7506static int IMGUI_CDECL TabItemComparerBySection(const void* lhs, const void* rhs)
7507{
7508 const ImGuiTabItem* a = (const ImGuiTabItem*)lhs;
7509 const ImGuiTabItem* b = (const ImGuiTabItem*)rhs;
7510 const int a_section = TabItemGetSectionIdx(a);
7511 const int b_section = TabItemGetSectionIdx(b);
7512 if (a_section != b_section)
7513 return a_section - b_section;
7514 return (int)(a->IndexDuringLayout - b->IndexDuringLayout);
7515}
7516
7517static int IMGUI_CDECL TabItemComparerByBeginOrder(const void* lhs, const void* rhs)
7518{

Callers

nothing calls this directly

Calls 1

TabItemGetSectionIdxFunction · 0.85

Tested by

no test coverage detected