Legend for presenting plot styles. More...
#include <legend.hpp>
Public Member Functions | |
MultiEntryLegend () | |
Default constructor for legend. | |
virtual | ~MultiEntryLegend () |
Virtual destructor. | |
virtual void | plot (cairo_t *cairo, double x, double y) const |
Plot legend at (x,y). | |
virtual void | get_size (double &width, double &height) const |
Get size of legend. | |
void | add_entry (const LegendEntry &entry) |
Add entry to legend. |
Legend for presenting plot styles.
MultiEntryLegend::MultiEntryLegend | ( | ) | [inline] |
Default constructor for legend.
virtual MultiEntryLegend::~MultiEntryLegend | ( | ) | [inline, virtual] |
Virtual destructor.
void MultiEntryLegend::add_entry | ( | const LegendEntry & | entry | ) |
Add entry to legend.
virtual void MultiEntryLegend::get_size | ( | double & | width, | |
double & | height | |||
) | const [virtual] |
Get size of legend.
virtual void MultiEntryLegend::plot | ( | cairo_t * | cairo, | |
double | x, | |||
double | y | |||
) | const [virtual] |
Plot legend at (x,y).