#include <QtGui/qcolor.h>
#ifndef QCOLOR_H
class QColor{
public: enum Spec{
Invalid = 0,
Rgb = 1,
Hsv = 2,
Cmyk = 3,
};
public: QColor(enum Qt::GlobalColor color);
public: QColor(QRgb rgb);
public: QColor(enum QColor::Spec spec);
public: class QString name() const
public: void setNamedColor(class QString const & name);
public: static class QStringList colorNames();
public: inline enum QColor::Spec spec() const
public: int alpha() const
public: void setAlpha(int alpha);
public: qreal alphaF() const
public: void setAlphaF(qreal alpha);
public: int red() const
public: int green() const
public: int blue() const
public: void setRed(int red);
public: void setGreen(int green);
public: void setBlue(int blue);
public: qreal redF() const
public: qreal greenF() const
public: qreal blueF() const
public: void setRedF(qreal red);
public: void setGreenF(qreal green);
public: void setBlueF(qreal blue);
public: void getRgb(int* r, int* g, int* b, int* a = 0) const
public: void setRgb(int r, int g, int b, int a = 255);
public: void getRgbF(qreal* r, qreal* g, qreal* b, qreal* a = 0) const
public: void setRgbF(qreal r, qreal g, qreal b, qreal a = 1.0e+0);
public: QRgb rgba() const
public: void setRgba(QRgb rgba);
public: QRgb rgb() const
public: void setRgb(QRgb rgb);
public: int hue() const
public: int saturation() const
public: int value() const
public: qreal hueF() const
public: qreal saturationF() const
public: qreal valueF() const
public: void getHsv(int* h, int* s, int* v, int* a = 0) const
public: void setHsv(int h, int s, int v, int a = 255);
public: void getHsvF(qreal* h, qreal* s, qreal* v, qreal* a = 0) const
public: void setHsvF(qreal h, qreal s, qreal v, qreal a = 1.0e+0);
public: int cyan() const
public: int magenta() const
public: int yellow() const
public: int black() const
public: qreal cyanF() const
public: qreal magentaF() const
public: qreal yellowF() const
public: qreal blackF() const
public: void getCmyk(int* c, int* m, int* y, int* k, int* a = 0);
public: void setCmyk(int c, int m, int y, int k, int a = 255);
public: void getCmykF(qreal* c, qreal* m, qreal* y, qreal* k, qreal* a = 0);
public: void setCmykF(qreal c, qreal m, qreal y, qreal k, qreal a = 1.0e+0);
public: class QColor toRgb() const
public: class QColor toHsv() const
public: class QColor toCmyk() const
public: class QColor convertTo(enum QColor::Spec colorSpec) const
public: static class QColor fromRgb(QRgb rgb);
public: static class QColor fromRgba(QRgb rgba);
public: static class QColor fromRgb(int r, int g, int b, int a = 255);
public: static class QColor fromRgbF(qreal r, qreal g, qreal b, qreal a = 1.0e+0);
public: static class QColor fromHsv(int h, int s, int v, int a = 255);
public: static class QColor fromHsvF(qreal h, qreal s, qreal v, qreal a = 1.0e+0);
public: static class QColor fromCmyk(int c, int m, int y, int k, int a = 255);
public: static class QColor fromCmykF(qreal c, qreal m, qreal y, qreal k, qreal a = 1.0e+0);
public: class QColor light(int f = 150) const
public: class QColor dark(int f = 200) const
public: class QColor& operator =(class QColor const &);
public: class QColor& operator =(enum Qt::GlobalColor color);
public: bool operator ==(class QColor const & c) const
public: bool operator !=(class QColor const & c) const
public: operator struct QVariant () const
#ifndef QT3_SUPPORT
private: QColor(int, int, int, enum QColor::Spec);
#endif
private: void invalidate();
private: enum QColor::Spec cspec;
private: union /*anonymous*/{
#ifndef QCOLOR_H
struct /*anonymous*/{
#ifndef QCOLOR_H
public: ushort alpha;
#endif // QCOLOR_H
#ifndef QCOLOR_H
public: ushort red;
#endif // QCOLOR_H
#ifndef QCOLOR_H
public: ushort green;
#endif // QCOLOR_H
#ifndef QCOLOR_H
public: ushort blue;
#endif // QCOLOR_H
#ifndef QCOLOR_H
public: ushort pad;
#endif // QCOLOR_H
#ifndef QCOLOR_H
}
#endif // QCOLOR_H
argb;
#endif // QCOLOR_H
#ifndef QCOLOR_H
struct /*anonymous*/{
#ifndef QCOLOR_H
public: ushort alpha;
#endif // QCOLOR_H
#ifndef QCOLOR_H
public: ushort hue;
#endif // QCOLOR_H
#ifndef QCOLOR_H
public: ushort saturation;
#endif // QCOLOR_H
#ifndef QCOLOR_H
public: ushort value;
#endif // QCOLOR_H
#ifndef QCOLOR_H
public: ushort pad;
#endif // QCOLOR_H
#ifndef QCOLOR_H
}
#endif // QCOLOR_H
ahsv;
#endif // QCOLOR_H
#ifndef QCOLOR_H
struct /*anonymous*/{
#ifndef QCOLOR_H
public: ushort alpha;
#endif // QCOLOR_H
#ifndef QCOLOR_H
public: ushort cyan;
#endif // QCOLOR_H
#ifndef QCOLOR_H
public: ushort magenta;
#endif // QCOLOR_H
#ifndef QCOLOR_H
public: ushort yellow;
#endif // QCOLOR_H
#ifndef QCOLOR_H
public: ushort black;
#endif // QCOLOR_H
#ifndef QCOLOR_H
}
#endif // QCOLOR_H
acmyk;
#endif // QCOLOR_H
#ifndef QCOLOR_H
}
#endif // QCOLOR_H
ct;
public: inline QColor();
public: inline QColor(int r, int g, int b, int a = 255);
public: inline QColor(char const * aname);
public: inline QColor(class QString const & aname);
public: inline QColor(class QColor const & acolor);
public: inline bool isValid() const
friend struct QColormap;
friend class QDataStream& operator <<(class QDataStream&, class QColor const &);
friend class QDataStream& operator >>(class QDataStream&, class QColor&);
};
#endif // QCOLOR_H