##// 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_QPaintDevice.h
34 lines | 1.6 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QPAINTDEVICE_H
#define PYTHONQTWRAPPER_QPAINTDEVICE_H
#include <qpaintdevice.h>
#include <QObject>
#include <QVariant>
#include <qpaintdevice.h>
#include <qpaintengine.h>
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:
void delete_QPaintDevice(QPaintDevice* obj) { delete obj; }
int depth(QPaintDevice* theWrappedObject) const;
int devType(QPaintDevice* theWrappedObject) const;
int height(QPaintDevice* theWrappedObject) const;
int heightMM(QPaintDevice* theWrappedObject) const;
int logicalDpiX(QPaintDevice* theWrappedObject) const;
int logicalDpiY(QPaintDevice* theWrappedObject) const;
int numColors(QPaintDevice* theWrappedObject) const;
QPaintEngine* paintEngine(QPaintDevice* theWrappedObject) const;
bool paintingActive(QPaintDevice* theWrappedObject) const;
int physicalDpiX(QPaintDevice* theWrappedObject) const;
int physicalDpiY(QPaintDevice* theWrappedObject) const;
int width(QPaintDevice* theWrappedObject) const;
int widthMM(QPaintDevice* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QPAINTDEVICE_H