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

#include "Margins.h"

Inheritance diagram for ot::MarginsD:
ot::Serializable

Public Member Functions

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

Constructor & Destructor Documentation

◆ MarginsD() [1/3]

ot::MarginsD::MarginsD ( )
inline

◆ MarginsD() [2/3]

ot::MarginsD::MarginsD ( double _left,
double _top,
double _right,
double _bottom )
inline

◆ MarginsD() [3/3]

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

◆ ~MarginsD()

virtual ot::MarginsD::~MarginsD ( )
inlinevirtual

Member Function Documentation

◆ addToJsonObject()

void ot::MarginsD::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()

double ot::MarginsD::bottom ( void ) const
inline

◆ left()

double ot::MarginsD::left ( void ) const
inline

◆ operator=()

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

◆ right()

double ot::MarginsD::right ( void ) const
inline

◆ setBottom()

void ot::MarginsD::setBottom ( double _margin)
inline

◆ setFromJsonObject()

void ot::MarginsD::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::MarginsD::setLeft ( double _margin)
inline

◆ setRight()

void ot::MarginsD::setRight ( double _margin)
inline

◆ setTop()

void ot::MarginsD::setTop ( double _margin)
inline

◆ top()

double ot::MarginsD::top ( void ) const
inline

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