File indexing completed on 2025-01-26 03:34:15

0001 /*
0002     File                 : SymbolPrivate.h
0003     Project              : LabPlot
0004     Description          : Private members of Symbol
0005     --------------------------------------------------------------------
0006     SPDX-FileCopyrightText: 2021-2023 Alexander Semke <alexander.semke@web.de>
0007 
0008     SPDX-License-Identifier: GPL-2.0-or-later
0009 */
0010 
0011 #ifndef SYMBOLPRIVATE_H
0012 #define SYMBOLPRIVATE_H
0013 
0014 #include <QBrush>
0015 #include <QPen>
0016 
0017 class SymbolPrivate {
0018 public:
0019     explicit SymbolPrivate(Symbol*);
0020 
0021     QString name() const;
0022     void update();
0023     void updateSymbols();
0024     void updatePixmap();
0025 
0026     Symbol::Style style{Symbol::Style::NoSymbols};
0027     QBrush brush;
0028     QPen pen;
0029     QColor color{Qt::black};
0030     qreal opacity{1.0};
0031     qreal rotationAngle{0.0};
0032     qreal size{1.0};
0033 
0034     Symbol* const q{nullptr};
0035 };
0036 
0037 #endif