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

Function Demo_Config

Source/3rdParty/implot/implot_demo.cpp:278–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278void Demo_Config() {
279 IMGUI_DEMO_MARKER("Config");
280 ImGui::ShowFontSelector("Font");
281 ImGui::ShowStyleSelector("ImGui Style");
282 ImPlot::ShowStyleSelector("ImPlot Style");
283 ImPlot::ShowColormapSelector("ImPlot Colormap");
284 ImPlot::ShowInputMapSelector("Input Map");
285 ImGui::Separator();
286 ImGui::Checkbox("Use Local Time", &ImPlot::GetStyle().UseLocalTime);
287 ImGui::Checkbox("Use ISO 8601", &ImPlot::GetStyle().UseISO8601);
288 ImGui::Checkbox("Use 24 Hour Clock", &ImPlot::GetStyle().Use24HourClock);
289 ImGui::Separator();
290 if (ImPlot::BeginPlot("Preview")) {
291 static double now = (double)time(nullptr);
292 ImPlot::SetupAxisScale(ImAxis_X1, ImPlotScale_Time);
293 ImPlot::SetupAxisLimits(ImAxis_X1, now, now + 24*3600);
294 for (int i = 0; i < 10; ++i) {
295 double x[2] = {now, now + 24*3600};
296 double y[2] = {0,i/9.0};
297 ImGui::PushID(i);
298 ImPlot::PlotLine("##Line",x,y,2);
299 ImGui::PopID();
300 }
301 ImPlot::EndPlot();
302 }
303}
304
305//-----------------------------------------------------------------------------
306

Callers 1

ShowDemoWindowFunction · 0.85

Calls 12

ShowStyleSelectorFunction · 0.85
ShowColormapSelectorFunction · 0.85
ShowInputMapSelectorFunction · 0.85
SeparatorFunction · 0.85
CheckboxFunction · 0.85
BeginPlotFunction · 0.85
timeFunction · 0.85
SetupAxisScaleFunction · 0.85
SetupAxisLimitsFunction · 0.85
PushIDFunction · 0.85
PlotLineFunction · 0.85
EndPlotFunction · 0.85

Tested by

no test coverage detected