PythonQtWrapper_QColor.h
92 lines
| 4.4 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QCOLOR_H | ||
#define PYTHONQTWRAPPER_QCOLOR_H | ||||
#include <qcolor.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qcolor.h> | ||||
#include <qdatastream.h> | ||||
#include <qstringlist.h> | ||||
class PythonQtWrapper_QColor : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(Spec ) | ||||
enum Spec{ | ||||
Invalid = QColor::Invalid, Rgb = QColor::Rgb, Hsv = QColor::Hsv, Cmyk = QColor::Cmyk}; | ||||
public slots: | ||||
QColor* new_QColor(); | ||||
QColor* new_QColor(Qt::GlobalColor color); | ||||
QColor* new_QColor(const QColor& color); | ||||
QColor* new_QColor(const QString& name); | ||||
QColor* new_QColor(int r, int g, int b, int a = 255); | ||||
QColor* new_QColor(unsigned int rgb); | ||||
void delete_QColor(QColor* obj) { delete obj; } | ||||
florianlink
|
r28 | int alpha(QColor* theWrappedObject) const; | ||
void readFrom(QColor* theWrappedObject, QDataStream& arg__1); | ||||
qreal alphaF(QColor* theWrappedObject) const; | ||||
QColor lighter(QColor* theWrappedObject, int f = 150) const; | ||||
florianlink
|
r24 | QColor static_QColor_fromRgbF(qreal r, qreal g, qreal b, qreal a = 1.0); | ||
florianlink
|
r28 | unsigned int rgba(QColor* theWrappedObject) const; | ||
void setAlphaF(QColor* theWrappedObject, qreal alpha); | ||||
void setBlue(QColor* theWrappedObject, int blue); | ||||
void setNamedColor(QColor* theWrappedObject, const QString& name); | ||||
void setHsvF(QColor* theWrappedObject, qreal h, qreal s, qreal v, qreal a = 1.0); | ||||
void writeTo(QColor* theWrappedObject, QDataStream& arg__1); | ||||
qreal saturationF(QColor* theWrappedObject) const; | ||||
QColor static_QColor_fromCmyk(int c, int m, int y, int k, int a = 255); | ||||
unsigned int rgb(QColor* theWrappedObject) const; | ||||
florianlink
|
r13 | int black(QColor* theWrappedObject) const; | ||
florianlink
|
r28 | bool isValid(QColor* theWrappedObject) const; | ||
florianlink
|
r24 | int red(QColor* theWrappedObject) const; | ||
florianlink
|
r28 | QColor toHsv(QColor* theWrappedObject) const; | ||
int hue(QColor* theWrappedObject) const; | ||||
qreal valueF(QColor* theWrappedObject) const; | ||||
florianlink
|
r24 | qreal blackF(QColor* theWrappedObject) const; | ||
bool operator_equal(QColor* theWrappedObject, const QColor& c) const; | ||||
florianlink
|
r28 | void setRgb(QColor* theWrappedObject, int r, int g, int b, int a = 255); | ||
florianlink
|
r24 | qreal redF(QColor* theWrappedObject) const; | ||
florianlink
|
r28 | qreal blueF(QColor* theWrappedObject) const; | ||
QColor toCmyk(QColor* theWrappedObject) const; | ||||
QColor toRgb(QColor* theWrappedObject) const; | ||||
int cyan(QColor* theWrappedObject) const; | ||||
QStringList static_QColor_colorNames(); | ||||
void setBlueF(QColor* theWrappedObject, qreal blue); | ||||
florianlink
|
r13 | QColor darker(QColor* theWrappedObject, int f = 200) const; | ||
florianlink
|
r24 | int yellow(QColor* theWrappedObject) const; | ||
florianlink
|
r28 | void setGreen(QColor* theWrappedObject, int green); | ||
void setRgb(QColor* theWrappedObject, unsigned int rgb); | ||||
florianlink
|
r13 | QColor static_QColor_fromRgb(int r, int g, int b, int a = 255); | ||
florianlink
|
r28 | void setAlpha(QColor* theWrappedObject, int alpha); | ||
florianlink
|
r24 | void setHsv(QColor* theWrappedObject, int h, int s, int v, int a = 255); | ||
florianlink
|
r28 | QColor::Spec spec(QColor* theWrappedObject) const; | ||
florianlink
|
r24 | QColor convertTo(QColor* theWrappedObject, QColor::Spec colorSpec) const; | ||
florianlink
|
r28 | void setCmyk(QColor* theWrappedObject, int c, int m, int y, int k, int a = 255); | ||
florianlink
|
r24 | void setGreenF(QColor* theWrappedObject, qreal green); | ||
florianlink
|
r28 | int saturation(QColor* theWrappedObject) const; | ||
florianlink
|
r24 | QColor static_QColor_fromHsv(int h, int s, int v, int a = 255); | ||
florianlink
|
r28 | qreal magentaF(QColor* theWrappedObject) const; | ||
void setRgba(QColor* theWrappedObject, unsigned int rgba); | ||||
void setRgbF(QColor* theWrappedObject, qreal r, qreal g, qreal b, qreal a = 1.0); | ||||
QColor static_QColor_fromHsvF(qreal h, qreal s, qreal v, qreal a = 1.0); | ||||
int magenta(QColor* theWrappedObject) const; | ||||
int green(QColor* theWrappedObject) const; | ||||
void setCmykF(QColor* theWrappedObject, qreal c, qreal m, qreal y, qreal k, qreal a = 1.0); | ||||
florianlink
|
r24 | qreal yellowF(QColor* theWrappedObject) const; | ||
QColor static_QColor_fromRgb(unsigned int rgb); | ||||
florianlink
|
r28 | qreal greenF(QColor* theWrappedObject) const; | ||
florianlink
|
r24 | QColor static_QColor_fromCmykF(qreal c, qreal m, qreal y, qreal k, qreal a = 1.0); | ||
int blue(QColor* theWrappedObject) const; | ||||
qreal cyanF(QColor* theWrappedObject) const; | ||||
florianlink
|
r13 | qreal hueF(QColor* theWrappedObject) const; | ||
florianlink
|
r28 | void setRedF(QColor* theWrappedObject, qreal red); | ||
QColor static_QColor_fromRgba(unsigned int rgba); | ||||
void setRed(QColor* theWrappedObject, int red); | ||||
florianlink
|
r24 | QString name(QColor* theWrappedObject) const; | ||
florianlink
|
r28 | int value(QColor* theWrappedObject) const; | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QCOLOR_H | ||||