MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / PushStyleColor

Method PushStyleColor

include/imgui/imgui.cpp:3607–3616  ·  view source on GitHub ↗

FIXME: This may incur a round-trip (if the end user got their data from a float4) but eventually we aim to store the in-flight colors as ImU32

Source from the content-addressed store, hash-verified

3605
3606// FIXME: This may incur a round-trip (if the end user got their data from a float4) but eventually we aim to store the in-flight colors as ImU32
3607void ImGui::PushStyleColor(ImGuiCol idx, ImU32 col)
3608{
3609 ImGuiContext& g = *GImGui;
3610 ImGuiColorMod backup;
3611 backup.Col = idx;
3612 backup.BackupValue = g.Style.Colors[idx];
3613 g.ColorStack.push_back(backup);
3614 if (g.DebugFlashStyleColorIdx != idx)
3615 g.Style.Colors[idx] = ColorConvertU32ToFloat4(col);
3616}
3617
3618void ImGui::PushStyleColor(ImGuiCol idx, const ImVec4& col)
3619{

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected