PythonQtWrapper_QGraphicsItem.h
284 lines
| 22.0 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QGRAPHICSITEM_H | ||
#define PYTHONQTWRAPPER_QGRAPHICSITEM_H | ||||
#include <qgraphicsitem.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qcoreevent.h> | ||||
#include <qcursor.h> | ||||
#include <qevent.h> | ||||
#include <qgraphicsitem.h> | ||||
#include <qgraphicsscene.h> | ||||
#include <qgraphicssceneevent.h> | ||||
#include <qgraphicswidget.h> | ||||
#include <qlist.h> | ||||
#include <qpainter.h> | ||||
#include <qpainterpath.h> | ||||
#include <qpoint.h> | ||||
#include <qpolygon.h> | ||||
#include <qrect.h> | ||||
#include <qregion.h> | ||||
#include <qsize.h> | ||||
#include <qstyleoption.h> | ||||
#include <qtransform.h> | ||||
#include <qwidget.h> | ||||
florianlink
|
r24 | class PythonQtShell_QGraphicsItem : public QGraphicsItem | ||
{ | ||||
public: | ||||
PythonQtShell_QGraphicsItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0):QGraphicsItem(parent, scene),_wrapper(NULL) {}; | ||||
virtual void advance(int phase); | ||||
virtual QRectF boundingRect() const; | ||||
virtual bool collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; | ||||
virtual bool collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; | ||||
virtual bool contains(const QPointF& point) const; | ||||
virtual void contextMenuEvent(QGraphicsSceneContextMenuEvent* event); | ||||
virtual void dragEnterEvent(QGraphicsSceneDragDropEvent* event); | ||||
virtual void dragLeaveEvent(QGraphicsSceneDragDropEvent* event); | ||||
virtual void dragMoveEvent(QGraphicsSceneDragDropEvent* event); | ||||
virtual void dropEvent(QGraphicsSceneDragDropEvent* event); | ||||
virtual QVariant extension(const QVariant& variant) const; | ||||
virtual void focusInEvent(QFocusEvent* event); | ||||
virtual void focusOutEvent(QFocusEvent* event); | ||||
virtual void hoverEnterEvent(QGraphicsSceneHoverEvent* event); | ||||
virtual void hoverLeaveEvent(QGraphicsSceneHoverEvent* event); | ||||
virtual void hoverMoveEvent(QGraphicsSceneHoverEvent* event); | ||||
virtual void inputMethodEvent(QInputMethodEvent* event); | ||||
virtual QVariant inputMethodQuery(Qt::InputMethodQuery query) const; | ||||
virtual bool isObscuredBy(const QGraphicsItem* item) const; | ||||
virtual QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value); | ||||
virtual void keyPressEvent(QKeyEvent* event); | ||||
virtual void keyReleaseEvent(QKeyEvent* event); | ||||
virtual void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event); | ||||
virtual void mouseMoveEvent(QGraphicsSceneMouseEvent* event); | ||||
virtual void mousePressEvent(QGraphicsSceneMouseEvent* event); | ||||
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent* event); | ||||
virtual QPainterPath opaqueArea() const; | ||||
virtual void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget = 0); | ||||
virtual bool sceneEvent(QEvent* event); | ||||
virtual bool sceneEventFilter(QGraphicsItem* watched, QEvent* event); | ||||
virtual void setExtension(QGraphicsItem::Extension extension, const QVariant& variant); | ||||
virtual QPainterPath shape() const; | ||||
virtual bool supportsExtension(QGraphicsItem::Extension extension) const; | ||||
virtual int type() const; | ||||
virtual void wheelEvent(QGraphicsSceneWheelEvent* event); | ||||
PythonQtInstanceWrapper* _wrapper; | ||||
}; | ||||
class PythonQtPublicPromoter_QGraphicsItem : public QGraphicsItem | ||||
{ public: | ||||
florianlink
|
r73 | inline void promoted_hoverMoveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsItem::hoverMoveEvent(event); } | ||
inline void promoted_dropEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItem::dropEvent(event); } | ||||
florianlink
|
r28 | inline void promoted_mouseReleaseEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItem::mouseReleaseEvent(event); } | ||
florianlink
|
r73 | inline void promoted_dragLeaveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItem::dragLeaveEvent(event); } | ||
inline void promoted_advance(int phase) { QGraphicsItem::advance(phase); } | ||||
florianlink
|
r28 | inline bool promoted_isObscuredBy(const QGraphicsItem* item) const { return QGraphicsItem::isObscuredBy(item); } | ||
florianlink
|
r73 | inline int promoted_type() const { return QGraphicsItem::type(); } | ||
inline bool promoted_collidesWithItem(const QGraphicsItem* other, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const { return QGraphicsItem::collidesWithItem(other, mode); } | ||||
inline void promoted_dragMoveEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItem::dragMoveEvent(event); } | ||||
inline void promoted_mousePressEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItem::mousePressEvent(event); } | ||||
florianlink
|
r28 | inline void promoted_mouseMoveEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItem::mouseMoveEvent(event); } | ||
florianlink
|
r73 | inline QVariant promoted_itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant& value) { return QGraphicsItem::itemChange(change, value); } | ||
florianlink
|
r28 | inline void promoted_focusOutEvent(QFocusEvent* event) { QGraphicsItem::focusOutEvent(event); } | ||
florianlink
|
r73 | inline void promoted_keyReleaseEvent(QKeyEvent* event) { QGraphicsItem::keyReleaseEvent(event); } | ||
inline void promoted_dragEnterEvent(QGraphicsSceneDragDropEvent* event) { QGraphicsItem::dragEnterEvent(event); } | ||||
inline QVariant promoted_inputMethodQuery(Qt::InputMethodQuery query) const { return QGraphicsItem::inputMethodQuery(query); } | ||||
inline bool promoted_sceneEventFilter(QGraphicsItem* watched, QEvent* event) { return QGraphicsItem::sceneEventFilter(watched, event); } | ||||
florianlink
|
r28 | inline bool promoted_collidesWithPath(const QPainterPath& path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const { return QGraphicsItem::collidesWithPath(path, mode); } | ||
florianlink
|
r73 | inline void promoted_wheelEvent(QGraphicsSceneWheelEvent* event) { QGraphicsItem::wheelEvent(event); } | ||
florianlink
|
r28 | inline QVariant promoted_extension(const QVariant& variant) const { return QGraphicsItem::extension(variant); } | ||
florianlink
|
r73 | inline void promoted_mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event) { QGraphicsItem::mouseDoubleClickEvent(event); } | ||
inline QPainterPath promoted_shape() const { return QGraphicsItem::shape(); } | ||||
inline bool promoted_contains(const QPointF& point) const { return QGraphicsItem::contains(point); } | ||||
inline void promoted_hoverLeaveEvent(QGraphicsSceneHoverEvent* event) { QGraphicsItem::hoverLeaveEvent(event); } | ||||
florianlink
|
r28 | inline void promoted_contextMenuEvent(QGraphicsSceneContextMenuEvent* event) { QGraphicsItem::contextMenuEvent(event); } | ||
florianlink
|
r73 | inline void promoted_hoverEnterEvent(QGraphicsSceneHoverEvent* event) { QGraphicsItem::hoverEnterEvent(event); } | ||
inline void promoted_inputMethodEvent(QInputMethodEvent* event) { QGraphicsItem::inputMethodEvent(event); } | ||||
inline QPainterPath promoted_opaqueArea() const { return QGraphicsItem::opaqueArea(); } | ||||
inline void promoted_focusInEvent(QFocusEvent* event) { QGraphicsItem::focusInEvent(event); } | ||||
inline bool promoted_sceneEvent(QEvent* event) { return QGraphicsItem::sceneEvent(event); } | ||||
inline void promoted_keyPressEvent(QKeyEvent* event) { QGraphicsItem::keyPressEvent(event); } | ||||
florianlink
|
r24 | }; | ||
florianlink
|
r13 | class PythonQtWrapper_QGraphicsItem : public QObject | ||
{ Q_OBJECT | ||||
public: | ||||
Q_ENUMS(CacheMode enum_1 GraphicsItemFlag GraphicsItemChange ) | ||||
florianlink
|
r73 | Q_FLAGS(GraphicsItemFlags ) | ||
florianlink
|
r13 | enum CacheMode{ | ||
NoCache = QGraphicsItem::NoCache, ItemCoordinateCache = QGraphicsItem::ItemCoordinateCache, DeviceCoordinateCache = QGraphicsItem::DeviceCoordinateCache}; | ||||
enum enum_1{ | ||||
Type = QGraphicsItem::Type, UserType = QGraphicsItem::UserType}; | ||||
enum GraphicsItemFlag{ | ||||
ItemIsMovable = QGraphicsItem::ItemIsMovable, ItemIsSelectable = QGraphicsItem::ItemIsSelectable, ItemIsFocusable = QGraphicsItem::ItemIsFocusable, ItemClipsToShape = QGraphicsItem::ItemClipsToShape, ItemClipsChildrenToShape = QGraphicsItem::ItemClipsChildrenToShape, ItemIgnoresTransformations = QGraphicsItem::ItemIgnoresTransformations}; | ||||
enum GraphicsItemChange{ | ||||
ItemPositionChange = QGraphicsItem::ItemPositionChange, ItemMatrixChange = QGraphicsItem::ItemMatrixChange, ItemVisibleChange = QGraphicsItem::ItemVisibleChange, ItemEnabledChange = QGraphicsItem::ItemEnabledChange, ItemSelectedChange = QGraphicsItem::ItemSelectedChange, ItemParentChange = QGraphicsItem::ItemParentChange, ItemChildAddedChange = QGraphicsItem::ItemChildAddedChange, ItemChildRemovedChange = QGraphicsItem::ItemChildRemovedChange, ItemTransformChange = QGraphicsItem::ItemTransformChange, ItemPositionHasChanged = QGraphicsItem::ItemPositionHasChanged, ItemTransformHasChanged = QGraphicsItem::ItemTransformHasChanged, ItemSceneChange = QGraphicsItem::ItemSceneChange, ItemVisibleHasChanged = QGraphicsItem::ItemVisibleHasChanged, ItemEnabledHasChanged = QGraphicsItem::ItemEnabledHasChanged, ItemSelectedHasChanged = QGraphicsItem::ItemSelectedHasChanged, ItemParentHasChanged = QGraphicsItem::ItemParentHasChanged, ItemSceneHasChanged = QGraphicsItem::ItemSceneHasChanged, ItemCursorChange = QGraphicsItem::ItemCursorChange, ItemCursorHasChanged = QGraphicsItem::ItemCursorHasChanged, ItemToolTipChange = QGraphicsItem::ItemToolTipChange, ItemToolTipHasChanged = QGraphicsItem::ItemToolTipHasChanged, ItemFlagsChange = QGraphicsItem::ItemFlagsChange, ItemFlagsHaveChanged = QGraphicsItem::ItemFlagsHaveChanged, ItemZValueChange = QGraphicsItem::ItemZValueChange, ItemZValueHasChanged = QGraphicsItem::ItemZValueHasChanged}; | ||||
florianlink
|
r73 | Q_DECLARE_FLAGS(GraphicsItemFlags, GraphicsItemFlag) | ||
florianlink
|
r13 | public slots: | ||
florianlink
|
r24 | QGraphicsItem* new_QGraphicsItem(QGraphicsItem* parent = 0, QGraphicsScene* scene = 0); | ||
florianlink
|
r13 | void delete_QGraphicsItem(QGraphicsItem* obj) { delete obj; } | ||
florianlink
|
r24 | bool hasOwner(QGraphicsItem* theWrappedObject) { return theWrappedObject->scene()!=NULL || theWrappedObject->parentItem()!=NULL; } | ||
florianlink
|
r73 | void hoverMoveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneHoverEvent* event); | ||
QPolygonF mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const; | ||||
QPointF mapToParent(QGraphicsItem* theWrappedObject, qreal x, qreal y) const; | ||||
void dropEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event); | ||||
void setPos(QGraphicsItem* theWrappedObject, const QPointF& pos); | ||||
QRectF sceneBoundingRect(QGraphicsItem* theWrappedObject) const; | ||||
void mouseReleaseEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event); | ||||
QGraphicsItem* parentItem(QGraphicsItem* theWrappedObject) const; | ||||
QGraphicsItem::CacheMode cacheMode(QGraphicsItem* theWrappedObject) const; | ||||
void dragLeaveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event); | ||||
bool isVisible(QGraphicsItem* theWrappedObject) const; | ||||
void advance(QGraphicsItem* theWrappedObject, int phase); | ||||
QPolygonF mapFromParent(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const; | ||||
florianlink
|
r28 | void setVisible(QGraphicsItem* theWrappedObject, bool visible); | ||
florianlink
|
r73 | void update(QGraphicsItem* theWrappedObject, const QRectF& rect = QRectF()); | ||
florianlink
|
r28 | void setBoundingRegionGranularity(QGraphicsItem* theWrappedObject, qreal granularity); | ||
florianlink
|
r73 | bool isObscuredBy(QGraphicsItem* theWrappedObject, const QGraphicsItem* item) const; | ||
int type(QGraphicsItem* theWrappedObject) const; | ||||
QList<QGraphicsItem* > collidingItems(QGraphicsItem* theWrappedObject, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; | ||||
QPointF mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y) const; | ||||
Qt::MouseButtons acceptedMouseButtons(QGraphicsItem* theWrappedObject) const; | ||||
florianlink
|
r24 | QPointF mapFromScene(QGraphicsItem* theWrappedObject, const QPointF& point) const; | ||
void setAcceptsHoverEvents(QGraphicsItem* theWrappedObject, bool enabled); | ||||
florianlink
|
r73 | bool collidesWithItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* other, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; | ||
void setPos(QGraphicsItem* theWrappedObject, qreal x, qreal y); | ||||
florianlink
|
r24 | void setAcceptDrops(QGraphicsItem* theWrappedObject, bool on); | ||
florianlink
|
r73 | void unsetCursor(QGraphicsItem* theWrappedObject); | ||
QPointF mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPointF& point) const; | ||||
void setCursor(QGraphicsItem* theWrappedObject, const QCursor& cursor); | ||||
void setAcceptedMouseButtons(QGraphicsItem* theWrappedObject, Qt::MouseButtons buttons); | ||||
void hide(QGraphicsItem* theWrappedObject); | ||||
void setZValue(QGraphicsItem* theWrappedObject, qreal z); | ||||
QPointF mapToScene(QGraphicsItem* theWrappedObject, qreal x, qreal y) const; | ||||
florianlink
|
r24 | void setAcceptHoverEvents(QGraphicsItem* theWrappedObject, bool enabled); | ||
florianlink
|
r73 | void dragMoveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event); | ||
void mousePressEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event); | ||||
QPointF mapToScene(QGraphicsItem* theWrappedObject, const QPointF& point) const; | ||||
void scale(QGraphicsItem* theWrappedObject, qreal sx, qreal sy); | ||||
QTransform sceneTransform(QGraphicsItem* theWrappedObject) const; | ||||
QList<QGraphicsItem* > childItems(QGraphicsItem* theWrappedObject) const; | ||||
florianlink
|
r13 | bool isUnderMouse(QGraphicsItem* theWrappedObject) const; | ||
florianlink
|
r73 | void grabKeyboard(QGraphicsItem* theWrappedObject); | ||
void setSelected(QGraphicsItem* theWrappedObject, bool selected); | ||||
void moveBy(QGraphicsItem* theWrappedObject, qreal dx, qreal dy); | ||||
void mouseMoveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event); | ||||
void setFlags(QGraphicsItem* theWrappedObject, QGraphicsItem::GraphicsItemFlags flags); | ||||
florianlink
|
r24 | QVariant itemChange(QGraphicsItem* theWrappedObject, QGraphicsItem::GraphicsItemChange change, const QVariant& value); | ||
void setEnabled(QGraphicsItem* theWrappedObject, bool enabled); | ||||
florianlink
|
r73 | QPainterPath mapFromScene(QGraphicsItem* theWrappedObject, const QPainterPath& path) const; | ||
florianlink
|
r24 | QGraphicsWidget* topLevelWidget(QGraphicsItem* theWrappedObject) const; | ||
florianlink
|
r73 | bool isObscured(QGraphicsItem* theWrappedObject) const; | ||
florianlink
|
r28 | void grabMouse(QGraphicsItem* theWrappedObject); | ||
florianlink
|
r73 | QPainterPath mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPainterPath& path) const; | ||
QPolygonF mapToParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; | ||||
QPolygonF mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const; | ||||
bool isVisibleTo(QGraphicsItem* theWrappedObject, const QGraphicsItem* parent) const; | ||||
QPointF pos(QGraphicsItem* theWrappedObject) const; | ||||
bool isWindow(QGraphicsItem* theWrappedObject) const; | ||||
QGraphicsScene* scene(QGraphicsItem* theWrappedObject) const; | ||||
florianlink
|
r28 | bool acceptDrops(QGraphicsItem* theWrappedObject) const; | ||
florianlink
|
r73 | void focusOutEvent(QGraphicsItem* theWrappedObject, QFocusEvent* event); | ||
florianlink
|
r28 | bool acceptsHoverEvents(QGraphicsItem* theWrappedObject) const; | ||
florianlink
|
r73 | bool handlesChildEvents(QGraphicsItem* theWrappedObject) const; | ||
florianlink
|
r28 | QPainterPath mapFromParent(QGraphicsItem* theWrappedObject, const QPainterPath& path) const; | ||
florianlink
|
r73 | void setData(QGraphicsItem* theWrappedObject, int key, const QVariant& value); | ||
QGraphicsItem* topLevelItem(QGraphicsItem* theWrappedObject) const; | ||||
void keyReleaseEvent(QGraphicsItem* theWrappedObject, QKeyEvent* event); | ||||
void ungrabMouse(QGraphicsItem* theWrappedObject); | ||||
void dragEnterEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneDragDropEvent* event); | ||||
QVariant inputMethodQuery(QGraphicsItem* theWrappedObject, Qt::InputMethodQuery query) const; | ||||
bool sceneEventFilter(QGraphicsItem* theWrappedObject, QGraphicsItem* watched, QEvent* event); | ||||
florianlink
|
r24 | bool collidesWithPath(QGraphicsItem* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape) const; | ||
florianlink
|
r73 | QPointF mapFromParent(QGraphicsItem* theWrappedObject, const QPointF& point) const; | ||
void wheelEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneWheelEvent* event); | ||||
void setTransform(QGraphicsItem* theWrappedObject, const QTransform& matrix, bool combine = false); | ||||
QVariant extension(QGraphicsItem* theWrappedObject, const QVariant& variant) const; | ||||
void mouseDoubleClickEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneMouseEvent* event); | ||||
bool hasCursor(QGraphicsItem* theWrappedObject) const; | ||||
florianlink
|
r24 | void setParentItem(QGraphicsItem* theWrappedObject, QGraphicsItem* parent); | ||
florianlink
|
r73 | QPolygonF mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QRectF& rect) const; | ||
QPolygonF mapFromParent(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; | ||||
QVariant data(QGraphicsItem* theWrappedObject, int key) const; | ||||
void removeSceneEventFilter(QGraphicsItem* theWrappedObject, QGraphicsItem* filterItem); | ||||
QPainterPath shape(QGraphicsItem* theWrappedObject) const; | ||||
void show(QGraphicsItem* theWrappedObject); | ||||
QPolygonF mapToScene(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const; | ||||
void setHandlesChildEvents(QGraphicsItem* theWrappedObject, bool enabled); | ||||
void update(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal width, qreal height); | ||||
bool contains(QGraphicsItem* theWrappedObject, const QPointF& point) const; | ||||
florianlink
|
r28 | void setCacheMode(QGraphicsItem* theWrappedObject, QGraphicsItem::CacheMode mode, const QSize& cacheSize = QSize()); | ||
void hoverLeaveEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneHoverEvent* event); | ||||
florianlink
|
r73 | QPolygonF mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPolygonF& polygon) const; | ||
void setFlag(QGraphicsItem* theWrappedObject, QGraphicsItem::GraphicsItemFlag flag, bool enabled = true); | ||||
florianlink
|
r24 | void contextMenuEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneContextMenuEvent* event); | ||
florianlink
|
r73 | qreal y(QGraphicsItem* theWrappedObject) const; | ||
bool acceptHoverEvents(QGraphicsItem* theWrappedObject) const; | ||||
bool isAncestorOf(QGraphicsItem* theWrappedObject, const QGraphicsItem* child) const; | ||||
QPainterPath mapToScene(QGraphicsItem* theWrappedObject, const QPainterPath& path) const; | ||||
void rotate(QGraphicsItem* theWrappedObject, qreal angle); | ||||
QGraphicsWidget* parentWidget(QGraphicsItem* theWrappedObject) const; | ||||
void hoverEnterEvent(QGraphicsItem* theWrappedObject, QGraphicsSceneHoverEvent* event); | ||||
void setGroup(QGraphicsItem* theWrappedObject, QGraphicsItemGroup* group); | ||||
QPolygonF mapToScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const; | ||||
QGraphicsItem::GraphicsItemFlags flags(QGraphicsItem* theWrappedObject) const; | ||||
QRectF childrenBoundingRect(QGraphicsItem* theWrappedObject) const; | ||||
void translate(QGraphicsItem* theWrappedObject, qreal dx, qreal dy); | ||||
qreal zValue(QGraphicsItem* theWrappedObject) const; | ||||
QPolygonF mapFromScene(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const; | ||||
void inputMethodEvent(QGraphicsItem* theWrappedObject, QInputMethodEvent* event); | ||||
QTransform transform(QGraphicsItem* theWrappedObject) const; | ||||
QPointF mapFromScene(QGraphicsItem* theWrappedObject, qreal x, qreal y) const; | ||||
florianlink
|
r24 | QPolygonF mapToParent(QGraphicsItem* theWrappedObject, const QPolygonF& polygon) const; | ||
florianlink
|
r73 | void ensureVisible(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int xmargin = 50, int ymargin = 50); | ||
QPainterPath opaqueArea(QGraphicsItem* theWrappedObject) const; | ||||
QPointF scenePos(QGraphicsItem* theWrappedObject) const; | ||||
QString toolTip(QGraphicsItem* theWrappedObject) const; | ||||
void installSceneEventFilter(QGraphicsItem* theWrappedObject, QGraphicsItem* filterItem); | ||||
QCursor cursor(QGraphicsItem* theWrappedObject) const; | ||||
QPolygonF mapFromParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const; | ||||
florianlink
|
r24 | QPointF mapToParent(QGraphicsItem* theWrappedObject, const QPointF& point) const; | ||
florianlink
|
r73 | QPolygonF mapToParent(QGraphicsItem* theWrappedObject, const QRectF& rect) const; | ||
void focusInEvent(QGraphicsItem* theWrappedObject, QFocusEvent* event); | ||||
bool sceneEvent(QGraphicsItem* theWrappedObject, QEvent* event); | ||||
bool isObscured(QGraphicsItem* theWrappedObject, const QRectF& rect) const; | ||||
florianlink
|
r24 | QTransform deviceTransform(QGraphicsItem* theWrappedObject, const QTransform& viewportTransform) const; | ||
florianlink
|
r73 | QPolygonF mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y, qreal w, qreal h) const; | ||
void shear(QGraphicsItem* theWrappedObject, qreal sh, qreal sv); | ||||
bool isWidget(QGraphicsItem* theWrappedObject) const; | ||||
QPainterPath mapToItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPainterPath& path) const; | ||||
QPointF mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, qreal x, qreal y) const; | ||||
void setToolTip(QGraphicsItem* theWrappedObject, const QString& toolTip); | ||||
QGraphicsWidget* window(QGraphicsItem* theWrappedObject) const; | ||||
void keyPressEvent(QGraphicsItem* theWrappedObject, QKeyEvent* event); | ||||
florianlink
|
r28 | QRegion boundingRegion(QGraphicsItem* theWrappedObject, const QTransform& itemToDeviceTransform) const; | ||
florianlink
|
r73 | void clearFocus(QGraphicsItem* theWrappedObject); | ||
QPolygonF mapFromScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; | ||||
void resetTransform(QGraphicsItem* theWrappedObject); | ||||
void scroll(QGraphicsItem* theWrappedObject, qreal dx, qreal dy, const QRectF& rect = QRectF()); | ||||
QPainterPath mapToParent(QGraphicsItem* theWrappedObject, const QPainterPath& path) const; | ||||
QGraphicsItem* commonAncestorItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* other) const; | ||||
QPointF mapFromParent(QGraphicsItem* theWrappedObject, qreal x, qreal y) const; | ||||
void setFocus(QGraphicsItem* theWrappedObject, Qt::FocusReason focusReason = Qt::OtherFocusReason); | ||||
QPointF mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPointF& point) const; | ||||
bool isObscured(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; | ||||
QPolygonF mapToScene(QGraphicsItem* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const; | ||||
qreal x(QGraphicsItem* theWrappedObject) const; | ||||
bool hasFocus(QGraphicsItem* theWrappedObject) const; | ||||
bool isSelected(QGraphicsItem* theWrappedObject) const; | ||||
void ungrabKeyboard(QGraphicsItem* theWrappedObject); | ||||
QGraphicsItemGroup* group(QGraphicsItem* theWrappedObject) const; | ||||
void ensureVisible(QGraphicsItem* theWrappedObject, const QRectF& rect = QRectF(), int xmargin = 50, int ymargin = 50); | ||||
QPolygonF mapFromScene(QGraphicsItem* theWrappedObject, const QRectF& rect) const; | ||||
qreal boundingRegionGranularity(QGraphicsItem* theWrappedObject) const; | ||||
bool isEnabled(QGraphicsItem* theWrappedObject) const; | ||||
QPolygonF mapFromItem(QGraphicsItem* theWrappedObject, const QGraphicsItem* item, const QPolygonF& polygon) const; | ||||
QString toString(QGraphicsItem*); | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QGRAPHICSITEM_H | ||||