MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / GetWindowBgColorIdxFromFlags

Function GetWindowBgColorIdxFromFlags

lib/imgui/imgui.cpp:4910–4917  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4908}
4909
4910static ImGuiCol GetWindowBgColorIdxFromFlags(ImGuiWindowFlags flags)
4911{
4912 if (flags & (ImGuiWindowFlags_Tooltip | ImGuiWindowFlags_Popup))
4913 return ImGuiCol_PopupBg;
4914 if (flags & ImGuiWindowFlags_ChildWindow)
4915 return ImGuiCol_ChildBg;
4916 return ImGuiCol_WindowBg;
4917}
4918
4919static void CalcResizePosSizeFromAnyCorner(ImGuiWindow* window, const ImVec2& corner_target, const ImVec2& corner_norm, ImVec2* out_pos, ImVec2* out_size)
4920{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected