MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / GetWindowBgColorIdx

Function GetWindowBgColorIdx

extern/imgui/imgui.cpp:6176–6183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6174}
6175
6176static ImGuiCol GetWindowBgColorIdx(ImGuiWindow* window)
6177{
6178 if (window->Flags & (ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_Popup))
6179 return ImGuiCol_PopupBg;
6180 if ((window->Flags & ImGuiWindowFlags_ChildWindow) && !window->DockIsActive)
6181 return ImGuiCol_ChildBg;
6182 return ImGuiCol_WindowBg;
6183}
6184
6185static void CalcResizePosSizeFromAnyCorner(ImGuiWindow* window, const ImVec2& corner_target, const ImVec2& corner_norm, ImVec2* out_pos, ImVec2* out_size)
6186{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected