The Outline class is used to describe how a outline should look like.
More...
#include "Outline.h"
The Outline class is used to describe how a outline should look like.
◆ Outline() [1/6]
Default constructor. Creates a black fill painter.
◆ Outline() [2/6]
ot::Outline::Outline |
( |
const Color & | _color | ) |
|
Assignment constructor.
- Parameters
-
◆ Outline() [3/6]
Assignment constructor.
- Parameters
-
_painter | Initial painter (if 0, default painter will be set [/ref Outline() "See default constructor"]). |
◆ Outline() [4/6]
ot::Outline::Outline |
( |
int | _width, |
|
|
const Color & | _color ) |
Assignment constructor.
- Parameters
-
_width | Line width. |
_color | Initial color. |
◆ Outline() [5/6]
ot::Outline::Outline |
( |
int | _width, |
|
|
Painter2D * | _painter ) |
Assignment constructor.
- Parameters
-
_width | Line width |
_painter | Initial painter (if 0, default painter will be set [/ref Outline() "See default constructor"]). |
◆ Outline() [6/6]
ot::Outline::Outline |
( |
const Outline & | _other | ) |
|
Copy constructor.
- Parameters
-
◆ ~Outline()
ot::Outline::~Outline |
( |
| ) |
|
◆ addToJsonObject()
Add the object contents to the provided JSON object.
- Parameters
-
_object | Json object reference |
_allocator | Allocator |
Implements ot::Serializable.
◆ cap()
◆ joinStyle()
◆ operator=()
Assignment operator.
- Parameters
-
◆ painter()
constexpr const Painter2D * ot::Outline::painter |
( |
void | | ) |
const |
|
inlineconstexpr |
◆ setCap()
Set the line cap style.
- Parameters
-
◆ setColor()
void ot::Outline::setColor |
( |
const Color & | _color | ) |
|
Set the color. The current painter will be replaced by a FillPainter2D.
◆ setFromJsonObject()
Will set the object contents from the provided JSON object.
- Parameters
-
_object | The JSON object containing the information |
- Exceptions
-
Will | throw an exception if the provided object is not valid (members missing or invalid types) |
Implements ot::Serializable.
◆ setJoinStyle()
Set the line join style.
- Parameters
-
◆ setPainter()
void ot::Outline::setPainter |
( |
Painter2D * | _painter | ) |
|
Set the painter. The outline takes ownership of the painter.
- Parameters
-
_painter | The painter to set. |
◆ setStyle()
constexpr void ot::Outline::setStyle |
( |
LineStyle | _style | ) |
|
|
inlineconstexpr |
Set the line style.
- Parameters
-
◆ setWidth()
constexpr void ot::Outline::setWidth |
( |
int | _w | ) |
|
|
inlineconstexpr |
Set the line width.
- Parameters
-
◆ style()
constexpr LineStyle ot::Outline::style |
( |
void | | ) |
const |
|
inlineconstexpr |
◆ takePainter()
Replaces the current painter with a default painter and returns the old painter. The caller takes ownership of the painter.
◆ toOutlineF()
◆ width()
constexpr int ot::Outline::width |
( |
void | | ) |
const |
|
inlineconstexpr |
The documentation for this class was generated from the following files: