10struct Swatch::Private {
14Swatch::Swatch(
const KisSwatch &kisSwatch,
QObject *parent)
18 d->swatch = kisSwatch;
37 d->swatch = rhs.d->swatch;
42 if (&rhs ==
this)
return *
this;
43 d->swatch = rhs.d->swatch;
47bool Swatch::operator==(
const Swatch &other)
const
49 return (d->swatch == other.d->swatch);
52bool Swatch::operator!=(
const Swatch &other)
const
54 return !(operator==(other));
59 return d->swatch.name();
62void Swatch::setName(
const QString &name)
64 d->swatch.setName(name);
69 return d->swatch.id();
71void Swatch::setId(
const QString &
id)
83 d->swatch.setColor(color->color());
86bool Swatch::spotColor()
const
88 return d->swatch.spotColor();
90void Swatch::setSpotColor(
bool spotColor)
92 d->swatch.setSpotColor(spotColor);
95bool Swatch::isValid()
const
97 return d->swatch.isValid();
100KisSwatch Swatch::kisSwatch()
const
The ManagedColor class is a class to handle colors that are color managed.
The Swatch class is a thin wrapper around the KisSwatch class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:12:25 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.