#include <LabeledIconFigure.h>
inet::LabeledIconFigure::LabeledIconFigure |
( |
const char * |
name = nullptr | ) |
|
cFigure::Rectangle inet::LabeledIconFigure::getBounds |
( |
| ) |
const |
51 auto x =
std::min(iconBounds.x, labelBounds.x);
52 auto y =
std::min(iconBounds.y, labelBounds.y);
53 auto width =
std::max(iconBounds.x + iconBounds.width, labelBounds.x + labelBounds.width) - x;
54 auto height =
std::max(iconBounds.y + iconBounds.height, labelBounds.y + labelBounds.height) - y;
55 return cFigure::Rectangle(x, y, width, height);
double min(const double a, const double b)
Returns the minimum of a and b.
Definition: SCTPAssociation.h:270
double max(double a, double b)
Returns the greater of the given parameters.
Definition: INETMath.h:161
cIconFigure* inet::LabeledIconFigure::getIconFigure |
( |
| ) |
const |
|
inline |
cLabelFigure* inet::LabeledIconFigure::getLabelFigure |
( |
| ) |
const |
|
inline |
void inet::LabeledIconFigure::setAssociatedObject |
( |
cObject * |
object | ) |
|
void inet::LabeledIconFigure::setOpacity |
( |
double |
opacity | ) |
|
void inet::LabeledIconFigure::setPosition |
( |
cFigure::Point |
position | ) |
|
void inet::LabeledIconFigure::setTooltip |
( |
const char * |
tooltip | ) |
|
cIconFigure* inet::LabeledIconFigure::iconFigure |
|
protected |
cLabelFigure* inet::LabeledIconFigure::labelFigure |
|
protected |
The documentation for this class was generated from the following files: