LibrePCB Developers Documentation
Loading...
Searching...
No Matches
BoardStrokeTextData Class Referencefinal

The BoardStrokeTextData class. More...

#include <boardstroketextdata.h>

+ Collaboration diagram for BoardStrokeTextData:

Public Member Functions

 BoardStrokeTextData ()=delete
 
 BoardStrokeTextData (const BoardStrokeTextData &other) noexcept
 
 BoardStrokeTextData (const Uuid &uuid, const BoardStrokeTextData &other) noexcept
 
 BoardStrokeTextData (const Uuid &uuid, const Layer &layer, const QString &text, const Point &pos, const Angle &rotation, const PositiveLength &height, const UnsignedLength &strokeWidth, const StrokeTextSpacing &letterSpacing, const StrokeTextSpacing &lineSpacing, const Alignment &align, bool mirrored, bool autoRotate, bool locked)
 
 BoardStrokeTextData (const SExpression &node)
 
 ~BoardStrokeTextData () noexcept
 
const UuidgetUuid () const noexcept
 
const LayergetLayer () const noexcept
 
const PointgetPosition () const noexcept
 
const AnglegetRotation () const noexcept
 
const PositiveLengthgetHeight () const noexcept
 
const UnsignedLengthgetStrokeWidth () const noexcept
 
const StrokeTextSpacinggetLetterSpacing () const noexcept
 
const StrokeTextSpacinggetLineSpacing () const noexcept
 
const AlignmentgetAlign () const noexcept
 
bool getMirrored () const noexcept
 
bool getAutoRotate () const noexcept
 
bool isLocked () const noexcept
 
const QString & getText () const noexcept
 
bool setUuid (const Uuid &uuid) noexcept
 
bool setLayer (const Layer &layer) noexcept
 
bool setText (const QString &text) noexcept
 
bool setPosition (const Point &pos) noexcept
 
bool setRotation (const Angle &rotation) noexcept
 
bool setHeight (const PositiveLength &height) noexcept
 
bool setStrokeWidth (const UnsignedLength &strokeWidth) noexcept
 
bool setLetterSpacing (const StrokeTextSpacing &spacing) noexcept
 
bool setLineSpacing (const StrokeTextSpacing &spacing) noexcept
 
bool setAlign (const Alignment &align) noexcept
 
bool setMirrored (bool mirrored) noexcept
 
bool setAutoRotate (bool autoRotate) noexcept
 
bool setLocked (bool locked) noexcept
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node.
 
bool operator== (const BoardStrokeTextData &rhs) const noexcept
 
bool operator!= (const BoardStrokeTextData &rhs) const noexcept
 
BoardStrokeTextDataoperator= (const BoardStrokeTextData &rhs)=default
 

Private Attributes

Uuid mUuid
 
const LayermLayer
 
QString mText
 
Point mPosition
 
Angle mRotation
 
PositiveLength mHeight
 
UnsignedLength mStrokeWidth
 
StrokeTextSpacing mLetterSpacing
 
StrokeTextSpacing mLineSpacing
 
Alignment mAlign
 
bool mMirrored
 
bool mAutoRotate
 
bool mLocked
 

Detailed Description

Constructor & Destructor Documentation

◆ BoardStrokeTextData() [1/5]

BoardStrokeTextData ( )
delete

◆ BoardStrokeTextData() [2/5]

BoardStrokeTextData ( const BoardStrokeTextData other)
noexcept

◆ BoardStrokeTextData() [3/5]

BoardStrokeTextData ( const Uuid uuid,
const BoardStrokeTextData other 
)
noexcept

◆ BoardStrokeTextData() [4/5]

BoardStrokeTextData ( const Uuid uuid,
const Layer layer,
const QString &  text,
const Point pos,
const Angle rotation,
const PositiveLength height,
const UnsignedLength strokeWidth,
const StrokeTextSpacing letterSpacing,
const StrokeTextSpacing lineSpacing,
const Alignment align,
bool  mirrored,
bool  autoRotate,
bool  locked 
)

◆ BoardStrokeTextData() [5/5]

BoardStrokeTextData ( const SExpression node)
explicit

◆ ~BoardStrokeTextData()

~BoardStrokeTextData ( )
noexcept

Member Function Documentation

◆ getUuid()

const Uuid & getUuid ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getLayer()

const Layer & getLayer ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getPosition()

const Point & getPosition ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getRotation()

const Angle & getRotation ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getHeight()

const PositiveLength & getHeight ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getStrokeWidth()

const UnsignedLength & getStrokeWidth ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getLetterSpacing()

const StrokeTextSpacing & getLetterSpacing ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getLineSpacing()

const StrokeTextSpacing & getLineSpacing ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getAlign()

const Alignment & getAlign ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getMirrored()

bool getMirrored ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getAutoRotate()

bool getAutoRotate ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ isLocked()

bool isLocked ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ getText()

const QString & getText ( ) const
inlinenoexcept
+ Here is the caller graph for this function:

◆ setUuid()

bool setUuid ( const Uuid uuid)
noexcept

◆ setLayer()

bool setLayer ( const Layer layer)
noexcept

◆ setText()

bool setText ( const QString &  text)
noexcept

◆ setPosition()

bool setPosition ( const Point pos)
noexcept
+ Here is the caller graph for this function:

◆ setRotation()

bool setRotation ( const Angle rotation)
noexcept

◆ setHeight()

bool setHeight ( const PositiveLength height)
noexcept

◆ setStrokeWidth()

bool setStrokeWidth ( const UnsignedLength strokeWidth)
noexcept

◆ setLetterSpacing()

bool setLetterSpacing ( const StrokeTextSpacing spacing)
noexcept

◆ setLineSpacing()

bool setLineSpacing ( const StrokeTextSpacing spacing)
noexcept

◆ setAlign()

bool setAlign ( const Alignment align)
noexcept

◆ setMirrored()

bool setMirrored ( bool  mirrored)
noexcept

◆ setAutoRotate()

bool setAutoRotate ( bool  autoRotate)
noexcept

◆ setLocked()

bool setLocked ( bool  locked)
noexcept

◆ serialize()

void serialize ( SExpression root) const

Serialize into librepcb::SExpression node.

Parameters
rootRoot node to serialize into.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ operator==()

bool operator== ( const BoardStrokeTextData rhs) const
noexcept

◆ operator!=()

bool operator!= ( const BoardStrokeTextData rhs) const
inlinenoexcept

◆ operator=()

BoardStrokeTextData & operator= ( const BoardStrokeTextData rhs)
default

Member Data Documentation

◆ mUuid

Uuid mUuid
private

◆ mLayer

const Layer* mLayer
private

◆ mText

QString mText
private

◆ mPosition

Point mPosition
private

◆ mRotation

Angle mRotation
private

◆ mHeight

PositiveLength mHeight
private

◆ mStrokeWidth

UnsignedLength mStrokeWidth
private

◆ mLetterSpacing

StrokeTextSpacing mLetterSpacing
private

◆ mLineSpacing

StrokeTextSpacing mLineSpacing
private

◆ mAlign

Alignment mAlign
private

◆ mMirrored

bool mMirrored
private

◆ mAutoRotate

bool mAutoRotate
private

◆ mLocked

bool mLocked
private

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