MCPcopy Create free account
hub / github.com/clementgallet/libTAS / PushStyleColor

Function PushStyleColor

src/external/imgui/implot.cpp:4386–4393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4384}
4385
4386void PushStyleColor(ImPlotCol idx, ImU32 col) {
4387 ImPlotContext& gp = *GImPlot;
4388 ImGuiColorMod backup;
4389 backup.Col = (ImGuiCol)idx;
4390 backup.BackupValue = gp.Style.Colors[idx];
4391 gp.ColorModifiers.push_back(backup);
4392 gp.Style.Colors[idx] = ImGui::ColorConvertU32ToFloat4(col);
4393}
4394
4395void PushStyleColor(ImPlotCol idx, const ImVec4& col) {
4396 ImPlotContext& gp = *GImPlot;

Callers 15

renderFrameMethod · 0.85
renderNodeMethod · 0.85
drawAllMethod · 0.85
drawMethod · 0.85
TableHeaderMethod · 0.85
DebugNodeTableMethod · 0.85
BeginSubplotsFunction · 0.85
ColormapSliderFunction · 0.85
ColormapButtonFunction · 0.85
ShowMetricsWindowFunction · 0.85
ShowDatePickerFunction · 0.85
ShowTimePickerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected