Krita Source Code Documentation
Loading...
Searching...
No Matches
KisColorOptionData Struct Reference

#include <KisColorOptionData.h>

+ Inheritance diagram for KisColorOptionData:

Public Member Functions

bool read (const KisPropertiesConfiguration *setting)
 
void write (KisPropertiesConfiguration *setting) const
 

Public Attributes

bool colorPerParticle {false}
 
bool fillBackground {false}
 
int hue {0}
 
bool mixBgColor {false}
 
bool sampleInputColor {false}
 
int saturation {0}
 
bool useRandomHSV {false}
 
bool useRandomOpacity {false}
 
int value {0}
 

Friends

bool operator== (const KisColorOptionData &lhs, const KisColorOptionData &rhs)
 

Detailed Description

Definition at line 31 of file KisColorOptionData.h.

Member Function Documentation

◆ read()

bool KisColorOptionData::read ( const KisPropertiesConfiguration * setting)

Definition at line 12 of file KisColorOptionData.cpp.

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}
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
bool getBool(const QString &name, bool def=false) const
int getInt(const QString &name, int def=0) const

References COLOROP_COLOR_PER_PARTICLE, COLOROP_FILL_BG, COLOROP_HUE, COLOROP_MIX_BG_COLOR, COLOROP_SAMPLE_COLOR, COLOROP_SATURATION, COLOROP_USE_RANDOM_HSV, COLOROP_USE_RANDOM_OPACITY, COLOROP_VALUE, colorPerParticle, fillBackground, KisPropertiesConfiguration::getBool(), KisPropertiesConfiguration::getInt(), hue, mixBgColor, sampleInputColor, saturation, useRandomHSV, useRandomOpacity, and value.

◆ write()

Friends And Related Symbol Documentation

◆ operator==

bool operator== ( const KisColorOptionData & lhs,
const KisColorOptionData & rhs )
friend

Definition at line 34 of file KisColorOptionData.h.

34 {
35 return lhs.useRandomHSV == rhs.useRandomHSV
38
39 && lhs.fillBackground == rhs.fillBackground
41 && lhs.mixBgColor == rhs.mixBgColor
42
43 && lhs.hue == rhs.hue
44 && lhs.saturation == rhs.saturation
45 && lhs.value == rhs.value
46 ;
47 }

Member Data Documentation

◆ colorPerParticle

bool KisColorOptionData::colorPerParticle {false}

Definition at line 55 of file KisColorOptionData.h.

55{false};

◆ fillBackground

bool KisColorOptionData::fillBackground {false}

Definition at line 54 of file KisColorOptionData.h.

54{false};

◆ hue

int KisColorOptionData::hue {0}

Definition at line 58 of file KisColorOptionData.h.

58{0};

◆ mixBgColor

bool KisColorOptionData::mixBgColor {false}

Definition at line 56 of file KisColorOptionData.h.

56{false};

◆ sampleInputColor

bool KisColorOptionData::sampleInputColor {false}

Definition at line 52 of file KisColorOptionData.h.

52{false};

◆ saturation

int KisColorOptionData::saturation {0}

Definition at line 59 of file KisColorOptionData.h.

59{0};

◆ useRandomHSV

bool KisColorOptionData::useRandomHSV {false}

Definition at line 50 of file KisColorOptionData.h.

50{false};

◆ useRandomOpacity

bool KisColorOptionData::useRandomOpacity {false}

Definition at line 51 of file KisColorOptionData.h.

51{false};

◆ value

int KisColorOptionData::value {0}

Definition at line 60 of file KisColorOptionData.h.

60{0};

The documentation for this struct was generated from the following files: