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

Function ShowStyleSelector

src/external/imgui/implot.cpp:4876–4891  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4874}
4875
4876bool ShowStyleSelector(const char* label)
4877{
4878 static int style_idx = -1;
4879 if (ImGui::Combo(label, &style_idx, "Auto\0Classic\0Dark\0Light\0"))
4880 {
4881 switch (style_idx)
4882 {
4883 case 0: StyleColorsAuto(); break;
4884 case 1: StyleColorsClassic(); break;
4885 case 2: StyleColorsDark(); break;
4886 case 3: StyleColorsLight(); break;
4887 }
4888 return true;
4889 }
4890 return false;
4891}
4892
4893bool ShowColormapSelector(const char* label) {
4894 ImPlotContext& gp = *GImPlot;

Callers 2

ShowStyleEditorFunction · 0.85
ShowStyleEditorMethod · 0.85

Calls 4

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

Tested by

no test coverage detected