File indexing completed on 2024-12-22 04:16:04
0001 /* 0002 * SPDX-FileCopyrightText: 2022 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 #ifndef KISGRADIENTOPTION_H 0007 #define KISGRADIENTOPTION_H 0008 0009 #include <KisCurveOption.h> 0010 0011 class KoAbstractGradient; 0012 typedef QSharedPointer<KoAbstractGradient> KoAbstractGradientSP; 0013 0014 struct KisGradientOptionData; 0015 0016 class KisGradientOption : public KisCurveOption 0017 { 0018 public: 0019 KisGradientOption(const KisPropertiesConfiguration *setting); 0020 0021 void apply(KoColor& color, const KoAbstractGradientSP gradient, const KisPaintInformation& info) const; 0022 }; 0023 0024 #endif // KISGRADIENTOPTION_H