##// END OF EJS Templates
added experimental compacting to avoid generation of hundreds of files that all include the same stuff...
added experimental compacting to avoid generation of hundreds of files that all include the same stuff git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@128 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r92:f97ec94c87a9
Show More
PythonQtWrapper_QGradient.h
43 lines | 1.8 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QGRADIENT_H
#define PYTHONQTWRAPPER_QGRADIENT_H
#include <qbrush.h>
#include <QObject>
#include <PythonQt.h>
#include <QVariant>
#include <qbrush.h>
#include <qcolor.h>
#include <qpair.h>
#include <qvector.h>
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<QPair<qreal , QColor > > 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<QPair<qreal , QColor > >& stops);
bool operator_equal(QGradient* theWrappedObject, const QGradient& gradient) const;
};
#endif // PYTHONQTWRAPPER_QGRADIENT_H