MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / GetWindowBgColorIdx

Function GetWindowBgColorIdx

KBotExt/imgui/imgui.cpp:5702–5709  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5700}
5701
5702static ImGuiCol GetWindowBgColorIdx(ImGuiWindow* window)
5703{
5704 if (window->Flags & (ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_Popup))
5705 return ImGuiCol_PopupBg;
5706 if (window->Flags & ImGuiWindowFlags_ChildWindow)
5707 return ImGuiCol_ChildBg;
5708 return ImGuiCol_WindowBg;
5709}
5710
5711static void CalcResizePosSizeFromAnyCorner(ImGuiWindow* window, const ImVec2& corner_target, const ImVec2& corner_norm, ImVec2* out_pos, ImVec2* out_size)
5712{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected