creativity
v1.3.0
Agent-based model of creativity and piracy
|
Style class for a drawn line. More...
#include <creativity/data/graph/style.hpp>
Public Member Functions | |
LineStyle (RGBA rgba, double thickness=1.0, double length=std::numeric_limits< double >::quiet_NaN()) | |
Constructs a line style directly from an Gdk::RGBA object. More... | |
void | applyTo (Cairo::RefPtr< Cairo::Context > ctx) const |
Applies the line style to the given Cairo::Context. | |
Public Attributes | |
RGBA | colour |
The colour of the line. | |
double | thickness |
The thickness of the line. | |
double | length |
Length of the line, if applicable. More... | |
Style class for a drawn line.
|
inline |
Constructs a line style directly from an Gdk::RGBA object.
double creativity::data::graph::LineStyle::length |
Length of the line, if applicable.
This is used for things like tick marks where thickness
is the line width and this is the line length. In other cases, this value is unused.