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