LibrePCB Developers Documentation
Text Class Referencefinal

The Text class. More...

#include <text.h>

+ Collaboration diagram for Text:

Public Types

enum class  Event
 
typedef Slot< Text, EventOnEditedSlot
 

Public Member Functions

 Text ()=delete
 
 Text (const Text &other) noexcept
 
 Text (const Uuid &uuid, const Text &other) noexcept
 
 Text (const Uuid &uuid, const Layer &layer, const QString &text, const Point &pos, const Angle &rotation, const PositiveLength &height, const Alignment &align) noexcept
 
 Text (const SExpression &node)
 
 ~Text () noexcept
 
const UuidgetUuid () const noexcept
 
const LayergetLayer () const noexcept
 
const PointgetPosition () const noexcept
 
const AnglegetRotation () const noexcept
 
const PositiveLengthgetHeight () const noexcept
 
const AlignmentgetAlign () const noexcept
 
const QString & getText () 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 setAlign (const Alignment &align) noexcept
 
void serialize (SExpression &root) const
 Serialize into librepcb::SExpression node. More...
 
bool operator== (const Text &rhs) const noexcept
 
bool operator!= (const Text &rhs) const noexcept
 
Textoperator= (const Text &rhs) noexcept
 

Public Attributes

Signal< Text, EventonEdited
 

Private Attributes

Uuid mUuid
 
const LayermLayer
 
QString mText
 
Point mPosition
 
Angle mRotation
 
PositiveLength mHeight
 
Alignment mAlign
 

Detailed Description

The Text class.

Member Typedef Documentation

◆ OnEditedSlot

Member Enumeration Documentation

◆ Event

enum class Event
strong
Enumerator
UuidChanged 
LayerChanged 
TextChanged 
PositionChanged 
RotationChanged 
HeightChanged 
AlignChanged 

Constructor & Destructor Documentation

◆ Text() [1/5]

Text ( )
delete

◆ Text() [2/5]

Text ( const Text other)
noexcept

◆ Text() [3/5]

Text ( const Uuid uuid,
const Text other 
)
noexcept

◆ Text() [4/5]

Text ( const Uuid uuid,
const Layer layer,
const QString &  text,
const Point pos,
const Angle rotation,
const PositiveLength height,
const Alignment align 
)
noexcept

◆ Text() [5/5]

Text ( const SExpression node)
explicit

◆ ~Text()

~Text ( )
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:

◆ getAlign()

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

◆ getText()

const QString & getText ( ) const
inlinenoexcept
+ Here is the caller 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:

◆ setAlign()

bool setAlign ( const Alignment align)
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 Text rhs) const
noexcept

◆ operator!=()

bool operator!= ( const Text rhs) const
inlinenoexcept

◆ operator=()

Text & operator= ( const Text rhs)
noexcept

Member Data Documentation

◆ onEdited

Signal<Text, 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

◆ mAlign

Alignment mAlign
private

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