2D Size with integer values More...
#include "Size2D.h"
  
Public Member Functions | |
| Size2D () | |
| Size2D (int _w, int _h) | |
| Size2D (const Size2D &_other) | |
| virtual | ~Size2D () | 
| Size2D & | operator= (const Size2D &_other) | 
| bool | operator== (const Size2D &_other) const | 
| bool | operator!= (const Size2D &_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 (int _w) | 
| Set width.   | |
| int | width (void) const | 
| Return the width.   | |
| void | setHeight (int _h) | 
| Set height.   | |
| int | 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 integer 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.