Krita
Palette.h
122 * @return The list of group names (list of string). This list follow the order the groups are defined in palette.
The ManagedColor class is a class to handle colors that are color managed.
Definition ManagedColor.h:46
void moveGroup(const QString &groupName, const QString &groupNameInsertBefore=QString())
Move the group groupName to position before group groupNameInsertBefore.
Definition Palette.cpp:214
Swatch * entryByIndexFromGroup(int index, const QString &groupName)
get color (swatch) from the given group index.
Definition Palette.cpp:161
void removeEntry(int index)
Remove the color entry at the given index in this palette.
Definition Palette.cpp:175
Q_DECL_DEPRECATED void changeGroupName(QString oldGroupName, QString newGroupName)
changeGroupName change the group name.
Definition Palette.cpp:203
int slotCountGroup(QString name)
number of slots for swatches in group This includes any empty slots not filled by a color.
Definition Palette.cpp:131
int numberOfEntries() const
number of filled colors (swatches) in palette NOTE: same as colorsCountTotal()
Definition Palette.cpp:40
Q_DECL_DEPRECATED Swatch * colorSetEntryFromGroup(int index, const QString &groupName)
colorSetEntryFromGroup
Definition Palette.cpp:155
Q_DECL_DEPRECATED Swatch * colorSetEntryByIndex(int index)
colorSetEntryByIndex get the colorsetEntry from the global index.
Definition Palette.cpp:139
int colorsCountTotal()
number of filled colors (swatches) in palette NOTE: same as numberOfEntries()
Definition Palette.cpp:111
void renameGroup(QString oldGroupName, QString newGroupName)
rename a group
Definition Palette.cpp:209
void setRowCountGroup(int rows, QString name)
Set the number of rows defined in the given group.
Definition Palette.cpp:72
int slotCount()
number of slots for swatches in palette This includes any empty slots not filled by a color.
Definition Palette.cpp:125
void removeGroup(QString name, bool keepColors=true)
Palette content can be organized in groups.
Definition Palette.cpp:105
int rowCountGroup(QString name)
The number of rows defined in the given group.
Definition Palette.cpp:64
void removeEntryFromGroup(int index, const QString &groupName)
Remove the color entry at the given index in the given group.
Definition Palette.cpp:193
void setComment(QString comment)
the comment or description associated with the palette.
Definition Palette.cpp:87
void addEntry(Swatch entry, QString groupName=QString())
add a color entry to a group.
Definition Palette.cpp:170
A Resource represents a gradient, pattern, brush tip, brush preset, palette or workspace definition.
Definition Resource.h:31
QObject(QObject *parent)
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 18 2025 12:12:36 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Apr 18 2025 12:12:36 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.