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;
The Length class is used to represent a length (for example 12.75 millimeters)
Definition: length.h:83
The MaskConfig class defines how to add automatic stop mask or solder paste.
Definition: maskconfig.h:45
static MaskConfig off() noexcept
Definition: maskconfig.h:66
bool isEnabled() const noexcept
Definition: maskconfig.h:55
static MaskConfig maybe(const tl::optional< Length > &offset) noexcept
Definition: maskconfig.h:73
static MaskConfig manual(const Length &offset) noexcept
Definition: maskconfig.h:70
MaskConfig & operator=(const MaskConfig &rhs) noexcept
Definition: maskconfig.cpp:58
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
tl::optional< Length > mOffset
nullopt means "from design rules"
Definition: maskconfig.h:82
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
const tl::optional< Length > & getOffset() const noexcept
Definition: maskconfig.h:56
Definition: occmodel.cpp:77