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

The StrokeText class. More...

#include <stroketext.h>

+ Collaboration diagram for StrokeText:

Public Types

enum class  Event
 
typedef Slot< StrokeText, EventOnEditedSlot
 

Public Member Functions

 StrokeText ()=delete
 
 StrokeText (const StrokeText &other) noexcept
 
 StrokeText (const Uuid &uuid, const StrokeText &other) noexcept
 
 StrokeText (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) noexcept
 
 StrokeText (const SExpression &node)
 
 ~StrokeText () 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
 
const QString & getText () const noexcept
 
QVector< PathgeneratePaths (const StrokeFont &font) const noexcept
 
QVector< PathgeneratePaths (const StrokeFont &font, const QString &text) const 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
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node.
 
bool operator== (const StrokeText &rhs) const noexcept
 
bool operator!= (const StrokeText &rhs) const noexcept
 
StrokeTextoperator= (const StrokeText &rhs) noexcept
 

Public Attributes

Signal< StrokeText, EventonEdited
 

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
 

Detailed Description

The StrokeText class.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
UuidChanged 
LayerChanged 
TextChanged 
PositionChanged 
RotationChanged 
HeightChanged 
StrokeWidthChanged 
LetterSpacingChanged 
LineSpacingChanged 
AlignChanged 
MirroredChanged 
AutoRotateChanged 

Constructor & Destructor Documentation

◆ StrokeText() [1/5]

StrokeText ( )
delete

◆ StrokeText() [2/5]

StrokeText ( const StrokeText other)
noexcept

◆ StrokeText() [3/5]

StrokeText ( const Uuid uuid,
const StrokeText other 
)
noexcept

◆ StrokeText() [4/5]

StrokeText ( 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 
)
noexcept

◆ StrokeText() [5/5]

StrokeText ( const SExpression node)
explicit

◆ ~StrokeText()

~StrokeText ( )
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

◆ getLineSpacing()

const StrokeTextSpacing & getLineSpacing ( ) const
inlinenoexcept

◆ 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

◆ getText()

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

◆ generatePaths() [1/2]

QVector< Path > generatePaths ( const StrokeFont font) const
noexcept
+ Here is the caller graph for this function:

◆ generatePaths() [2/2]

QVector< Path > generatePaths ( const StrokeFont font,
const QString &  text 
) const
noexcept
+ Here is the call graph for this function:

◆ setLayer()

bool setLayer ( const Layer layer)
noexcept
+ Here is the caller graph for this function:

◆ setText()

bool setText ( const QString &  text)
noexcept
+ Here is the caller graph for this function:

◆ setPosition()

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

◆ setRotation()

bool setRotation ( const Angle rotation)
noexcept
+ Here is the caller graph for this function:

◆ setHeight()

bool setHeight ( const PositiveLength height)
noexcept
+ Here is the caller graph for this function:

◆ setStrokeWidth()

bool setStrokeWidth ( const UnsignedLength strokeWidth)
noexcept
+ Here is the caller graph for this function:

◆ setLetterSpacing()

bool setLetterSpacing ( const StrokeTextSpacing spacing)
noexcept
+ Here is the caller graph for this function:

◆ setLineSpacing()

bool setLineSpacing ( const StrokeTextSpacing spacing)
noexcept
+ Here is the caller graph for this function:

◆ setAlign()

bool setAlign ( const Alignment align)
noexcept
+ Here is the caller graph for this function:

◆ setMirrored()

bool setMirrored ( bool  mirrored)
noexcept
+ Here is the caller graph for this function:

◆ setAutoRotate()

bool setAutoRotate ( bool  autoRotate)
noexcept
+ Here is the caller graph for this function:

◆ 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:

◆ operator==()

bool operator== ( const StrokeText rhs) const
noexcept

◆ operator!=()

bool operator!= ( const StrokeText rhs) const
inlinenoexcept

◆ operator=()

StrokeText & operator= ( const StrokeText rhs)
noexcept

Member Data Documentation

◆ onEdited

Signal<StrokeText, Event> onEdited

◆ 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

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