MCPcopy Create free account
hub / github.com/IppClub/Dora-SSR / PushStyleColor

Function PushStyleColor

Source/3rdParty/implot/implot.cpp:4458–4465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4456}
4457
4458void PushStyleColor(ImPlotCol idx, ImU32 col) {
4459 ImPlotContext& gp = *GImPlot;
4460 ImGuiColorMod backup;
4461 backup.Col = (ImGuiCol)idx;
4462 backup.BackupValue = gp.Style.Colors[idx];
4463 gp.ColorModifiers.push_back(backup);
4464 gp.Style.Colors[idx] = ImGui::ColorConvertU32ToFloat4(col);
4465}
4466
4467void PushStyleColor(ImPlotCol idx, const ImVec4& col) {
4468 ImPlotContext& gp = *GImPlot;

Callers 15

Demo_MarkersAndTextFunction · 0.70
Demo_DragRectsFunction · 0.70
Demo_DragAndDropFunction · 0.70
ShowDemoWindowFunction · 0.70
BeginSubplotsFunction · 0.70
ColormapSliderFunction · 0.70
ColormapButtonFunction · 0.70
ShowMetricsWindowFunction · 0.70
ShowDatePickerFunction · 0.70
ShowTimePickerFunction · 0.70
TableHeaderMethod · 0.50

Calls 1

push_backMethod · 0.45

Tested by

no test coverage detected