##// END OF EJS Templates
fixed builtin package name...
fixed builtin package name git-svn-id: svn://svn.code.sf.net/p/pythonqt/code/trunk@130 ea8d5007-eb21-0410-b261-ccb3ea6e24a9

File last commit:

r73:40dc86970256
r94:f55700c8b936
Show More
PythonQtWrapper_QTabletEvent.h
52 lines | 2.8 KiB | text/x-c | CLexer
#ifndef PYTHONQTWRAPPER_QTABLETEVENT_H
#define PYTHONQTWRAPPER_QTABLETEVENT_H
#include <qevent.h>
#include <QObject>
#include <PythonQt.h>
#include <QVariant>
#include <qpoint.h>
class PythonQtShell_QTabletEvent : public QTabletEvent
{
public:
PythonQtShell_QTabletEvent(QEvent::Type t, const QPoint& pos, const QPoint& globalPos, const QPointF& hiResGlobalPos, int device, int pointerType, qreal pressure, int xTilt, int yTilt, qreal tangentialPressure, qreal rotation, int z, Qt::KeyboardModifiers keyState, qint64 uniqueID):QTabletEvent(t, pos, globalPos, hiResGlobalPos, device, pointerType, pressure, xTilt, yTilt, tangentialPressure, rotation, z, keyState, uniqueID),_wrapper(NULL) {};
PythonQtInstanceWrapper* _wrapper;
};
class PythonQtWrapper_QTabletEvent : public QObject
{ Q_OBJECT
public:
Q_ENUMS(TabletDevice PointerType )
enum TabletDevice{
NoDevice = QTabletEvent::NoDevice, Puck = QTabletEvent::Puck, Stylus = QTabletEvent::Stylus, Airbrush = QTabletEvent::Airbrush, FourDMouse = QTabletEvent::FourDMouse, XFreeEraser = QTabletEvent::XFreeEraser, RotationStylus = QTabletEvent::RotationStylus};
enum PointerType{
UnknownPointer = QTabletEvent::UnknownPointer, Pen = QTabletEvent::Pen, Cursor = QTabletEvent::Cursor, Eraser = QTabletEvent::Eraser};
public slots:
QTabletEvent* new_QTabletEvent(QEvent::Type t, const QPoint& pos, const QPoint& globalPos, const QPointF& hiResGlobalPos, int device, int pointerType, qreal pressure, int xTilt, int yTilt, qreal tangentialPressure, qreal rotation, int z, Qt::KeyboardModifiers keyState, qint64 uniqueID);
void delete_QTabletEvent(QTabletEvent* obj) { delete obj; }
qreal tangentialPressure(QTabletEvent* theWrappedObject) const;
QTabletEvent::TabletDevice device(QTabletEvent* theWrappedObject) const;
const QPoint* globalPos(QTabletEvent* theWrappedObject) const;
int x(QTabletEvent* theWrappedObject) const;
int globalX(QTabletEvent* theWrappedObject) const;
QTabletEvent::PointerType pointerType(QTabletEvent* theWrappedObject) const;
const QPointF* hiResGlobalPos(QTabletEvent* theWrappedObject) const;
qreal hiResGlobalX(QTabletEvent* theWrappedObject) const;
qreal hiResGlobalY(QTabletEvent* theWrappedObject) const;
int xTilt(QTabletEvent* theWrappedObject) const;
int z(QTabletEvent* theWrappedObject) const;
qreal rotation(QTabletEvent* theWrappedObject) const;
int yTilt(QTabletEvent* theWrappedObject) const;
qreal pressure(QTabletEvent* theWrappedObject) const;
qint64 uniqueId(QTabletEvent* theWrappedObject) const;
int globalY(QTabletEvent* theWrappedObject) const;
const QPoint* pos(QTabletEvent* theWrappedObject) const;
int y(QTabletEvent* theWrappedObject) const;
};
#endif // PYTHONQTWRAPPER_QTABLETEVENT_H