| 2400 | |
| 2401 | template <typename T> |
| 2402 | void PlotBars(const char* label_id, const T* values, int count, double bar_size, double shift, const ImPlotSpec& spec) { |
| 2403 | if (ImHasFlag(spec.Flags, ImPlotBarsFlags_Horizontal)) { |
| 2404 | GetterXY<IndexerIdx<T>,IndexerLin> getter1(IndexerIdx<T>(values,count,spec.Offset,Stride<T>(spec)),IndexerLin(1.0,shift),count); |
| 2405 | GetterXY<IndexerConst,IndexerLin> getter2(IndexerConst(0),IndexerLin(1.0,shift),count); |
| 2406 | PlotBarsHEx(label_id, getter1, getter2, bar_size, spec); |
| 2407 | } |
| 2408 | else { |
| 2409 | GetterXY<IndexerLin,IndexerIdx<T>> getter1(IndexerLin(1.0,shift),IndexerIdx<T>(values,count,spec.Offset,Stride<T>(spec)),count); |
| 2410 | GetterXY<IndexerLin,IndexerConst> getter2(IndexerLin(1.0,shift),IndexerConst(0),count); |
| 2411 | PlotBarsVEx(label_id, getter1, getter2, bar_size, spec); |
| 2412 | } |
| 2413 | } |
| 2414 | |
| 2415 | template <typename T> |
| 2416 | void PlotBars(const char* label_id, const T* xs, const T* ys, int count, double bar_size, const ImPlotSpec& spec) { |
no test coverage detected