##// END OF EJS Templates
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well...
code cleanup and rename of PythonQtWrapper to PythonQtInstanceWrapper and PythonQtMetaObjectWrapper to PythonQtClassWrapper, since these names match much better what these classes wrap, regarding that we are wrapping CPP objects as well git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@52 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r13:d46b01f7163a
r16:c68e0aff542c
Show More
PythonQtWrapper_QCursor.cpp
85 lines | 2.0 KiB | text/x-c | CppLexer
#include "PythonQtWrapper_QCursor.h"
#include <QPixmap>
#include <QVariant>
#include <qbitmap.h>
#include <qcursor.h>
#include <qdatastream.h>
#include <qpixmap.h>
#include <qpoint.h>
QCursor* PythonQtWrapper_QCursor::new_QCursor()
{
return new QCursor(); }
QCursor* PythonQtWrapper_QCursor::new_QCursor(Qt::CursorShape shape)
{
return new QCursor(shape); }
QCursor* PythonQtWrapper_QCursor::new_QCursor(const QBitmap& bitmap, const QBitmap& mask, int hotX, int hotY)
{
return new QCursor(bitmap, mask, hotX, hotY); }
QCursor* PythonQtWrapper_QCursor::new_QCursor(const QCursor& cursor)
{
return new QCursor(cursor); }
QCursor* PythonQtWrapper_QCursor::new_QCursor(const QPixmap& pixmap, int hotX, int hotY)
{
return new QCursor(pixmap, hotX, hotY); }
const QBitmap* PythonQtWrapper_QCursor::bitmap(QCursor* theWrappedObject) const
{
return theWrappedObject->bitmap();
}
QPoint PythonQtWrapper_QCursor::hotSpot(QCursor* theWrappedObject) const
{
return theWrappedObject->hotSpot();
}
const QBitmap* PythonQtWrapper_QCursor::mask(QCursor* theWrappedObject) const
{
return theWrappedObject->mask();
}
void PythonQtWrapper_QCursor::writeTo(QCursor* theWrappedObject, QDataStream& outS)
{
outS << *theWrappedObject;
}
void PythonQtWrapper_QCursor::readFrom(QCursor* theWrappedObject, QDataStream& inS)
{
inS >> *theWrappedObject;
}
QPixmap PythonQtWrapper_QCursor::pixmap(QCursor* theWrappedObject) const
{
return theWrappedObject->pixmap();
}
QPoint PythonQtWrapper_QCursor::static_QCursor_pos()
{
return QCursor::pos();
}
void PythonQtWrapper_QCursor::static_QCursor_setPos(const QPoint& p)
{
QCursor::setPos(p);
}
void PythonQtWrapper_QCursor::static_QCursor_setPos(int x, int y)
{
QCursor::setPos(x, y);
}
void PythonQtWrapper_QCursor::setShape(QCursor* theWrappedObject, Qt::CursorShape newShape)
{
theWrappedObject->setShape(newShape);
}
Qt::CursorShape PythonQtWrapper_QCursor::shape(QCursor* theWrappedObject) const
{
return theWrappedObject->shape();
}