20 #ifndef LIBREPCB_CORE_MASKCONFIG_H 21 #define LIBREPCB_CORE_MASKCONFIG_H 28 #include <optional/tl/optional.hpp> 61 return !(*
this == rhs);
78 MaskConfig(
bool enabled,
const tl::optional<Length>& offset) noexcept;
tl::optional< Length > mOffset
nullopt means "from design rules"
Definition: maskconfig.h:82
The MaskConfig class defines how to add automatic stop mask or solder paste.
Definition: maskconfig.h:45
Definition: occmodel.cpp:76
bool operator!=(const MaskConfig &rhs) const noexcept
Definition: maskconfig.h:60
MaskConfig & operator=(const MaskConfig &rhs) noexcept
Definition: maskconfig.cpp:58
static MaskConfig manual(const Length &offset) noexcept
Definition: maskconfig.h:70
static MaskConfig automatic() noexcept
Definition: maskconfig.h:67
bool isEnabled() const noexcept
Definition: maskconfig.h:55
bool operator==(const MaskConfig &rhs) const noexcept
Definition: maskconfig.cpp:54
const tl::optional< Length > & getOffset() const noexcept
Definition: maskconfig.h:56
static MaskConfig off() noexcept
Definition: maskconfig.h:66
static MaskConfig maybe(const tl::optional< Length > &offset) noexcept
Definition: maskconfig.h:73
The Length class is used to represent a length (for example 12.75 millimeters)
Definition: length.h:82
bool mEnabled
Whether an automatic mask is added or not.
Definition: maskconfig.h:81
~MaskConfig() noexcept
Definition: maskconfig.cpp:47