![]() |
LibrePCB Developers Documentation
|
The StrokeText class. More...
#include <stroketext.h>
Public Types | |
enum | Event |
typedef Slot< StrokeText, Event > | OnEditedSlot |
Public Member Functions | |
StrokeText ()=delete | |
StrokeText (const StrokeText &other) noexcept | |
StrokeText (const Uuid &uuid, const StrokeText &other) noexcept | |
StrokeText (const Uuid &uuid, const GraphicsLayerName &layerName, 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 Uuid & | getUuid () const noexcept |
const GraphicsLayerName & | getLayerName () const noexcept |
const Point & | getPosition () const noexcept |
const Angle & | getRotation () const noexcept |
const PositiveLength & | getHeight () const noexcept |
const UnsignedLength & | getStrokeWidth () const noexcept |
const StrokeTextSpacing & | getLetterSpacing () const noexcept |
const StrokeTextSpacing & | getLineSpacing () const noexcept |
const Alignment & | getAlign () const noexcept |
bool | getMirrored () const noexcept |
bool | getAutoRotate () const noexcept |
const QString & | getText () const noexcept |
const QVector< Path > & | getPaths () const noexcept |
bool | needsAutoRotation () const noexcept |
Length | calcLetterSpacing () const noexcept |
Length | calcLineSpacing () const noexcept |
bool | setLayerName (const GraphicsLayerName &name) 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 | setAttributeProvider (const AttributeProvider *provider) noexcept |
void | setFont (const StrokeFont *font) noexcept |
const StrokeFont * | getCurrentFont () const noexcept |
void | updatePaths () noexcept |
void | serialize (SExpression &root) const override |
Serialize the object into an existing S-Expression node. More... | |
bool | operator== (const StrokeText &rhs) const noexcept |
bool | operator!= (const StrokeText &rhs) const noexcept |
StrokeText & | operator= (const StrokeText &rhs) noexcept |
![]() | |
SerializableObject () noexcept | |
virtual | ~SerializableObject () noexcept |
SExpression | serializeToDomElement (const QString &name) const |
Serialize the object to a new S-Expression node. More... | |
Public Attributes | |
Signal< StrokeText, Event > | onEdited |
Private Attributes | |
Uuid | mUuid |
GraphicsLayerName | mLayerName |
QString | mText |
Point | mPosition |
Angle | mRotation |
PositiveLength | mHeight |
UnsignedLength | mStrokeWidth |
StrokeTextSpacing | mLetterSpacing |
StrokeTextSpacing | mLineSpacing |
Alignment | mAlign |
bool | mMirrored |
bool | mAutoRotate |
const AttributeProvider * | mAttributeProvider |
for substituting placeholders in text More... | |
const StrokeFont * | mFont |
font used for calculating paths More... | |
QVector< Path > | mPaths |
QVector< Path > | mPathsRotated |
same as mPaths, but rotated by 180° More... | |
Additional Inherited Members | |
![]() | |
template<typename T > | |
static void | serializeObjectContainer (SExpression &root, const T &container, const QString &itemName) |
template<typename T > | |
static void | serializePointerContainer (SExpression &root, const T &container, const QString &itemName) |
template<typename T > | |
static void | serializePointerContainerUuidSorted (SExpression &root, const T &container, const QString &itemName) |
The StrokeText class.
typedef Slot<StrokeText, Event> OnEditedSlot |
|
strong |
|
delete |
|
noexcept |
|
noexcept |
|
noexcept |
|
explicit |
|
noexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
noexcept |
|
inlinenoexcept |
|
noexcept |
|
overridevirtual |
Serialize the object into an existing S-Expression node.
This method inserts/appends all attributes and childs of the object to an existing S-Expression node. The content which already exists in the given S-Expression node will not be removed.
root | The target DOM root node |
Exception | This method throws an exception if an error occurs. |
Implements SerializableObject.
|
noexcept |
|
inlinenoexcept |
|
noexcept |
Signal<StrokeText, Event> onEdited |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
for substituting placeholders in text
|
private |
font used for calculating paths
|
private |
stroke paths without transformations (mirror/rotate/translate)