MCPcopy Create free account
hub / github.com/brenocq/implot3d / ShowStyleSelector

Function ShowStyleSelector

implot3d.cpp:3017–3029  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3015}
3016
3017bool ShowStyleSelector(const char* label) {
3018 static int style_idx = -1;
3019 if (ImGui::Combo(label, &style_idx, "Auto\0Classic\0Dark\0Light\0")) {
3020 switch (style_idx) {
3021 case 0: StyleColorsAuto(); break;
3022 case 1: StyleColorsClassic(); break;
3023 case 2: StyleColorsDark(); break;
3024 case 3: StyleColorsLight(); break;
3025 }
3026 return true;
3027 }
3028 return false;
3029}
3030
3031bool ShowColormapSelector(const char* label) {
3032 ImPlot3DContext& gp = *GImPlot3D;

Callers 2

DemoConfigFunction · 0.85
ShowStyleEditorFunction · 0.85

Calls 4

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

Tested by

no test coverage detected