##// 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_QPaintDevice.h
55 lines | 2.2 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QPAINTDEVICE_H
#define PYTHONQTWRAPPER_QPAINTDEVICE_H
#include <qpaintdevice.h>
#include <QObject>
#include <PythonQt.h>
#include <QVariant>
#include <qpaintdevice.h>
#include <qpaintengine.h>
class PythonQtShell_QPaintDevice : public QPaintDevice
{
public:
PythonQtShell_QPaintDevice():QPaintDevice(),_wrapper(NULL) {};
virtual int devType() const;
virtual int metric(QPaintDevice::PaintDeviceMetric metric) const;
virtual QPaintEngine* paintEngine() const;
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtPublicPromoter_QPaintDevice : public QPaintDevice
{ public:
inline int promoted_metric(QPaintDevice::PaintDeviceMetric metric) const { return QPaintDevice::metric(metric); }
inline int promoted_devType() const { return QPaintDevice::devType(); }
};
class PythonQtWrapper_QPaintDevice : public QObject
{ Q_OBJECT
public:
Q_ENUMS(PaintDeviceMetric )
enum PaintDeviceMetric{
PdmWidth = QPaintDevice::PdmWidth, PdmHeight = QPaintDevice::PdmHeight, PdmWidthMM = QPaintDevice::PdmWidthMM, PdmHeightMM = QPaintDevice::PdmHeightMM, PdmNumColors = QPaintDevice::PdmNumColors, PdmDepth = QPaintDevice::PdmDepth, PdmDpiX = QPaintDevice::PdmDpiX, PdmDpiY = QPaintDevice::PdmDpiY, PdmPhysicalDpiX = QPaintDevice::PdmPhysicalDpiX, PdmPhysicalDpiY = QPaintDevice::PdmPhysicalDpiY};
public slots:
QPaintDevice* new_QPaintDevice();
void delete_QPaintDevice(QPaintDevice* obj) { delete obj; }
int depth(QPaintDevice* theWrappedObject) const;
int logicalDpiY(QPaintDevice* theWrappedObject) const;
int widthMM(QPaintDevice* theWrappedObject) const;
int physicalDpiX(QPaintDevice* theWrappedObject) const;
int logicalDpiX(QPaintDevice* theWrappedObject) const;
int width(QPaintDevice* theWrappedObject) const;
int heightMM(QPaintDevice* theWrappedObject) const;
int numColors(QPaintDevice* theWrappedObject) const;
bool paintingActive(QPaintDevice* theWrappedObject) const;
int metric(QPaintDevice* theWrappedObject, QPaintDevice::PaintDeviceMetric metric) const;
int devType(QPaintDevice* theWrappedObject) const;
int height(QPaintDevice* theWrappedObject) const;
int physicalDpiY(QPaintDevice* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QPAINTDEVICE_H