OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::Margins Class Reference

#include "Margins.h"

Inheritance diagram for ot::Margins:
ot::Serializable

Public Member Functions

 Margins ()
 
 Margins (int _left, int _top, int _right, int _bottom)
 
 Margins (const Margins &_other)
 
virtual ~Margins ()
 
Marginsoperator= (const Margins &_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 setLeft (int _margin)
 
int left (void) const
 
void setRight (int _margin)
 
int right (void) const
 
void setTop (int _margin)
 
int top (void) const
 
void setBottom (int _margin)
 
int bottom (void) const
 

Constructor & Destructor Documentation

◆ Margins() [1/3]

ot::Margins::Margins ( )
inline

◆ Margins() [2/3]

ot::Margins::Margins ( int _left,
int _top,
int _right,
int _bottom )
inline

◆ Margins() [3/3]

ot::Margins::Margins ( const Margins & _other)
inline

◆ ~Margins()

virtual ot::Margins::~Margins ( )
inlinevirtual

Member Function Documentation

◆ addToJsonObject()

void ot::Margins::addToJsonObject ( JsonValue & _object,
JsonAllocator & _allocator ) const
overridevirtual

Add the object contents to the provided JSON object.

Parameters
_documentThe JSON document (used to get the allocator)
_objectThe JSON object to add the contents to

◆ bottom()

int ot::Margins::bottom ( void ) const
inline

◆ left()

int ot::Margins::left ( void ) const
inline

◆ operator=()

ot::Margins & ot::Margins::operator= ( const Margins & _other)

◆ right()

int ot::Margins::right ( void ) const
inline

◆ setBottom()

void ot::Margins::setBottom ( int _margin)
inline

◆ setFromJsonObject()

void ot::Margins::setFromJsonObject ( const ConstJsonObject & _object)
overridevirtual

Will set the object contents from the provided JSON object.

Parameters
_objectThe JSON object containing the information
Exceptions
Willthrow an exception if the provided object is not valid (members missing or invalid types)

Implements ot::Serializable.

◆ setLeft()

void ot::Margins::setLeft ( int _margin)
inline

◆ setRight()

void ot::Margins::setRight ( int _margin)
inline

◆ setTop()

void ot::Margins::setTop ( int _margin)
inline

◆ top()

int ot::Margins::top ( void ) const
inline

The documentation for this class was generated from the following files: