LibrePCB Developers Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Alignment Class Referencefinal

The Alignment class. More...

#include <alignment.h>

+ Inheritance diagram for Alignment:
+ Collaboration diagram for Alignment:

Public Member Functions

 Alignment () noexcept
 
 Alignment (const Alignment &other) noexcept
 
 Alignment (const HAlign &h, const VAlign &v) noexcept
 
 Alignment (const SExpression &node)
 
const HAlign getH () const noexcept
 
const VAlign getV () const noexcept
 
void setH (const HAlign &h) noexcept
 
void setV (const VAlign &v) noexcept
 
Qt::Alignment toQtAlign () const noexcept
 
Alignmentmirror () noexcept
 
AlignmentmirrorH () noexcept
 
AlignmentmirrorV () noexcept
 
Alignment mirrored () const noexcept
 
Alignment mirroredH () const noexcept
 
Alignment mirroredV () const noexcept
 
void serialize (SExpression &root) const override
 Serialize the object into an existing S-Expression node. More...
 
Alignmentoperator= (const Alignment &rhs) noexcept
 
bool operator== (const Alignment &rhs) const noexcept
 
bool operator!= (const Alignment &rhs) const noexcept
 
- Public Member Functions inherited from SerializableObject
 SerializableObject () noexcept
 
virtual ~SerializableObject () noexcept
 
SExpression serializeToDomElement (const QString &name) const
 Serialize the object to a new S-Expression node. More...
 

Private Attributes

HAlign mH
 
VAlign mV
 

Additional Inherited Members

- Static Public Member Functions inherited from SerializableObject
template<typename T >
static void serializeObjectContainer (SExpression &root, const T &container, const QString &itemName)
 
template<typename T >
static void serializePointerContainer (SExpression &root, const T &container, const QString &itemName)
 
template<typename T >
static void serializePointerContainerUuidSorted (SExpression &root, const T &container, const QString &itemName)
 

Detailed Description

The Alignment class.

Author
ubruhin
Date
2015-02-27

Constructor & Destructor Documentation

Alignment ( )
inlinenoexcept

+ Here is the caller graph for this function:

Alignment ( const Alignment other)
inlinenoexcept
Alignment ( const HAlign h,
const VAlign v 
)
inlineexplicitnoexcept
Alignment ( const SExpression node)
explicit

+ Here is the call graph for this function:

Member Function Documentation

const HAlign getH ( ) const
inlinenoexcept
const VAlign getV ( ) const
inlinenoexcept
void setH ( const HAlign h)
inlinenoexcept
void setV ( const VAlign v)
inlinenoexcept
Qt::Alignment toQtAlign ( ) const
inlinenoexcept

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Alignment & mirror ( )
noexcept

+ Here is the call graph for this function:

Alignment & mirrorH ( )
noexcept

+ Here is the call graph for this function:

Alignment & mirrorV ( )
noexcept

+ Here is the call graph for this function:

Alignment mirrored ( ) const
inlinenoexcept

+ Here is the call graph for this function:

Alignment mirroredH ( ) const
inlinenoexcept

+ Here is the call graph for this function:

Alignment mirroredV ( ) const
inlinenoexcept

+ Here is the call graph for this function:

void serialize ( SExpression root) const
overridevirtual

Serialize the object into an existing S-Expression node.

This method inserts/appends all attributes and childs of the object to an existing S-Expression node. The content which already exists in the given S-Expression node will not be removed.

Note
The generated S-Expression node has always the format of the application's major version (it's not possible to generate DOMs of older versions).
Parameters
rootThe target DOM root node
Exceptions
ExceptionThis method throws an exception if an error occurs.

Implements SerializableObject.

+ Here is the call graph for this function:

Alignment& operator= ( const Alignment rhs)
inlinenoexcept
bool operator== ( const Alignment rhs) const
inlinenoexcept
bool operator!= ( const Alignment rhs) const
inlinenoexcept

Member Data Documentation

HAlign mH
private
VAlign mV
private

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