IBSimu
1.0.4
|
Class for legend entry. More...
#include <legend.hpp>
Public Member Functions | |
LegendEntry (Graph &drawable, std::string &label) | |
Contructor for legend entry. | |
LegendEntry (const LegendEntry &le) | |
Copy constructor. | |
~LegendEntry () | |
Destructor. | |
LegendEntry & | operator= (const LegendEntry &le) |
Assignment operator. | |
void | plot (cairo_t *cairo, double x, double y) const |
Plot legend entry. | |
void | get_size (double &width, double &height) const |
Get size of legend entry. |
Class for legend entry.
The legend entries contain a reference to the drawable so that if the style used in the drawable is changed, the sample in legend is automatically changed.
LegendEntry::LegendEntry | ( | Graph & | drawable, |
std::string & | label | ||
) | [inline] |
Contructor for legend entry.
LegendEntry::LegendEntry | ( | const LegendEntry & | le | ) | [inline] |
Copy constructor.
LegendEntry::~LegendEntry | ( | ) | [inline] |
Destructor.
void LegendEntry::get_size | ( | double & | width, |
double & | height | ||
) | const |
Get size of legend entry.
LegendEntry& LegendEntry::operator= | ( | const LegendEntry & | le | ) | [inline] |
Assignment operator.
void LegendEntry::plot | ( | cairo_t * | cairo, |
double | x, | ||
double | y | ||
) | const |
Plot legend entry.