4 #pragma warning(disable : 4251) 26 MColor(
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a);
30 unsigned char red()
const;
31 unsigned char green()
const;
32 unsigned char blue()
const;
33 unsigned char alpha()
const;
40 bool operator==(
const MColor& c)
const;
74 Color(
int r,
int g,
int b,
int a = 255);
83 std::string
name()
const;
84 void setNamedColor(
const std::string&
name);
86 static std::list<std::string> colorNames();
90 void setOrigin(Origin o);
91 Origin origin()
const;
94 void setAlpha(
int alpha);
96 double alphaF()
const;
97 void setAlphaF(
double alpha);
102 void setRed(
int red);
103 void setGreen(
int green);
104 void setBlue(
int blue);
107 double greenF()
const;
108 double blueF()
const;
109 void setRedF(
double red);
110 void setGreenF(
double green);
111 void setBlueF(
double blue);
113 void getRgb(
int* r,
int* g,
int* b,
int* a = 0)
const;
114 void setRgb(
int r,
int g,
int b,
int a = 255);
116 void getRgbF(
double* r,
double* g,
double* b,
double* a = 0)
const;
117 void setRgbF(
double r,
double g,
double b,
double a = 1.0);
120 int saturation()
const;
124 double saturationF()
const;
125 double valueF()
const;
127 void getHsv(
int* h,
int* s,
int* v,
int* a = 0)
const;
128 void setHsv(
int h,
int s,
int v,
int a = 255);
130 void getHsvF(
double* h,
double* s,
double* v,
double* a = 0)
const;
131 void setHsvF(
double h,
double s,
double v,
double a = 1.0);
138 double cyanF()
const;
139 double magentaF()
const;
140 double yellowF()
const;
141 double blackF()
const;
143 void getCmyk(
int* c,
int* m,
int* y,
int* k,
int* a = 0);
144 void setCmyk(
int c,
int m,
int y,
int k,
int a = 255);
146 void getCmykF(
double* c,
double* m,
double* y,
double* k,
double* a = 0);
147 void setCmykF(
double c,
double m,
double y,
double k,
double a = 1.0);
151 Color toCmyk()
const;
153 Color convertTo(Spec colorSpec)
const;
155 static Color fromRgb(
int r,
int g,
int b,
int a = 255);
156 static Color fromRgbF(
double r,
double g,
double b,
double a = 1.0);
158 static Color fromHsv(
int h,
int s,
int v,
int a = 255);
159 static Color fromHsvF(
double h,
double s,
double v,
double a = 1.0);
161 static Color fromCmyk(
int c,
int m,
int y,
int k,
int a = 255);
162 static Color fromCmykF(
double c,
double m,
double y,
double k,
double a = 1.0);
164 Color light(
int f = 150)
const;
165 Color lighter(
int f = 150)
const;
166 Color dark(
int f = 200)
const;
167 Color darker(
int f = 200)
const;
171 bool isEqualIgnoreOrigin(
const Color& c)
const;
172 bool operator==(
const Color& c)
const;
174 bool operator<(
const Color& c)
const;
177 static int toCdwkColor(
const Color& color,
bool* isPrecise = NULL);
179 static Color fromCdwkColor(
const int index);
181 static int maximumCdwkColorNumber();
184 static int toGreyscaleColor(
const Color& color,
bool* isPrecise = NULL);
186 static Color fromGreyscaleColor(
const int index);
198 Color toCdwkOrigin()
const;
199 unsigned int rgb()
const;
200 unsigned int rgba()
const;
unsigned char b
Definition: Color.h:37
unsigned char g
Definition: Color.h:36
unsigned char r
Definition: Color.h:35
std::unique_ptr< CA_ColorP > pCA_ColorP
Definition: Color.h:14
#define BASE_EXPORT
Definition: base_defines.h:12
constexpr bool operator!=(const basic_hashed_string< Char > &lhs, const basic_hashed_string< Char > &rhs) ENTT_NOEXCEPT
Compares two hashed strings.
Definition: entt.hpp:570
Core::PropertyText name
Definition: CoreDocument.h:143
Origin
Definition: Color.h:65
friend std::size_t hash_value(const Color &b)
Definition: Color.h:188
unsigned char a
Definition: Color.h:38
Definition: AbstractXMLReader.h:8
Spec
Definition: Color.h:58