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

#include "Margins.h"

Inheritance diagram for ot::MarginsF:
ot::Serializable

Public Member Functions

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

Constructor & Destructor Documentation

◆ MarginsF() [1/3]

ot::MarginsF::MarginsF ( )
inline

◆ MarginsF() [2/3]

ot::MarginsF::MarginsF ( float _left,
float _top,
float _right,
float _bottom )
inline

◆ MarginsF() [3/3]

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

◆ ~MarginsF()

virtual ot::MarginsF::~MarginsF ( )
inlinevirtual

Member Function Documentation

◆ addToJsonObject()

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

float ot::MarginsF::bottom ( void ) const
inline

◆ left()

float ot::MarginsF::left ( void ) const
inline

◆ operator=()

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

◆ right()

float ot::MarginsF::right ( void ) const
inline

◆ setBottom()

void ot::MarginsF::setBottom ( float _margin)
inline

◆ setFromJsonObject()

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

◆ setRight()

void ot::MarginsF::setRight ( float _margin)
inline

◆ setTop()

void ot::MarginsF::setTop ( float _margin)
inline

◆ top()

float ot::MarginsF::top ( void ) const
inline

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