5#ifndef INCLUDE_FIFECHAN_WIDGETS_POINTGRAPH_HPP_
6#define INCLUDE_FIFECHAN_WIDGETS_POINTGRAPH_HPP_
8#include "fifechan/point.hpp"
9#include "fifechan/widget.hpp"
Abstract interface providing primitive drawing functions (lines, rectangles, etc.).
unsigned int m_thickness
Line thickness in pixels.
PointVector m_data
The point data used to draw the graph.
PointGraph()
Default constructor.
unsigned int getThickness() const
Get the thickness of the lines drawn between points.
void draw(Graphics *graphics) override
Draws this widget.
PointVector const & getPointVector() const
void setOpaque(bool opaque)
Sets the opacity of the graph.
void resetPointVector()
Resets the data to draw.
bool m_opaque
True if the graph is drawn opaque.
void setThickness(unsigned int thickness)
Set the thickness of the lines drawn between points.
void setPointVector(PointVector const &data)
Sets the data to draw.