QColor

Undocumented in source but is binding to C++. You might be able to learn more by searching the web for its name.
extern (C++) extern (C++)
@QMetaType.Type.QColor
struct QColor {}

Constructors

this
this(qt.core.namespace.GlobalColor color)
Undocumented in source.
this
this(int r, int g, int b, int a)
Undocumented in source.
this
this(QRgb rgb)
Undocumented in source.
this
this(QRgba64 rgba64)
Undocumented in source.
this
this(const(QString) aname)
Undocumented in source.
this
this(QStringView aname)
Undocumented in source.
this
this(const(char)* aname)
Undocumented in source.
this
this(QLatin1String aname)
Undocumented in source.
this
this(Spec spec)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Enums

NameFormat
enum NameFormat
Undocumented in source.
Spec
enum Spec
Undocumented in source.

Functions

alpha
int alpha()
Undocumented in source.
alphaF
qreal alphaF()
Undocumented in source.
black
int black()
Undocumented in source.
blackF
qreal blackF()
Undocumented in source.
blue
int blue()
Undocumented in source.
blueF
qreal blueF()
Undocumented in source.
convertTo
QColor convertTo(Spec colorSpec)
Undocumented in source.
cyan
int cyan()
Undocumented in source.
cyanF
qreal cyanF()
Undocumented in source.
dark
QColor dark(int f)
Undocumented in source.
darker
QColor darker(int f)
Undocumented in source.
getCmyk
void getCmyk(int* c, int* m, int* y, int* k, int* a)
Undocumented in source.
getCmyk
void getCmyk(int* c, int* m, int* y, int* k, int* a)
Undocumented in source.
getCmykF
void getCmykF(qreal* c, qreal* m, qreal* y, qreal* k, qreal* a)
Undocumented in source.
getCmykF
void getCmykF(qreal* c, qreal* m, qreal* y, qreal* k, qreal* a)
Undocumented in source.
getHsl
void getHsl(int* h, int* s, int* l, int* a)
Undocumented in source.
getHslF
void getHslF(qreal* h, qreal* s, qreal* l, qreal* a)
Undocumented in source.
getHsv
void getHsv(int* h, int* s, int* v, int* a)
Undocumented in source.
getHsvF
void getHsvF(qreal* h, qreal* s, qreal* v, qreal* a)
Undocumented in source.
getRgb
void getRgb(int* r, int* g, int* b, int* a)
Undocumented in source.
getRgbF
void getRgbF(qreal* r, qreal* g, qreal* b, qreal* a)
Undocumented in source.
green
int green()
Undocumented in source.
greenF
qreal greenF()
Undocumented in source.
hslHue
int hslHue()
Undocumented in source.
hslHueF
qreal hslHueF()
Undocumented in source.
hslSaturation
int hslSaturation()
Undocumented in source.
hslSaturationF
qreal hslSaturationF()
Undocumented in source.
hsvHue
int hsvHue()
Undocumented in source.
hsvHueF
qreal hsvHueF()
Undocumented in source.
hsvSaturation
int hsvSaturation()
Undocumented in source.
hsvSaturationF
qreal hsvSaturationF()
Undocumented in source.
hue
int hue()
Undocumented in source.
hueF
qreal hueF()
Undocumented in source.
isValid
bool isValid()
Undocumented in source. Be warned that the author may not have intended to support it.
light
QColor light(int f)
Undocumented in source.
lighter
QColor lighter(int f)
Undocumented in source.
lightness
int lightness()
Undocumented in source.
lightnessF
qreal lightnessF()
Undocumented in source.
magenta
int magenta()
Undocumented in source.
magentaF
qreal magentaF()
Undocumented in source.
name
QString name()
Undocumented in source.
name
QString name(NameFormat format)
Undocumented in source.
red
int red()
Undocumented in source.
redF
qreal redF()
Undocumented in source.
rgb
QRgb rgb()
Undocumented in source.
rgba
QRgb rgba()
Undocumented in source.
rgba64
QRgba64 rgba64()
Undocumented in source.
saturation
int saturation()
Undocumented in source.
saturationF
qreal saturationF()
Undocumented in source.
setAlpha
void setAlpha(int alpha)
Undocumented in source.
setAlphaF
void setAlphaF(qreal alpha)
Undocumented in source.
setBlue
void setBlue(int blue)
Undocumented in source.
setBlueF
void setBlueF(qreal blue)
Undocumented in source.
setCmyk
void setCmyk(int c, int m, int y, int k, int a)
Undocumented in source.
setCmykF
void setCmykF(qreal c, qreal m, qreal y, qreal k, qreal a)
Undocumented in source.
setGreen
void setGreen(int green)
Undocumented in source.
setGreenF
void setGreenF(qreal green)
Undocumented in source.
setHsl
void setHsl(int h, int s, int l, int a)
Undocumented in source.
setHslF
void setHslF(qreal h, qreal s, qreal l, qreal a)
Undocumented in source.
setHsv
void setHsv(int h, int s, int v, int a)
Undocumented in source.
setHsvF
void setHsvF(qreal h, qreal s, qreal v, qreal a)
Undocumented in source.
setNamedColor
void setNamedColor(const(QString) name)
Undocumented in source.
setNamedColor
void setNamedColor(QStringView name)
Undocumented in source.
setNamedColor
void setNamedColor(QLatin1String name)
Undocumented in source.
setRed
void setRed(int red)
Undocumented in source.
setRedF
void setRedF(qreal red)
Undocumented in source.
setRgb
void setRgb(int r, int g, int b, int a)
Undocumented in source.
setRgb
void setRgb(QRgb rgb)
Undocumented in source.
setRgbF
void setRgbF(qreal r, qreal g, qreal b, qreal a)
Undocumented in source.
setRgba
void setRgba(QRgb rgba)
Undocumented in source.
setRgba64
void setRgba64(QRgba64 rgba)
Undocumented in source.
spec
Spec spec()
Undocumented in source. Be warned that the author may not have intended to support it.
toCmyk
QColor toCmyk()
Undocumented in source.
toExtendedRgb
QColor toExtendedRgb()
Undocumented in source.
toHsl
QColor toHsl()
Undocumented in source.
toHsv
QColor toHsv()
Undocumented in source.
toRgb
QColor toRgb()
Undocumented in source.
value
int value()
Undocumented in source.
valueF
qreal valueF()
Undocumented in source.
yellow
int yellow()
Undocumented in source.
yellowF
qreal yellowF()
Undocumented in source.

Static functions

colorNames
QStringList colorNames()
Undocumented in source.
fromCmyk
QColor fromCmyk(int c, int m, int y, int k, int a)
Undocumented in source.
fromCmykF
QColor fromCmykF(qreal c, qreal m, qreal y, qreal k, qreal a)
Undocumented in source.
fromHsl
QColor fromHsl(int h, int s, int l, int a)
Undocumented in source.
fromHslF
QColor fromHslF(qreal h, qreal s, qreal l, qreal a)
Undocumented in source.
fromHsv
QColor fromHsv(int h, int s, int v, int a)
Undocumented in source.
fromHsvF
QColor fromHsvF(qreal h, qreal s, qreal v, qreal a)
Undocumented in source.
fromRgb
QColor fromRgb(QRgb rgb)
Undocumented in source.
fromRgb
QColor fromRgb(int r, int g, int b, int a)
Undocumented in source.
fromRgbF
QColor fromRgbF(qreal r, qreal g, qreal b, qreal a)
Undocumented in source.
fromRgba
QColor fromRgba(QRgb rgba)
Undocumented in source.
fromRgba64
QColor fromRgba64(ushort r, ushort g, ushort b, ushort a)
Undocumented in source.
fromRgba64
QColor fromRgba64(QRgba64 rgba)
Undocumented in source.
isValidColor
bool isValidColor(const(QString) name)
Undocumented in source.
isValidColor
bool isValidColor(QStringView )
Undocumented in source.
isValidColor
bool isValidColor(QLatin1String )
Undocumented in source.

Meta