|
|
#include "PythonQtWrapper_QGraphicsView.h"
|
|
|
|
|
|
#include <QPainterPath>
|
|
|
#include <QVarLengthArray>
|
|
|
#include <QVariant>
|
|
|
#include <qaction.h>
|
|
|
#include <qbitmap.h>
|
|
|
#include <qbrush.h>
|
|
|
#include <qbytearray.h>
|
|
|
#include <qcoreevent.h>
|
|
|
#include <qcursor.h>
|
|
|
#include <qevent.h>
|
|
|
#include <qfont.h>
|
|
|
#include <qgraphicsitem.h>
|
|
|
#include <qgraphicsscene.h>
|
|
|
#include <qgraphicsview.h>
|
|
|
#include <qicon.h>
|
|
|
#include <qinputcontext.h>
|
|
|
#include <qkeysequence.h>
|
|
|
#include <qlayout.h>
|
|
|
#include <qlist.h>
|
|
|
#include <qlocale.h>
|
|
|
#include <qmatrix.h>
|
|
|
#include <qobject.h>
|
|
|
#include <qpaintengine.h>
|
|
|
#include <qpainter.h>
|
|
|
#include <qpainterpath.h>
|
|
|
#include <qpalette.h>
|
|
|
#include <qpoint.h>
|
|
|
#include <qpolygon.h>
|
|
|
#include <qrect.h>
|
|
|
#include <qregion.h>
|
|
|
#include <qscrollbar.h>
|
|
|
#include <qsize.h>
|
|
|
#include <qsizepolicy.h>
|
|
|
#include <qstyle.h>
|
|
|
#include <qstyleoption.h>
|
|
|
#include <qtransform.h>
|
|
|
#include <qwidget.h>
|
|
|
|
|
|
QGraphicsView* PythonQtWrapper_QGraphicsView::new_QGraphicsView(QGraphicsScene* scene, QWidget* parent)
|
|
|
{
|
|
|
return new QGraphicsView(scene, parent); }
|
|
|
|
|
|
QGraphicsView* PythonQtWrapper_QGraphicsView::new_QGraphicsView(QWidget* parent)
|
|
|
{
|
|
|
return new QGraphicsView(parent); }
|
|
|
|
|
|
Qt::Alignment PythonQtWrapper_QGraphicsView::alignment(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->alignment();
|
|
|
}
|
|
|
|
|
|
QBrush PythonQtWrapper_QGraphicsView::backgroundBrush(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->backgroundBrush();
|
|
|
}
|
|
|
|
|
|
QGraphicsView::CacheMode PythonQtWrapper_QGraphicsView::cacheMode(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->cacheMode();
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::centerOn(QGraphicsView* theWrappedObject, const QGraphicsItem* item)
|
|
|
{
|
|
|
theWrappedObject->centerOn(item);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::centerOn(QGraphicsView* theWrappedObject, const QPointF& pos)
|
|
|
{
|
|
|
theWrappedObject->centerOn(pos);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::centerOn(QGraphicsView* theWrappedObject, qreal x, qreal y)
|
|
|
{
|
|
|
theWrappedObject->centerOn(x, y);
|
|
|
}
|
|
|
|
|
|
QGraphicsView::DragMode PythonQtWrapper_QGraphicsView::dragMode(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->dragMode();
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::ensureVisible(QGraphicsView* theWrappedObject, const QGraphicsItem* item, int xmargin, int ymargin)
|
|
|
{
|
|
|
theWrappedObject->ensureVisible(item, xmargin, ymargin);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::ensureVisible(QGraphicsView* theWrappedObject, const QRectF& rect, int xmargin, int ymargin)
|
|
|
{
|
|
|
theWrappedObject->ensureVisible(rect, xmargin, ymargin);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::ensureVisible(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h, int xmargin, int ymargin)
|
|
|
{
|
|
|
theWrappedObject->ensureVisible(x, y, w, h, xmargin, ymargin);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::fitInView(QGraphicsView* theWrappedObject, const QGraphicsItem* item, Qt::AspectRatioMode aspectRadioMode)
|
|
|
{
|
|
|
theWrappedObject->fitInView(item, aspectRadioMode);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::fitInView(QGraphicsView* theWrappedObject, const QRectF& rect, Qt::AspectRatioMode aspectRadioMode)
|
|
|
{
|
|
|
theWrappedObject->fitInView(rect, aspectRadioMode);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::fitInView(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h, Qt::AspectRatioMode aspectRadioMode)
|
|
|
{
|
|
|
theWrappedObject->fitInView(x, y, w, h, aspectRadioMode);
|
|
|
}
|
|
|
|
|
|
QBrush PythonQtWrapper_QGraphicsView::foregroundBrush(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->foregroundBrush();
|
|
|
}
|
|
|
|
|
|
QVariant PythonQtWrapper_QGraphicsView::inputMethodQuery(QGraphicsView* theWrappedObject, Qt::InputMethodQuery query) const
|
|
|
{
|
|
|
return theWrappedObject->inputMethodQuery(query);
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QGraphicsView::isInteractive(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->isInteractive();
|
|
|
}
|
|
|
|
|
|
QGraphicsItem* PythonQtWrapper_QGraphicsView::itemAt(QGraphicsView* theWrappedObject, const QPoint& pos) const
|
|
|
{
|
|
|
return theWrappedObject->itemAt(pos);
|
|
|
}
|
|
|
|
|
|
QGraphicsItem* PythonQtWrapper_QGraphicsView::itemAt(QGraphicsView* theWrappedObject, int x, int y) const
|
|
|
{
|
|
|
return theWrappedObject->itemAt(x, y);
|
|
|
}
|
|
|
|
|
|
QList<QGraphicsItem* > PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->items();
|
|
|
}
|
|
|
|
|
|
QList<QGraphicsItem* > PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject, const QPainterPath& path, Qt::ItemSelectionMode mode) const
|
|
|
{
|
|
|
return theWrappedObject->items(path, mode);
|
|
|
}
|
|
|
|
|
|
QList<QGraphicsItem* > PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject, const QPoint& pos) const
|
|
|
{
|
|
|
return theWrappedObject->items(pos);
|
|
|
}
|
|
|
|
|
|
QList<QGraphicsItem* > PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject, const QPolygon& polygon, Qt::ItemSelectionMode mode) const
|
|
|
{
|
|
|
return theWrappedObject->items(polygon, mode);
|
|
|
}
|
|
|
|
|
|
QList<QGraphicsItem* > PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject, const QRect& rect, Qt::ItemSelectionMode mode) const
|
|
|
{
|
|
|
return theWrappedObject->items(rect, mode);
|
|
|
}
|
|
|
|
|
|
QList<QGraphicsItem* > PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject, int x, int y) const
|
|
|
{
|
|
|
return theWrappedObject->items(x, y);
|
|
|
}
|
|
|
|
|
|
QList<QGraphicsItem* > PythonQtWrapper_QGraphicsView::items(QGraphicsView* theWrappedObject, int x, int y, int w, int h, Qt::ItemSelectionMode mode) const
|
|
|
{
|
|
|
return theWrappedObject->items(x, y, w, h, mode);
|
|
|
}
|
|
|
|
|
|
QPainterPath PythonQtWrapper_QGraphicsView::mapFromScene(QGraphicsView* theWrappedObject, const QPainterPath& path) const
|
|
|
{
|
|
|
return theWrappedObject->mapFromScene(path);
|
|
|
}
|
|
|
|
|
|
QPoint PythonQtWrapper_QGraphicsView::mapFromScene(QGraphicsView* theWrappedObject, const QPointF& point) const
|
|
|
{
|
|
|
return theWrappedObject->mapFromScene(point);
|
|
|
}
|
|
|
|
|
|
QPolygon PythonQtWrapper_QGraphicsView::mapFromScene(QGraphicsView* theWrappedObject, const QPolygonF& polygon) const
|
|
|
{
|
|
|
return theWrappedObject->mapFromScene(polygon);
|
|
|
}
|
|
|
|
|
|
QPolygon PythonQtWrapper_QGraphicsView::mapFromScene(QGraphicsView* theWrappedObject, const QRectF& rect) const
|
|
|
{
|
|
|
return theWrappedObject->mapFromScene(rect);
|
|
|
}
|
|
|
|
|
|
QPoint PythonQtWrapper_QGraphicsView::mapFromScene(QGraphicsView* theWrappedObject, qreal x, qreal y) const
|
|
|
{
|
|
|
return theWrappedObject->mapFromScene(x, y);
|
|
|
}
|
|
|
|
|
|
QPolygon PythonQtWrapper_QGraphicsView::mapFromScene(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h) const
|
|
|
{
|
|
|
return theWrappedObject->mapFromScene(x, y, w, h);
|
|
|
}
|
|
|
|
|
|
QPainterPath PythonQtWrapper_QGraphicsView::mapToScene(QGraphicsView* theWrappedObject, const QPainterPath& path) const
|
|
|
{
|
|
|
return theWrappedObject->mapToScene(path);
|
|
|
}
|
|
|
|
|
|
QPointF PythonQtWrapper_QGraphicsView::mapToScene(QGraphicsView* theWrappedObject, const QPoint& point) const
|
|
|
{
|
|
|
return theWrappedObject->mapToScene(point);
|
|
|
}
|
|
|
|
|
|
QPolygonF PythonQtWrapper_QGraphicsView::mapToScene(QGraphicsView* theWrappedObject, const QPolygon& polygon) const
|
|
|
{
|
|
|
return theWrappedObject->mapToScene(polygon);
|
|
|
}
|
|
|
|
|
|
QPolygonF PythonQtWrapper_QGraphicsView::mapToScene(QGraphicsView* theWrappedObject, const QRect& rect) const
|
|
|
{
|
|
|
return theWrappedObject->mapToScene(rect);
|
|
|
}
|
|
|
|
|
|
QPointF PythonQtWrapper_QGraphicsView::mapToScene(QGraphicsView* theWrappedObject, int x, int y) const
|
|
|
{
|
|
|
return theWrappedObject->mapToScene(x, y);
|
|
|
}
|
|
|
|
|
|
QPolygonF PythonQtWrapper_QGraphicsView::mapToScene(QGraphicsView* theWrappedObject, int x, int y, int w, int h) const
|
|
|
{
|
|
|
return theWrappedObject->mapToScene(x, y, w, h);
|
|
|
}
|
|
|
|
|
|
QMatrix PythonQtWrapper_QGraphicsView::matrix(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->matrix();
|
|
|
}
|
|
|
|
|
|
QGraphicsView::OptimizationFlags PythonQtWrapper_QGraphicsView::optimizationFlags(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->optimizationFlags();
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::render(QGraphicsView* theWrappedObject, QPainter* painter, const QRectF& target, const QRect& source, Qt::AspectRatioMode aspectRatioMode)
|
|
|
{
|
|
|
theWrappedObject->render(painter, target, source, aspectRatioMode);
|
|
|
}
|
|
|
|
|
|
QPainter::RenderHints PythonQtWrapper_QGraphicsView::renderHints(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->renderHints();
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::resetCachedContent(QGraphicsView* theWrappedObject)
|
|
|
{
|
|
|
theWrappedObject->resetCachedContent();
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::resetMatrix(QGraphicsView* theWrappedObject)
|
|
|
{
|
|
|
theWrappedObject->resetMatrix();
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::resetTransform(QGraphicsView* theWrappedObject)
|
|
|
{
|
|
|
theWrappedObject->resetTransform();
|
|
|
}
|
|
|
|
|
|
QGraphicsView::ViewportAnchor PythonQtWrapper_QGraphicsView::resizeAnchor(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->resizeAnchor();
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::rotate(QGraphicsView* theWrappedObject, qreal angle)
|
|
|
{
|
|
|
theWrappedObject->rotate(angle);
|
|
|
}
|
|
|
|
|
|
Qt::ItemSelectionMode PythonQtWrapper_QGraphicsView::rubberBandSelectionMode(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->rubberBandSelectionMode();
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::scale(QGraphicsView* theWrappedObject, qreal sx, qreal sy)
|
|
|
{
|
|
|
theWrappedObject->scale(sx, sy);
|
|
|
}
|
|
|
|
|
|
QGraphicsScene* PythonQtWrapper_QGraphicsView::scene(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->scene();
|
|
|
}
|
|
|
|
|
|
QRectF PythonQtWrapper_QGraphicsView::sceneRect(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->sceneRect();
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setAlignment(QGraphicsView* theWrappedObject, Qt::Alignment alignment)
|
|
|
{
|
|
|
theWrappedObject->setAlignment(alignment);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setBackgroundBrush(QGraphicsView* theWrappedObject, const QBrush& brush)
|
|
|
{
|
|
|
theWrappedObject->setBackgroundBrush(brush);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setCacheMode(QGraphicsView* theWrappedObject, QGraphicsView::CacheMode mode)
|
|
|
{
|
|
|
theWrappedObject->setCacheMode(mode);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setDragMode(QGraphicsView* theWrappedObject, QGraphicsView::DragMode mode)
|
|
|
{
|
|
|
theWrappedObject->setDragMode(mode);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setForegroundBrush(QGraphicsView* theWrappedObject, const QBrush& brush)
|
|
|
{
|
|
|
theWrappedObject->setForegroundBrush(brush);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setInteractive(QGraphicsView* theWrappedObject, bool allowed)
|
|
|
{
|
|
|
theWrappedObject->setInteractive(allowed);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setMatrix(QGraphicsView* theWrappedObject, const QMatrix& matrix, bool combine)
|
|
|
{
|
|
|
theWrappedObject->setMatrix(matrix, combine);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setOptimizationFlag(QGraphicsView* theWrappedObject, QGraphicsView::OptimizationFlag flag, bool enabled)
|
|
|
{
|
|
|
theWrappedObject->setOptimizationFlag(flag, enabled);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setOptimizationFlags(QGraphicsView* theWrappedObject, QGraphicsView::OptimizationFlags flags)
|
|
|
{
|
|
|
theWrappedObject->setOptimizationFlags(flags);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setRenderHint(QGraphicsView* theWrappedObject, QPainter::RenderHint hint, bool enabled)
|
|
|
{
|
|
|
theWrappedObject->setRenderHint(hint, enabled);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setRenderHints(QGraphicsView* theWrappedObject, QPainter::RenderHints hints)
|
|
|
{
|
|
|
theWrappedObject->setRenderHints(hints);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setResizeAnchor(QGraphicsView* theWrappedObject, QGraphicsView::ViewportAnchor anchor)
|
|
|
{
|
|
|
theWrappedObject->setResizeAnchor(anchor);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setRubberBandSelectionMode(QGraphicsView* theWrappedObject, Qt::ItemSelectionMode mode)
|
|
|
{
|
|
|
theWrappedObject->setRubberBandSelectionMode(mode);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setScene(QGraphicsView* theWrappedObject, QGraphicsScene* scene)
|
|
|
{
|
|
|
theWrappedObject->setScene(scene);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setSceneRect(QGraphicsView* theWrappedObject, const QRectF& rect)
|
|
|
{
|
|
|
theWrappedObject->setSceneRect(rect);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setSceneRect(QGraphicsView* theWrappedObject, qreal x, qreal y, qreal w, qreal h)
|
|
|
{
|
|
|
theWrappedObject->setSceneRect(x, y, w, h);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setTransform(QGraphicsView* theWrappedObject, const QTransform& matrix, bool combine)
|
|
|
{
|
|
|
theWrappedObject->setTransform(matrix, combine);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setTransformationAnchor(QGraphicsView* theWrappedObject, QGraphicsView::ViewportAnchor anchor)
|
|
|
{
|
|
|
theWrappedObject->setTransformationAnchor(anchor);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::setViewportUpdateMode(QGraphicsView* theWrappedObject, QGraphicsView::ViewportUpdateMode mode)
|
|
|
{
|
|
|
theWrappedObject->setViewportUpdateMode(mode);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::shear(QGraphicsView* theWrappedObject, qreal sh, qreal sv)
|
|
|
{
|
|
|
theWrappedObject->shear(sh, sv);
|
|
|
}
|
|
|
|
|
|
QSize PythonQtWrapper_QGraphicsView::sizeHint(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->sizeHint();
|
|
|
}
|
|
|
|
|
|
QTransform PythonQtWrapper_QGraphicsView::transform(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->transform();
|
|
|
}
|
|
|
|
|
|
QGraphicsView::ViewportAnchor PythonQtWrapper_QGraphicsView::transformationAnchor(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->transformationAnchor();
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QGraphicsView::translate(QGraphicsView* theWrappedObject, qreal dx, qreal dy)
|
|
|
{
|
|
|
theWrappedObject->translate(dx, dy);
|
|
|
}
|
|
|
|
|
|
QTransform PythonQtWrapper_QGraphicsView::viewportTransform(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->viewportTransform();
|
|
|
}
|
|
|
|
|
|
QGraphicsView::ViewportUpdateMode PythonQtWrapper_QGraphicsView::viewportUpdateMode(QGraphicsView* theWrappedObject) const
|
|
|
{
|
|
|
return theWrappedObject->viewportUpdateMode();
|
|
|
}
|
|
|
|
|
|
|