The BorderF class is used to describe a border with four sides. The BorderF uses floating point values.
More...
#include "Border.h"
|
| BorderF () |
|
| BorderF (const ot::Color &_color, double _width) |
|
| BorderF (const ot::Color &_color, double _leftWidth, double _topWidth, double _rightWidth, double _bottomWidth) |
|
| BorderF (const OutlineF &_left, const OutlineF &_top, const OutlineF &_right, const OutlineF &_bottom) |
|
| BorderF (const BorderF &_other) |
|
virtual | ~BorderF () |
|
BorderF & | operator= (const BorderF &_other) |
|
virtual void | addToJsonObject (JsonValue &_object, JsonAllocator &_allocator) const override |
| Add the object contents to the provided JSON object.
|
|
virtual void | setFromJsonObject (const ConstJsonObject &_object) override |
| Will set the object contents from the provided JSON object.
|
|
void | setColor (const ot::Color &_color) |
| Will set the color for all four borders.
|
|
void | setWidth (double _width) |
| Will set the width for all four borders.
|
|
void | setTop (const OutlineF &_s) |
| Set the top border.
|
|
const OutlineF & | top (void) const |
|
void | setLeft (const OutlineF &_s) |
|
const OutlineF & | left (void) const |
|
void | setRight (const OutlineF &_s) |
|
const OutlineF & | right (void) const |
|
void | setBottom (const OutlineF &_s) |
|
const OutlineF & | bottom (void) const |
|
| Serializable () |
|
virtual | ~Serializable () |
|
virtual void | addToJsonObject (ot::JsonValue &_object, ot::JsonAllocator &_allocator) const =0 |
| Add the object contents to the provided JSON object.
|
|
The BorderF class is used to describe a border with four sides. The BorderF uses floating point values.
◆ BorderF() [1/5]
◆ BorderF() [2/5]
ot::BorderF::BorderF |
( |
const ot::Color & | _color, |
|
|
double | _width ) |
◆ BorderF() [3/5]
ot::BorderF::BorderF |
( |
const ot::Color & | _color, |
|
|
double | _leftWidth, |
|
|
double | _topWidth, |
|
|
double | _rightWidth, |
|
|
double | _bottomWidth ) |
◆ BorderF() [4/5]
◆ BorderF() [5/5]
ot::BorderF::BorderF |
( |
const BorderF & | _other | ) |
|
◆ ~BorderF()
ot::BorderF::~BorderF |
( |
| ) |
|
|
virtual |
◆ addToJsonObject()
Add the object contents to the provided JSON object.
- Parameters
-
_document | The JSON document (used to get the allocator) |
_object | The JSON object to add the contents to |
◆ bottom()
const OutlineF & ot::BorderF::bottom |
( |
void | | ) |
const |
|
inline |
◆ left()
const OutlineF & ot::BorderF::left |
( |
void | | ) |
const |
|
inline |
◆ operator=()
◆ right()
const OutlineF & ot::BorderF::right |
( |
void | | ) |
const |
|
inline |
◆ setBottom()
void ot::BorderF::setBottom |
( |
const OutlineF & | _s | ) |
|
|
inline |
◆ setColor()
void ot::BorderF::setColor |
( |
const ot::Color & | _color | ) |
|
Will set the color for all four borders.
- Parameters
-
◆ 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.
◆ setLeft()
void ot::BorderF::setLeft |
( |
const OutlineF & | _s | ) |
|
|
inline |
◆ setRight()
void ot::BorderF::setRight |
( |
const OutlineF & | _s | ) |
|
|
inline |
◆ setTop()
void ot::BorderF::setTop |
( |
const OutlineF & | _s | ) |
|
|
inline |
◆ setWidth()
void ot::BorderF::setWidth |
( |
double | _width | ) |
|
Will set the width for all four borders.
- Parameters
-
◆ top()
const OutlineF & ot::BorderF::top |
( |
void | | ) |
const |
|
inline |
The documentation for this class was generated from the following files: