subsurface/stats/statsgrid.h

24 lines
511 B
C
Raw Normal View History

// SPDX-License-Identifier: GPL-2.0
// The background grid of a chart
#include "statshelper.h"
#include <memory>
#include <vector>
class StatsAxis;
class StatsTheme;
class StatsView;
class ChartLineItem;
class StatsGrid {
public:
StatsGrid(StatsView &view, const StatsAxis &xAxis, const StatsAxis &yAxis);
void updatePositions();
private:
StatsView &view;
const StatsTheme &theme; // Initialized once in constructor.
const StatsAxis &xAxis, &yAxis;
std::vector<ChartItemPtr<ChartLineItem>> lines;
};