1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
|
/*
File : BackgroundPrivate.h
Project : LabPlot
Description : Private members of Background
--------------------------------------------------------------------
SPDX-FileCopyrightText: 2022 Alexander Semke <alexander.semke@web.de>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef BACKGROUNDPRIVATE_H
#define BACKGROUNDPRIVATE_H
#include <QBrush>
#include <QPen>
class BackgroundPrivate {
public:
explicit BackgroundPrivate(Background*);
QString name() const;
void update();
void updatePosition();
QString prefix{QLatin1String("Background")};
bool enabledAvailable{false};
bool positionAvailable{false};
bool enabled{false};
Background::Position position{Background::Position::No};
Background::Type type{Background::Type::Color};
Background::ColorStyle colorStyle{Background::ColorStyle::SingleColor};
Background::ImageStyle imageStyle{Background::ImageStyle::Scaled};
Qt::BrushStyle brushStyle{Qt::SolidPattern};
QColor firstColor{Qt::white};
QColor secondColor{Qt::black};
QString fileName;
double opacity{1.0};
Background* const q{nullptr};
};
#endif
|