20#ifndef LIBREPCB_CORE_GRAPHICSEXPORTSETTINGS_H
21#define LIBREPCB_CORE_GRAPHICSEXPORTSETTINGS_H
26#include "../types/length.h"
27#include "../types/ratio.h"
78 const std::optional<UnsignedRatio>&
getScale() const noexcept {
87 const QList<std::pair<QString, QColor>>&
getColors() const noexcept {
91 QColor
getColor(const QString& colorName) const noexcept;
92 QColor
getFillColor(const QString& colorName,
bool isFilled,
93 bool isGrabArea) const noexcept;
123 void setColors(
const QList<std::pair<QString, QColor>>& colors)
noexcept {
130 int innerLayerCount = -1) noexcept;
138 QColor
getColorImpl(const QString& name) const noexcept;
Settings for librepcb::GraphicsExport.
Definition graphicsexportsettings.h:51
UnsignedLength mMarginBottom
Definition graphicsexportsettings.h:146
QColor getFillColor(const QString &colorName, bool isFilled, bool isGrabArea) const noexcept
Definition graphicsexportsettings.cpp:140
UnsignedLength mMarginLeft
Definition graphicsexportsettings.h:143
void setMinLineWidth(const UnsignedLength &width) noexcept
Definition graphicsexportsettings.h:120
bool getBlackWhite() const noexcept
Definition graphicsexportsettings.h:82
const QList< std::pair< QString, QColor > > & getColors() const noexcept
Definition graphicsexportsettings.h:87
void setMarginTop(const librepcb::UnsignedLength &margin) noexcept
Definition graphicsexportsettings.h:105
bool getRotate() const noexcept
Definition graphicsexportsettings.h:76
void setMirror(bool mirror) noexcept
Definition graphicsexportsettings.h:115
Orientation getOrientation() const noexcept
Definition graphicsexportsettings.h:69
UnsignedLength mMinLineWidth
Definition graphicsexportsettings.h:153
bool mBlackWhite
Definition graphicsexportsettings.h:151
QStringList getPaintOrder() const noexcept
Definition graphicsexportsettings.cpp:123
const UnsignedLength & getMinLineWidth() const noexcept
Definition graphicsexportsettings.h:84
std::optional< QPageSize > mPageSize
Definition graphicsexportsettings.h:141
const UnsignedLength & getMarginBottom() const noexcept
Definition graphicsexportsettings.h:73
bool getMirror() const noexcept
Definition graphicsexportsettings.h:77
UnsignedLength mMarginRight
Definition graphicsexportsettings.h:145
void setPageSize(const std::optional< QPageSize > &size) noexcept
Definition graphicsexportsettings.h:96
void setBackgroundColor(const QColor &c) noexcept
Definition graphicsexportsettings.h:119
const std::optional< QPageSize > & getPageSize() const noexcept
Definition graphicsexportsettings.h:66
void setPixmapDpi(int dpi) noexcept
Definition graphicsexportsettings.h:117
std::optional< UnsignedRatio > mScale
Definition graphicsexportsettings.h:149
bool mMirror
Definition graphicsexportsettings.h:148
int getPixmapDpi() const noexcept
Definition graphicsexportsettings.h:81
bool mRotate
Definition graphicsexportsettings.h:147
const QColor & getBackgroundColor() const noexcept
Definition graphicsexportsettings.h:83
void setMarginRight(const librepcb::UnsignedLength &margin) noexcept
Definition graphicsexportsettings.h:108
Orientation
Definition graphicsexportsettings.h:54
const UnsignedLength & getMarginLeft() const noexcept
Definition graphicsexportsettings.h:70
QColor getColor(const QString &colorName) const noexcept
Definition graphicsexportsettings.cpp:131
void setRotate(bool rotate) noexcept
Definition graphicsexportsettings.h:114
UnsignedLength mMarginTop
Definition graphicsexportsettings.h:144
void setMarginLeft(const librepcb::UnsignedLength &margin) noexcept
Definition graphicsexportsettings.h:102
QList< std::pair< QString, QColor > > mColors
Definition graphicsexportsettings.h:154
Orientation mOrientation
Definition graphicsexportsettings.h:142
void setBlackWhite(bool blackWhite) noexcept
Definition graphicsexportsettings.h:118
QColor getColorImpl(const QString &name) const noexcept
Definition graphicsexportsettings.cpp:291
void loadColorsFromTheme(const Theme &theme, bool schematic=true, bool board=true, int innerLayerCount=-1) noexcept
Definition graphicsexportsettings.cpp:162
void setColors(const QList< std::pair< QString, QColor > > &colors) noexcept
Definition graphicsexportsettings.h:123
const std::optional< UnsignedRatio > & getScale() const noexcept
Definition graphicsexportsettings.h:78
int mPixmapDpi
Definition graphicsexportsettings.h:150
const UnsignedLength & getMarginTop() const noexcept
Definition graphicsexportsettings.h:71
void setOrientation(Orientation orientation) noexcept
Definition graphicsexportsettings.h:99
const UnsignedLength & getMarginRight() const noexcept
Definition graphicsexportsettings.h:72
QColor mBackgroundColor
Definition graphicsexportsettings.h:152
void setMarginBottom(const librepcb::UnsignedLength &margin) noexcept
Definition graphicsexportsettings.h:111
void setScale(std::optional< UnsignedRatio > scale) noexcept
Definition graphicsexportsettings.h:116
GraphicsExportSettings() noexcept
Definition graphicsexportsettings.cpp:92
Theme class as used by librepcb::WorkspaceSettingsItem_Themes.
Definition theme.h:44
Definition occmodel.cpp:76
type_safe::constrained_type< Length, UnsignedLengthConstraint, UnsignedLengthVerifier > UnsignedLength
Definition length.h:694
type_safe::constrained_type< Ratio, UnsignedRatioConstraint, UnsignedRatioVerifier > UnsignedRatio
Definition ratio.h:328