2D Size with double values More...
#include "Size2D.h"
Public Member Functions | |
| Size2DD () | |
| Size2DD (double _w, double _h) | |
| Size2DD (const Size2DD &_other) | |
| virtual | ~Size2DD () |
| Size2DD & | operator= (const Size2DD &_other) |
| bool | operator== (const Size2DD &_other) const |
| bool | operator!= (const Size2DD &_other) const |
| 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. | |
| bool | isValid (void) const |
| Returns true if the width and height are greater or equal 0. | |
| void | setWidth (double _w) |
| Set width. | |
| double | width (void) const |
| Return the width. | |
| void | setHeight (double _h) |
| Set height. | |
| double | height (void) const |
| Return the height. | |
Public Member Functions inherited from ot::Serializable | |
| Serializable () | |
| virtual | ~Serializable () |
| virtual void | addToJsonObject (ot::JsonValue &_object, ot::JsonAllocator &_allocator) const =0 |
| Add the object contents to the provided JSON object. | |
2D Size with double values
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
overridevirtual |
Add the object contents to the provided JSON object.
| _document | The JSON document (used to get the allocator) |
| _object | The JSON object to add the contents to |
|
inline |
Return the height.
|
inline |
Returns true if the width and height are greater or equal 0.
|
inline |
|
inline |
|
overridevirtual |
Will set the object contents from the provided JSON object.
| _object | The JSON object containing the information |
| Will | throw an exception if the provided object is not valid (members missing or invalid types) |
Implements ot::Serializable.
|
inline |
Set height.
| _h | Height to set |
|
inline |
Set width.
| _w | Width to set |
|
inline |
Return the width.