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) |
Plot legend at (x,y). | |
virtual void | get_size (cairo_t *cairo, double &width, double &height) const |
Get size of legend. | |
void | set_font_size (double fontsize) |
Set font size for legend labels. | |
void | add_entry (LegendEntry *entry) |
Add entry to legend. | |
void | clear_entries (void) |
Clear legend entries. | |
Legend for presenting plot styles.
MultiEntryLegend::MultiEntryLegend | ( | ) |
Default constructor for legend.
|
inlinevirtual |
Virtual destructor.
void MultiEntryLegend::add_entry | ( | LegendEntry * | entry | ) |
Add entry to legend.
void MultiEntryLegend::clear_entries | ( | void | ) |
Clear legend entries.
|
virtual |
Get size of legend.
|
virtual |
Plot legend at (x,y).
The point (x,y) is the lower left point of the entry.
void MultiEntryLegend::set_font_size | ( | double | fontsize | ) |
Set font size for legend labels.