#ifndef PYTHONQTWRAPPER_QGRADIENT_H #define PYTHONQTWRAPPER_QGRADIENT_H #include #include #include #include #include #include #include #include class PythonQtWrapper_QGradient : public QObject { Q_OBJECT public: 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}; public slots: QGradient* new_QGradient(); QGradient* new_QGradient(const QGradient& other) { QGradient* a = new QGradient(); *((QGradient*)a) = other; return a; } void delete_QGradient(QGradient* obj) { delete obj; } QVector > stops(QGradient* theWrappedObject) const; QGradient::CoordinateMode coordinateMode(QGradient* theWrappedObject) const; QGradient::Spread spread(QGradient* theWrappedObject) const; void setColorAt(QGradient* theWrappedObject, qreal pos, const QColor& color); void setSpread(QGradient* theWrappedObject, QGradient::Spread spread); QGradient::Type type(QGradient* theWrappedObject) const; void setCoordinateMode(QGradient* theWrappedObject, QGradient::CoordinateMode mode); void setStops(QGradient* theWrappedObject, const QVector >& stops); bool operator_equal(QGradient* theWrappedObject, const QGradient& gradient) const; }; #endif // PYTHONQTWRAPPER_QGRADIENT_H