PythonQtWrapper_QGradient.h
43 lines
| 1.8 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QGRADIENT_H | ||
#define PYTHONQTWRAPPER_QGRADIENT_H | ||||
#include <qbrush.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qbrush.h> | ||||
#include <qcolor.h> | ||||
#include <qpair.h> | ||||
#include <qvector.h> | ||||
class PythonQtWrapper_QGradient : public QObject | ||||
{ Q_OBJECT | ||||
public: | ||||
florianlink
|
r24 | Q_ENUMS(CoordinateMode Spread Type ) | ||
enum CoordinateMode{ | ||||
LogicalMode = QGradient::LogicalMode, StretchToDeviceMode = QGradient::StretchToDeviceMode, ObjectBoundingMode = QGradient::ObjectBoundingMode}; | ||||
enum Spread{ | ||||
PadSpread = QGradient::PadSpread, ReflectSpread = QGradient::ReflectSpread, RepeatSpread = QGradient::RepeatSpread}; | ||||
enum Type{ | ||||
LinearGradient = QGradient::LinearGradient, RadialGradient = QGradient::RadialGradient, ConicalGradient = QGradient::ConicalGradient, NoGradient = QGradient::NoGradient}; | ||||
florianlink
|
r13 | public slots: | ||
QGradient* new_QGradient(); | ||||
florianlink
|
r24 | QGradient* new_QGradient(const QGradient& other) { | ||
QGradient* a = new QGradient(); | ||||
*((QGradient*)a) = other; | ||||
return a; } | ||||
florianlink
|
r13 | void delete_QGradient(QGradient* obj) { delete obj; } | ||
florianlink
|
r73 | QVector<QPair<qreal , QColor > > stops(QGradient* theWrappedObject) const; | ||
florianlink
|
r24 | QGradient::CoordinateMode coordinateMode(QGradient* theWrappedObject) const; | ||
QGradient::Spread spread(QGradient* theWrappedObject) const; | ||||
florianlink
|
r73 | void setColorAt(QGradient* theWrappedObject, qreal pos, const QColor& color); | ||
florianlink
|
r28 | void setSpread(QGradient* theWrappedObject, QGradient::Spread spread); | ||
florianlink
|
r73 | QGradient::Type type(QGradient* theWrappedObject) const; | ||
florianlink
|
r28 | void setCoordinateMode(QGradient* theWrappedObject, QGradient::CoordinateMode mode); | ||
void setStops(QGradient* theWrappedObject, const QVector<QPair<qreal , QColor > >& stops); | ||||
florianlink
|
r73 | bool operator_equal(QGradient* theWrappedObject, const QGradient& gradient) const; | ||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QGRADIENT_H | ||||