MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / Color

Function Color

Externals/imgui-1.46/Include/imgui_internal.h:632–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

630 float MenuBarHeight() const { return (Flags & ImGuiWindowFlags_MenuBar) ? CalcFontSize() + GImGui->Style.FramePadding.y * 2.0f : 0.0f; }
631 ImRect MenuBarRect() const { float y1 = Pos.y + TitleBarHeight(); return ImRect(Pos.x, y1, Pos.x + SizeFull.x, y1 + MenuBarHeight()); }
632 ImU32 Color(ImGuiCol idx, float a=1.f) const { ImVec4 c = GImGui->Style.Colors[idx]; c.w *= GImGui->Style.Alpha * a; return ImGui::ColorConvertFloat4ToU32(c); }
633 ImU32 Color(const ImVec4& col) const { ImVec4 c = col; c.w *= GImGui->Style.Alpha; return ImGui::ColorConvertFloat4ToU32(c); }
634};
635

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected