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