The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Qt::Gui::QColor

PUBLIC METHODS

QColor()
QColor(Qt::GlobalColor color)
QColor(unsigned int rgb)
QColor(const QString & name)
QColor(const char * name)
QColor(const QColor & color)
QColor(QColor::Spec spec)
QColor(int r, int g, int b, int a)
QColor(int r, int g, int b, int a = 255)
static bool allowX11ColorNames()
int alpha()
qreal alphaF()
int black()
qreal blackF()
int blue()
qreal blueF()
static QStringList colorNames()
QColor convertTo(QColor::Spec colorSpec)
int cyan()
qreal cyanF()
QColor dark(int f)
QColor dark(int f = 200)
QColor darker(int f)
QColor darker(int f = 200)
static QColor fromCmyk(int c, int m, int y, int k, int a)
static QColor fromCmyk(int c, int m, int y, int k, int a = 255)
static QColor fromCmykF(qreal c, qreal m, qreal y, qreal k, qreal a)
static QColor fromCmykF(qreal c, qreal m, qreal y, qreal k, qreal a = 1.0)
static QColor fromHsl(int h, int s, int l, int a)
static QColor fromHsl(int h, int s, int l, int a = 255)
static QColor fromHslF(qreal h, qreal s, qreal l, qreal a)
static QColor fromHslF(qreal h, qreal s, qreal l, qreal a = 1.0)
static QColor fromHsv(int h, int s, int v, int a)
static QColor fromHsv(int h, int s, int v, int a = 255)
static QColor fromHsvF(qreal h, qreal s, qreal v, qreal a)
static QColor fromHsvF(qreal h, qreal s, qreal v, qreal a = 1.0)
static QColor fromRgb(unsigned int rgb)
static QColor fromRgb(int r, int g, int b, int a)
static QColor fromRgb(int r, int g, int b, int a = 255)
static QColor fromRgbF(qreal r, qreal g, qreal b, qreal a)
static QColor fromRgbF(qreal r, qreal g, qreal b, qreal a = 1.0)
static QColor fromRgba(unsigned int rgba)
void getCmyk(int * c, int * m, int * y, int * k, int * a)
void getCmyk(int * c, int * m, int * y, int * k, int * a = 0)
void getCmykF(qreal * c, qreal * m, qreal * y, qreal * k, qreal * a)
void getCmykF(qreal * c, qreal * m, qreal * y, qreal * k, qreal * a = 0)
void getHsl(int * h, int * s, int * l, int * a)
void getHsl(int * h, int * s, int * l, int * a = 0)
void getHslF(qreal * h, qreal * s, qreal * l, qreal * a)
void getHslF(qreal * h, qreal * s, qreal * l, qreal * a = 0)
void getHsv(int * h, int * s, int * v, int * a)
void getHsv(int * h, int * s, int * v, int * a = 0)
void getHsvF(qreal * h, qreal * s, qreal * v, qreal * a)
void getHsvF(qreal * h, qreal * s, qreal * v, qreal * a = 0)
void getRgb(int * r, int * g, int * b, int * a)
void getRgb(int * r, int * g, int * b, int * a = 0)
void getRgbF(qreal * r, qreal * g, qreal * b, qreal * a)
void getRgbF(qreal * r, qreal * g, qreal * b, qreal * a = 0)
int green()
qreal greenF()
int hslHue()
qreal hslHueF()
int hslSaturation()
qreal hslSaturationF()
int hsvHue()
qreal hsvHueF()
int hsvSaturation()
qreal hsvSaturationF()
int hue()
qreal hueF()
bool isValid()
static bool isValidColor(const QString & name)
QColor light(int f)
QColor light(int f = 150)
QColor lighter(int f)
QColor lighter(int f = 150)
int lightness()
qreal lightnessF()
int magenta()
qreal magentaF()
QString name()
QVariant operator QVariant()
bool operator!=(const QColor & c)
QColor & operator=(const QColor & arg0)
QColor & operator=(Qt::GlobalColor color)
bool operator==(const QColor & c)
int red()
qreal redF()
unsigned int rgb()
unsigned int rgba()
int saturation()
qreal saturationF()
static void setAllowX11ColorNames(bool enabled)
void setAlpha(int alpha)
void setAlphaF(qreal alpha)
void setBlue(int blue)
void setBlueF(qreal blue)
void setCmyk(int c, int m, int y, int k, int a)
void setCmyk(int c, int m, int y, int k, int a = 255)
void setCmykF(qreal c, qreal m, qreal y, qreal k, qreal a)
void setCmykF(qreal c, qreal m, qreal y, qreal k, qreal a = 1.0)
void setGreen(int green)
void setGreenF(qreal green)
void setHsl(int h, int s, int l, int a)
void setHsl(int h, int s, int l, int a = 255)
void setHslF(qreal h, qreal s, qreal l, qreal a)
void setHslF(qreal h, qreal s, qreal l, qreal a = 1.0)
void setHsv(int h, int s, int v, int a)
void setHsv(int h, int s, int v, int a = 255)
void setHsvF(qreal h, qreal s, qreal v, qreal a)
void setHsvF(qreal h, qreal s, qreal v, qreal a = 1.0)
void setNamedColor(const QString & name)
void setRed(int red)
void setRedF(qreal red)
void setRgb(unsigned int rgb)
void setRgb(int r, int g, int b, int a)
void setRgb(int r, int g, int b, int a = 255)
void setRgbF(qreal r, qreal g, qreal b, qreal a)
void setRgbF(qreal r, qreal g, qreal b, qreal a = 1.0)
void setRgba(unsigned int rgba)
QColor::Spec spec()
QColor toCmyk()
QColor toHsl()
QColor toHsv()
QColor toRgb()
int value()
qreal valueF()
int yellow()
qreal yellowF()

ENUM VALUES

Invalid
Rgb
Hsv
Cmyk
Hsl

EXPORT

None by default.

AUTHOR

Dongxu Ma <dongxu@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2011 - 2011 by Dongxu Ma

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

See http://dev.perl.org/licenses/artistic.html