Krita Source Code Documentation
Loading...
Searching...
No Matches
KisColorOptionData.cpp
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2022 Agata Cacko <cacko.azh@gmail.com>
3 * SPDX-FileCopyrightText: 2009, 2010 Lukáš Tvrdý (lukast.dev@gmail.com)
4 *
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 */
8
10
11
13{
14 hue = setting->getInt(COLOROP_HUE, 0);
16 value = setting->getInt(COLOROP_VALUE, 0);
20 fillBackground = setting->getBool(COLOROP_FILL_BG, false);
22 mixBgColor = setting->getBool(COLOROP_MIX_BG_COLOR, false);
23 return true;
24}
25
const QString COLOROP_SAMPLE_COLOR
const QString COLOROP_USE_RANDOM_HSV
const QString COLOROP_FILL_BG
const QString COLOROP_VALUE
const QString COLOROP_SATURATION
const QString COLOROP_COLOR_PER_PARTICLE
const QString COLOROP_HUE
const QString COLOROP_MIX_BG_COLOR
const QString COLOROP_USE_RANDOM_OPACITY
void write(KisPropertiesConfiguration *setting) const
bool read(const KisPropertiesConfiguration *setting)
virtual void setProperty(const QString &name, const QVariant &value)
bool getBool(const QString &name, bool def=false) const
int getInt(const QString &name, int def=0) const