PythonQtWrapper_QMouseEvent.cpp
72 lines
| 2.3 KiB
| text/x-c
|
CppLexer
|
r13 | #include "PythonQtWrapper_QMouseEvent.h" | ||
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
|
r13 | #include <QVariant> | ||
#include <qevent.h> | ||||
#include <qpoint.h> | ||||
QMouseEvent* PythonQtWrapper_QMouseEvent::new_QMouseEvent(QEvent::Type type, const QPoint& pos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) | ||||
{ | ||||
|
r24 | return new PythonQtShell_QMouseEvent(type, pos, button, buttons, modifiers); } | ||
|
r13 | |||
QMouseEvent* PythonQtWrapper_QMouseEvent::new_QMouseEvent(QEvent::Type type, const QPoint& pos, const QPoint& globalPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) | ||||
{ | ||||
|
r24 | return new PythonQtShell_QMouseEvent(type, pos, globalPos, button, buttons, modifiers); } | ||
|
r13 | |||
|
r73 | int PythonQtWrapper_QMouseEvent::globalX(QMouseEvent* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->globalX()); | ||
|
r13 | } | ||
|
r73 | Qt::MouseButton PythonQtWrapper_QMouseEvent::button(QMouseEvent* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->button()); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QMouseEvent::globalY(QMouseEvent* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->globalY()); | ||
|
r13 | } | ||
|
r73 | Qt::MouseButtons PythonQtWrapper_QMouseEvent::buttons(QMouseEvent* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->buttons()); | ||
|
r13 | } | ||
|
r73 | QMouseEvent* PythonQtWrapper_QMouseEvent::static_QMouseEvent_createExtendedMouseEvent(QEvent::Type type, const QPointF& pos, const QPoint& globalPos, Qt::MouseButton button, Qt::MouseButtons buttons, Qt::KeyboardModifiers modifiers) | ||
|
r13 | { | ||
|
r73 | return (QMouseEvent::createExtendedMouseEvent(type, pos, globalPos, button, buttons, modifiers)); | ||
|
r13 | } | ||
|
r73 | const QPoint* PythonQtWrapper_QMouseEvent::pos(QMouseEvent* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return &( theWrappedObject->pos()); | ||
|
r13 | } | ||
|
r73 | QPointF PythonQtWrapper_QMouseEvent::posF(QMouseEvent* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->posF()); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QMouseEvent::x(QMouseEvent* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->x()); | ||
|
r13 | } | ||
|
r73 | bool PythonQtWrapper_QMouseEvent::hasExtendedInfo(QMouseEvent* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->hasExtendedInfo()); | ||
|
r13 | } | ||
|
r73 | const QPoint* PythonQtWrapper_QMouseEvent::globalPos(QMouseEvent* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return &( theWrappedObject->globalPos()); | ||
|
r13 | } | ||
|
r73 | int PythonQtWrapper_QMouseEvent::y(QMouseEvent* theWrappedObject) const | ||
|
r13 | { | ||
|
r73 | return ( theWrappedObject->y()); | ||
|
r13 | } | ||