|
Krita Source Code Documentation
|
The Swatch class is a thin wrapper around the KisSwatch class. More...
#include <Swatch.h>
Inheritance diagram for Swatch:Classes | |
| struct | Private |
Public Slots | |
| ManagedColor * | color () const |
| QString | id () const |
| bool | isValid () const |
| QString | name () const |
| void | setColor (ManagedColor *color) |
| void | setId (const QString &id) |
| void | setName (const QString &name) |
| void | setSpotColor (bool spotColor) |
| bool | spotColor () const |
Public Member Functions | |
| bool | operator!= (const Swatch &other) const |
| Swatch & | operator= (const Swatch &rhs) |
| bool | operator== (const Swatch &other) const |
| Swatch (const Swatch &rhs, QObject *parent=0) | |
| Swatch (QObject *parent=0) | |
| virtual | ~Swatch () |
Private Member Functions | |
| KisSwatch | kisSwatch () const |
| Swatch (const KisSwatch &kisSwatch, QObject *parent=0) | |
Private Attributes | |
| Private *const | d |
Friends | |
| class | Palette |
| class | PaletteView |
The Swatch class is a thin wrapper around the KisSwatch class.
A Swatch is a single color that is part of a palette, that has a name and an id. A Swatch color can be a spot color.
|
private |
Definition at line 14 of file Swatch.cpp.
References d, kisSwatch(), and Swatch::Private::swatch.
|
explicit |
Definition at line 21 of file Swatch.cpp.
|
virtual |
| Swatch::Swatch | ( | const Swatch & | rhs, |
| QObject * | parent = 0 ) |
Definition at line 33 of file Swatch.cpp.
References d, and Swatch::Private::swatch.
|
slot |
Definition at line 76 of file Swatch.cpp.
References KisSwatch::color(), d, and Swatch::Private::swatch.
|
slot |
Definition at line 67 of file Swatch.cpp.
References d, KisSwatch::id(), and Swatch::Private::swatch.
|
slot |
Definition at line 95 of file Swatch.cpp.
References d, KisSwatch::isValid(), and Swatch::Private::swatch.
|
private |
Definition at line 100 of file Swatch.cpp.
References d, and Swatch::Private::swatch.
|
slot |
Definition at line 57 of file Swatch.cpp.
References d, KisSwatch::name(), and Swatch::Private::swatch.
| bool Swatch::operator!= | ( | const Swatch & | other | ) | const |
Definition at line 40 of file Swatch.cpp.
References d, and Swatch::Private::swatch.
| bool Swatch::operator== | ( | const Swatch & | other | ) | const |
Definition at line 47 of file Swatch.cpp.
References d, and Swatch::Private::swatch.
|
slot |
Definition at line 81 of file Swatch.cpp.
References ManagedColor::color(), color(), d, KisSwatch::setColor(), and Swatch::Private::swatch.
|
slot |
Definition at line 71 of file Swatch.cpp.
References d, KisSwatch::setId(), and Swatch::Private::swatch.
|
slot |
Definition at line 62 of file Swatch.cpp.
References d, name(), KisSwatch::setName(), and Swatch::Private::swatch.
|
slot |
Definition at line 90 of file Swatch.cpp.
References d, KisSwatch::setSpotColor(), spotColor(), and Swatch::Private::swatch.
|
slot |
Definition at line 86 of file Swatch.cpp.
References d, KisSwatch::spotColor(), and Swatch::Private::swatch.
|
friend |