#include <QueueFigure.h>
◆ QueueFigure()
| inet::QueueFigure::QueueFigure |
( |
const char * |
name = nullptr | ) |
|
13 cRectangleFigure(name)
◆ getColor()
| cFigure::Color inet::QueueFigure::getColor |
( |
| ) |
const |
|
inline |
◆ getSpacing()
| double inet::QueueFigure::getSpacing |
( |
| ) |
const |
|
inline |
◆ setColor()
| void inet::QueueFigure::setColor |
( |
cFigure::Color |
color | ) |
|
|
inline |
◆ setElementCount()
| void inet::QueueFigure::setElementCount |
( |
int |
elementCount | ) |
|
57 const auto& bounds = getBounds();
58 double width = bounds.width - 2 *
spacing;
60 boxes[0]->setBounds(cFigure::Rectangle(
spacing, bounds.height -
spacing - height, width, height));
63 for (
size_t i = 0; i <
boxes.size(); i++)
◆ setMaxElementCount()
| void inet::QueueFigure::setMaxElementCount |
( |
int |
maxElementCount | ) |
|
21 for (
auto box :
boxes) {
26 const auto& bounds = getBounds();
31 auto box =
new cRectangleFigure(
"box");
32 box->setOutlined(
false);
34 box->setFillColor(
color);
40 auto box =
new cRectangleFigure(
"box");
41 box->setOutlined(
false);
43 box->setFillColor(
color);
◆ setSpacing()
| void inet::QueueFigure::setSpacing |
( |
double |
spacing | ) |
|
|
inline |
◆ boxes
| std::vector<cRectangleFigure *> inet::QueueFigure::boxes |
|
protected |
◆ color
| cFigure::Color inet::QueueFigure::color |
|
protected |
◆ continuous
| bool inet::QueueFigure::continuous = false |
|
protected |
◆ elementCount
| int inet::QueueFigure::elementCount = -1 |
|
protected |
◆ elementHeight
| double inet::QueueFigure::elementHeight = 4 |
|
protected |
◆ elementWidth
| double inet::QueueFigure::elementWidth = 16 |
|
protected |
◆ maxElementCount
| int inet::QueueFigure::maxElementCount = -1 |
|
protected |
◆ spacing
| double inet::QueueFigure::spacing = 2 |
|
protected |
The documentation for this class was generated from the following files: