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

Function ShowStyleSelector

Source/3rdParty/implot/implot.cpp:4956–4971  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4954}
4955
4956bool ShowStyleSelector(const char* label)
4957{
4958 static int style_idx = -1;
4959 if (ImGui::Combo(label, &style_idx, "Auto\0Classic\0Dark\0Light\0"))
4960 {
4961 switch (style_idx)
4962 {
4963 case 0: StyleColorsAuto(); break;
4964 case 1: StyleColorsClassic(); break;
4965 case 2: StyleColorsDark(); break;
4966 case 3: StyleColorsLight(); break;
4967 }
4968 return true;
4969 }
4970 return false;
4971}
4972
4973bool ShowColormapSelector(const char* label) {
4974 ImPlotContext& gp = *GImPlot;

Callers 3

ShowStyleEditorMethod · 0.85
Demo_ConfigFunction · 0.85
ShowStyleEditorFunction · 0.85

Calls 5

ComboFunction · 0.85
StyleColorsAutoFunction · 0.85
StyleColorsClassicFunction · 0.85
StyleColorsDarkFunction · 0.85
StyleColorsLightFunction · 0.85

Tested by

no test coverage detected