20 #ifndef LIBREPCB_EDITOR_UNSIGNEDLENGTHEDIT_H 21 #define LIBREPCB_EDITOR_UNSIGNEDLENGTHEDIT_H void valueChanged(const librepcb::UnsignedLength &value, const librepcb::Length &diff)
The UnsignedLengthEdit class is a widget to view/edit librepcb::UnsignedLength values.
Definition: unsignedlengthedit.h:42
Definition: occmodel.cpp:77
UnsignedLengthEdit(QWidget *parent=nullptr) noexcept
Definition: unsignedlengthedit.cpp:37
virtual void valueChangedImpl(const Length &diff) noexcept override
Definition: unsignedlengthedit.cpp:80
void clipToMaximum(const UnsignedLength &value) noexcept
Definition: unsignedlengthedit.cpp:70
void clipToMinimum(const UnsignedLength &value) noexcept
Definition: unsignedlengthedit.cpp:64
The LengthEditBase class.
Definition: lengtheditbase.h:47
UnsignedLengthEdit & operator=(const UnsignedLengthEdit &rhs)=delete
The Length class is used to represent a length (for example 12.75 millimeters)
Definition: length.h:83
UnsignedLength getValue() const noexcept
Definition: unsignedlengthedit.cpp:48
void setValue(const UnsignedLength &value) noexcept
Definition: unsignedlengthedit.cpp:60
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition: length.h:696
virtual ~UnsignedLengthEdit() noexcept
Definition: unsignedlengthedit.cpp:41