##// END OF EJS Templates
- added hasOwner method to manage ownership more nicely...
- added hasOwner method to manage ownership more nicely - added force flag to make delete() work - added check for hasOwner git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@51 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r15:ae998290bf19
Show More
PythonQtWrapper_QBrush.cpp
138 lines | 3.3 KiB | text/x-c | CppLexer
#include "PythonQtWrapper_QBrush.h"
#include <QPixmap>
#include <QVariant>
#include <qbrush.h>
#include <qcolor.h>
#include <qdatastream.h>
#include <qimage.h>
#include <qmatrix.h>
#include <qpixmap.h>
#include <qtransform.h>
QBrush* PythonQtWrapper_QBrush::new_QBrush()
{
return new QBrush(); }
QBrush* PythonQtWrapper_QBrush::new_QBrush(Qt::BrushStyle bs)
{
return new QBrush(bs); }
QBrush* PythonQtWrapper_QBrush::new_QBrush(Qt::GlobalColor color, const QPixmap& pixmap)
{
return new QBrush(color, pixmap); }
QBrush* PythonQtWrapper_QBrush::new_QBrush(const QBrush& brush)
{
return new QBrush(brush); }
QBrush* PythonQtWrapper_QBrush::new_QBrush(const QColor& color, Qt::BrushStyle bs)
{
return new QBrush(color, bs); }
QBrush* PythonQtWrapper_QBrush::new_QBrush(const QColor& color, const QPixmap& pixmap)
{
return new QBrush(color, pixmap); }
QBrush* PythonQtWrapper_QBrush::new_QBrush(const QGradient& gradient)
{
return new QBrush(gradient); }
QBrush* PythonQtWrapper_QBrush::new_QBrush(const QImage& image)
{
return new QBrush(image); }
QBrush* PythonQtWrapper_QBrush::new_QBrush(const QPixmap& pixmap)
{
return new QBrush(pixmap); }
const QColor& PythonQtWrapper_QBrush::color(QBrush* theWrappedObject) const
{
return theWrappedObject->color();
}
const QGradient* PythonQtWrapper_QBrush::gradient(QBrush* theWrappedObject) const
{
return theWrappedObject->gradient();
}
bool PythonQtWrapper_QBrush::isOpaque(QBrush* theWrappedObject) const
{
return theWrappedObject->isOpaque();
}
const QMatrix& PythonQtWrapper_QBrush::matrix(QBrush* theWrappedObject) const
{
return theWrappedObject->matrix();
}
void PythonQtWrapper_QBrush::writeTo(QBrush* theWrappedObject, QDataStream& arg__1)
{
arg__1 << *theWrappedObject;
}
bool PythonQtWrapper_QBrush::operator_equal(QBrush* theWrappedObject, const QBrush& b) const
{
return *theWrappedObject == b;
}
void PythonQtWrapper_QBrush::readFrom(QBrush* theWrappedObject, QDataStream& arg__1)
{
arg__1 >> *theWrappedObject;
}
void PythonQtWrapper_QBrush::setColor(QBrush* theWrappedObject, Qt::GlobalColor color)
{
theWrappedObject->setColor(color);
}
void PythonQtWrapper_QBrush::setColor(QBrush* theWrappedObject, const QColor& color)
{
theWrappedObject->setColor(color);
}
void PythonQtWrapper_QBrush::setMatrix(QBrush* theWrappedObject, const QMatrix& mat)
{
theWrappedObject->setMatrix(mat);
}
void PythonQtWrapper_QBrush::setStyle(QBrush* theWrappedObject, Qt::BrushStyle arg__1)
{
theWrappedObject->setStyle(arg__1);
}
void PythonQtWrapper_QBrush::setTexture(QBrush* theWrappedObject, const QPixmap& pixmap)
{
theWrappedObject->setTexture(pixmap);
}
void PythonQtWrapper_QBrush::setTextureImage(QBrush* theWrappedObject, const QImage& image)
{
theWrappedObject->setTextureImage(image);
}
void PythonQtWrapper_QBrush::setTransform(QBrush* theWrappedObject, const QTransform& arg__1)
{
theWrappedObject->setTransform(arg__1);
}
Qt::BrushStyle PythonQtWrapper_QBrush::style(QBrush* theWrappedObject) const
{
return theWrappedObject->style();
}
QPixmap PythonQtWrapper_QBrush::texture(QBrush* theWrappedObject) const
{
return theWrappedObject->texture();
}
QImage PythonQtWrapper_QBrush::textureImage(QBrush* theWrappedObject) const
{
return theWrappedObject->textureImage();
}
QTransform PythonQtWrapper_QBrush::transform(QBrush* theWrappedObject) const
{
return theWrappedObject->transform();
}