20#ifndef LIBREPCB_CORE_NETLABEL_H
21#define LIBREPCB_CORE_NETLABEL_H
26#include "../serialization/serializableobjectlist.h"
27#include "../types/angle.h"
28#include "../types/point.h"
66 bool mirrored)
noexcept;
94 return !(*
this == rhs);
110 static constexpr const char*
tagname =
"label";
The Angle class is used to represent an angle (for example 12.75 degrees)
Definition: angle.h:78
The NetLabel class represents a net text label of a schematic.
Definition: netlabel.h:47
bool getMirrored() const noexcept
Definition: netlabel.h:74
const Angle & getRotation() const noexcept
Definition: netlabel.h:73
bool operator==(const NetLabel &rhs) const noexcept
Definition: netlabel.cpp:130
bool setPosition(const Point &position) noexcept
Definition: netlabel.cpp:83
Uuid mUuid
Definition: netlabel.h:99
Event
Definition: netlabel.h:52
bool operator!=(const NetLabel &rhs) const noexcept
Definition: netlabel.h:93
~NetLabel() noexcept
Definition: netlabel.cpp:66
Angle mRotation
Definition: netlabel.h:101
const Point & getPosition() const noexcept
Definition: netlabel.h:72
NetLabel & operator=(const NetLabel &rhs) noexcept
Definition: netlabel.cpp:138
void serialize(SExpression &root) const
Serialize into librepcb::SExpression node.
Definition: netlabel.cpp:117
Slot< NetLabel, Event > OnEditedSlot
Definition: netlabel.h:59
const Uuid & getUuid() const noexcept
Definition: netlabel.h:71
Signal< NetLabel, Event > onEdited
Definition: netlabel.h:58
bool setRotation(const Angle &rotation) noexcept
Definition: netlabel.cpp:93
bool setMirrored(const bool mirrored) noexcept
Definition: netlabel.cpp:103
bool mMirrored
Definition: netlabel.h:102
bool setUuid(const Uuid &uuid) noexcept
Definition: netlabel.cpp:73
Point mPosition
Definition: netlabel.h:100
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
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 Uuid class is a replacement for QUuid to get UUID strings without {} braces.
Definition: uuid.h:58
Definition: occmodel.cpp:77
Definition: netlabel.h:109
static constexpr const char * tagname
Definition: netlabel.h:110