20#ifndef LIBREPCB_CORE_BOARDSTROKETEXTDATA_H
21#define LIBREPCB_CORE_BOARDSTROKETEXTDATA_H
26#include "../../types/alignment.h"
27#include "../../types/angle.h"
28#include "../../types/length.h"
29#include "../../types/point.h"
30#include "../../types/stroketextspacing.h"
31#include "../../types/uuid.h"
62 const Alignment& align,
bool mirrored,
bool autoRotate,
89 bool setText(
const QString& text)
noexcept;
113 return !(*
this == rhs);
The Alignment class.
Definition: alignment.h:115
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
The BoardStrokeTextData class.
Definition: boardstroketextdata.h:49
bool operator==(const BoardStrokeTextData &rhs) const noexcept
Definition: boardstroketextdata.cpp:267
bool mLocked
Definition: boardstroketextdata.h:130
bool getMirrored() const noexcept
Definition: boardstroketextdata.h:81
bool setText(const QString &text) noexcept
Definition: boardstroketextdata.cpp:136
const Angle & getRotation() const noexcept
Definition: boardstroketextdata.h:71
bool setPosition(const Point &pos) noexcept
Definition: boardstroketextdata.cpp:145
bool setLineSpacing(const StrokeTextSpacing &spacing) noexcept
Definition: boardstroketextdata.cpp:192
bool getAutoRotate() const noexcept
Definition: boardstroketextdata.h:82
Uuid mUuid
Definition: boardstroketextdata.h:118
UnsignedLength mStrokeWidth
Definition: boardstroketextdata.h:124
const PositiveLength & getHeight() const noexcept
Definition: boardstroketextdata.h:72
QString mText
Definition: boardstroketextdata.h:120
const Layer & getLayer() const noexcept
Definition: boardstroketextdata.h:69
BoardStrokeTextData & operator=(const BoardStrokeTextData &rhs)=default
bool setLetterSpacing(const StrokeTextSpacing &spacing) noexcept
Definition: boardstroketextdata.cpp:182
bool isLocked() const noexcept
Definition: boardstroketextdata.h:83
const Alignment & getAlign() const noexcept
Definition: boardstroketextdata.h:80
const QString & getText() const noexcept
Definition: boardstroketextdata.h:84
bool setStrokeWidth(const UnsignedLength &strokeWidth) noexcept
Definition: boardstroketextdata.cpp:172
Angle mRotation
Definition: boardstroketextdata.h:122
bool setLayer(const Layer &layer) noexcept
Definition: boardstroketextdata.cpp:127
bool mAutoRotate
Definition: boardstroketextdata.h:129
bool setHeight(const PositiveLength &height) noexcept
Definition: boardstroketextdata.cpp:163
bool setMirrored(bool mirrored) noexcept
Definition: boardstroketextdata.cpp:211
const Point & getPosition() const noexcept
Definition: boardstroketextdata.h:70
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition: boardstroketextdata.cpp:242
const StrokeTextSpacing & getLineSpacing() const noexcept
Definition: boardstroketextdata.h:77
PositiveLength mHeight
Definition: boardstroketextdata.h:123
const Uuid & getUuid() const noexcept
Definition: boardstroketextdata.h:68
const StrokeTextSpacing & getLetterSpacing() const noexcept
Definition: boardstroketextdata.h:74
Alignment mAlign
Definition: boardstroketextdata.h:127
bool setRotation(const Angle &rotation) noexcept
Definition: boardstroketextdata.cpp:154
const Layer * mLayer
Definition: boardstroketextdata.h:119
StrokeTextSpacing mLineSpacing
Definition: boardstroketextdata.h:126
~BoardStrokeTextData() noexcept
Definition: boardstroketextdata.cpp:111
const UnsignedLength & getStrokeWidth() const noexcept
Definition: boardstroketextdata.h:73
bool setLocked(bool locked) noexcept
Definition: boardstroketextdata.cpp:229
bool operator!=(const BoardStrokeTextData &rhs) const noexcept
Definition: boardstroketextdata.h:112
bool setAutoRotate(bool autoRotate) noexcept
Definition: boardstroketextdata.cpp:220
bool mMirrored
Definition: boardstroketextdata.h:128
bool setUuid(const Uuid &uuid) noexcept
Definition: boardstroketextdata.cpp:118
Point mPosition
Definition: boardstroketextdata.h:121
BoardStrokeTextData()=delete
bool setAlign(const Alignment &align) noexcept
Definition: boardstroketextdata.cpp:202
StrokeTextSpacing mLetterSpacing
Definition: boardstroketextdata.h:125
The Layer class provides all supported geometry layers.
Definition: layer.h:42
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition: point.h:79
The SExpression class.
Definition: sexpression.h:69
Represents the letter- or line spacing configuration of a stroke text.
Definition: stroketextspacing.h:44
The Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:58
Definition: occmodel.cpp:77
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition: length.h:812
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:696