20#ifndef LIBREPCB_CORE_BI_STROKETEXT_H
21#define LIBREPCB_CORE_BI_STROKETEXT_H
26#include "../../../utils/signalslot.h"
27#include "../boardstroketextdata.h"
81 bool setText(
const QString& text)
noexcept;
The Alignment class.
Definition alignment.h:115
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition angle.h:76
The Board Item Base (BI_Base) class.
Definition bi_base.h:45
The BI_Device class.
Definition bi_device.h:57
The BI_StrokeText class.
Definition bi_stroketext.h:49
BoardStrokeTextData mData
Definition bi_stroketext.h:108
const BoardStrokeTextData & getData() const noexcept
Definition bi_stroketext.h:72
bool setText(const QString &text) noexcept
Definition bi_stroketext.cpp:77
const QString & getSubstitutedText() const noexcept
Definition bi_stroketext.h:74
void updateText() noexcept
Definition bi_stroketext.cpp:228
bool setPosition(const Point &pos) noexcept
Definition bi_stroketext.cpp:86
void updatePaths() noexcept
Definition bi_stroketext.cpp:240
bool setLineSpacing(const StrokeTextSpacing &spacing) noexcept
Definition bi_stroketext.cpp:137
void removeFromBoard() override
Definition bi_stroketext.cpp:216
BI_Device * mDevice
Definition bi_stroketext.h:110
Event
Definition bi_stroketext.h:54
bool setLetterSpacing(const StrokeTextSpacing &spacing) noexcept
Definition bi_stroketext.cpp:127
const QVector< Path > & getPaths() const noexcept
Definition bi_stroketext.h:77
~BI_StrokeText() noexcept
Definition bi_stroketext.cpp:58
void setDevice(BI_Device *device) noexcept
Definition bi_stroketext.cpp:187
bool setStrokeWidth(const UnsignedLength &strokeWidth) noexcept
Definition bi_stroketext.cpp:116
Slot< BI_StrokeText, Event > OnEditedSlot
Definition bi_stroketext.h:63
bool setLayer(const Layer &layer) noexcept
Definition bi_stroketext.cpp:65
bool setHeight(const PositiveLength &height) noexcept
Definition bi_stroketext.cpp:107
bool setMirrored(bool mirrored) noexcept
Definition bi_stroketext.cpp:155
const StrokeFont & getFont() const noexcept
Definition bi_stroketext.h:73
BI_StrokeText & operator=(const BI_StrokeText &rhs)=delete
const StrokeFont & mFont
Definition bi_stroketext.h:109
bool setRotation(const Angle &rotation) noexcept
Definition bi_stroketext.cpp:96
void addToBoard() override
Definition bi_stroketext.cpp:208
BI_StrokeText(const BI_StrokeText &other)=delete
Signal< BI_StrokeText, Event > onEdited
Definition bi_stroketext.h:62
BI_Device * getDevice() const noexcept
Definition bi_stroketext.h:94
bool setLocked(bool locked) noexcept
Definition bi_stroketext.cpp:175
QVector< Path > mPaths
Without transformation (position/rotation/mirror)
Definition bi_stroketext.h:114
bool setAutoRotate(bool autoRotate) noexcept
Definition bi_stroketext.cpp:166
QString mSubstitutedText
Definition bi_stroketext.h:113
bool setAlign(const Alignment &align) noexcept
Definition bi_stroketext.cpp:146
void invalidatePlanes(const Layer &layer) noexcept
Definition bi_stroketext.cpp:252
The Board class represents a PCB of a project and is always part of a circuit.
Definition board.h:73
The BoardStrokeTextData class.
Definition boardstroketextdata.h:49
The Layer class provides all supported geometry layers.
Definition layer.h:42
The Path class represents a list of vertices connected by straight lines or circular arc segments.
Definition path.h:57
The Point class is used to represent a point/coordinate/vector, for example (1.2mm; 5....
Definition point.h:78
The Signal class is used to emit signals on non-QObject derived classes.
Definition signalslot.h:65
The Slot class is used to receive signals from non-QObject derived classes.
Definition signalslot.h:170
The StrokeFont class.
Definition strokefont.h:56
Represents the letter- or line spacing configuration of a stroke text.
Definition stroketextspacing.h:44
Definition occmodel.cpp:76
type_safe::constrained_type< Length, PositiveLengthConstraint, PositiveLengthVerifier > PositiveLength
Definition length.h:810
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition length.h:694