cutego/svg/svg.cpp

1598 lines
64 KiB
C++
Raw Normal View History

#define protected public
#define private public
#include "svg.h"
2015-11-19 21:29:30 +03:00
#include "_cgo_export.h"
#include <QAction>
#include <QActionEvent>
#include <QByteArray>
#include <QChildEvent>
#include <QCloseEvent>
#include <QContextMenuEvent>
#include <QDrag>
#include <QDragEnterEvent>
#include <QDragLeaveEvent>
#include <QDragMoveEvent>
#include <QDropEvent>
#include <QEvent>
#include <QFocusEvent>
#include <QGraphicsItem>
2016-04-23 05:19:03 +03:00
#include <QGraphicsScene>
#include <QGraphicsSceneContextMenuEvent>
#include <QGraphicsSceneDragDropEvent>
#include <QGraphicsSceneHoverEvent>
#include <QGraphicsSceneMouseEvent>
#include <QGraphicsSceneWheelEvent>
#include <QGraphicsSvgItem>
#include <QHideEvent>
#include <QIODevice>
#include <QInputMethod>
#include <QInputMethodEvent>
#include <QKeyEvent>
#include <QMetaMethod>
#include <QMetaObject>
#include <QMouseEvent>
#include <QMoveEvent>
#include <QObject>
#include <QPaintDevice>
#include <QPaintEngine>
#include <QPaintEvent>
2015-11-19 21:29:30 +03:00
#include <QPainter>
#include <QPainterPath>
#include <QPoint>
#include <QPointF>
#include <QRect>
#include <QRectF>
#include <QResizeEvent>
#include <QShowEvent>
2015-11-19 21:29:30 +03:00
#include <QSize>
#include <QString>
#include <QStyle>
#include <QStyleOption>
#include <QStyleOptionGraphicsItem>
#include <QSvgGenerator>
#include <QSvgRenderer>
#include <QSvgWidget>
#include <QTabletEvent>
#include <QTime>
#include <QTimer>
#include <QTimerEvent>
#include <QVariant>
#include <QWheelEvent>
#include <QWidget>
#include <QXmlStreamReader>
2015-11-19 21:29:30 +03:00
class MyQGraphicsSvgItem: public QGraphicsSvgItem
{
2015-11-19 21:29:30 +03:00
public:
MyQGraphicsSvgItem(QGraphicsItem *parent) : QGraphicsSvgItem(parent) {};
MyQGraphicsSvgItem(const QString &fileName, QGraphicsItem *parent) : QGraphicsSvgItem(fileName, parent) {};
QRectF boundingRect() const { return *static_cast<QRectF*>(callbackQGraphicsSvgItem_BoundingRect(const_cast<MyQGraphicsSvgItem*>(this), this->objectName().toUtf8().data())); };
void paint(QPainter * painter, const QStyleOptionGraphicsItem * option, QWidget * widget) { callbackQGraphicsSvgItem_Paint(this, this->objectName().toUtf8().data(), painter, const_cast<QStyleOptionGraphicsItem*>(option), widget); };
int type() const { return callbackQGraphicsSvgItem_Type(const_cast<MyQGraphicsSvgItem*>(this), this->objectName().toUtf8().data()); };
bool event(QEvent * ev) { return callbackQGraphicsSvgItem_Event(this, this->objectName().toUtf8().data(), ev) != 0; };
void updateMicroFocus() { callbackQGraphicsSvgItem_UpdateMicroFocus(this, this->objectName().toUtf8().data()); };
void advance(int phase) { callbackQGraphicsSvgItem_Advance(this, this->objectName().toUtf8().data(), phase); };
bool collidesWithItem(const QGraphicsItem * other, Qt::ItemSelectionMode mode) const { return callbackQGraphicsSvgItem_CollidesWithItem(const_cast<MyQGraphicsSvgItem*>(this), this->objectName().toUtf8().data(), const_cast<QGraphicsItem*>(other), mode) != 0; };
bool collidesWithPath(const QPainterPath & path, Qt::ItemSelectionMode mode) const { return callbackQGraphicsSvgItem_CollidesWithPath(const_cast<MyQGraphicsSvgItem*>(this), this->objectName().toUtf8().data(), new QPainterPath(path), mode) != 0; };
bool contains(const QPointF & point) const { return callbackQGraphicsSvgItem_Contains(const_cast<MyQGraphicsSvgItem*>(this), this->objectName().toUtf8().data(), new QPointF(static_cast<QPointF>(point).x(), static_cast<QPointF>(point).y())) != 0; };
void contextMenuEvent(QGraphicsSceneContextMenuEvent * event) { callbackQGraphicsSvgItem_ContextMenuEvent(this, this->objectName().toUtf8().data(), event); };
void dragEnterEvent(QGraphicsSceneDragDropEvent * event) { callbackQGraphicsSvgItem_DragEnterEvent(this, this->objectName().toUtf8().data(), event); };
void dragLeaveEvent(QGraphicsSceneDragDropEvent * event) { callbackQGraphicsSvgItem_DragLeaveEvent(this, this->objectName().toUtf8().data(), event); };
void dragMoveEvent(QGraphicsSceneDragDropEvent * event) { callbackQGraphicsSvgItem_DragMoveEvent(this, this->objectName().toUtf8().data(), event); };
void dropEvent(QGraphicsSceneDragDropEvent * event) { callbackQGraphicsSvgItem_DropEvent(this, this->objectName().toUtf8().data(), event); };
void focusInEvent(QFocusEvent * event) { callbackQGraphicsSvgItem_FocusInEvent(this, this->objectName().toUtf8().data(), event); };
void focusOutEvent(QFocusEvent * event) { callbackQGraphicsSvgItem_FocusOutEvent(this, this->objectName().toUtf8().data(), event); };
void hoverEnterEvent(QGraphicsSceneHoverEvent * event) { callbackQGraphicsSvgItem_HoverEnterEvent(this, this->objectName().toUtf8().data(), event); };
void hoverLeaveEvent(QGraphicsSceneHoverEvent * event) { callbackQGraphicsSvgItem_HoverLeaveEvent(this, this->objectName().toUtf8().data(), event); };
void hoverMoveEvent(QGraphicsSceneHoverEvent * event) { callbackQGraphicsSvgItem_HoverMoveEvent(this, this->objectName().toUtf8().data(), event); };
void inputMethodEvent(QInputMethodEvent * event) { callbackQGraphicsSvgItem_InputMethodEvent(this, this->objectName().toUtf8().data(), event); };
QVariant inputMethodQuery(Qt::InputMethodQuery query) const { return *static_cast<QVariant*>(callbackQGraphicsSvgItem_InputMethodQuery(const_cast<MyQGraphicsSvgItem*>(this), this->objectName().toUtf8().data(), query)); };
bool isObscuredBy(const QGraphicsItem * item) const { return callbackQGraphicsSvgItem_IsObscuredBy(const_cast<MyQGraphicsSvgItem*>(this), this->objectName().toUtf8().data(), const_cast<QGraphicsItem*>(item)) != 0; };
QVariant itemChange(QGraphicsItem::GraphicsItemChange change, const QVariant & value) { return *static_cast<QVariant*>(callbackQGraphicsSvgItem_ItemChange(this, this->objectName().toUtf8().data(), change, new QVariant(value))); };
void keyPressEvent(QKeyEvent * event) { callbackQGraphicsSvgItem_KeyPressEvent(this, this->objectName().toUtf8().data(), event); };
void keyReleaseEvent(QKeyEvent * event) { callbackQGraphicsSvgItem_KeyReleaseEvent(this, this->objectName().toUtf8().data(), event); };
void mouseDoubleClickEvent(QGraphicsSceneMouseEvent * event) { callbackQGraphicsSvgItem_MouseDoubleClickEvent(this, this->objectName().toUtf8().data(), event); };
void mouseMoveEvent(QGraphicsSceneMouseEvent * event) { callbackQGraphicsSvgItem_MouseMoveEvent(this, this->objectName().toUtf8().data(), event); };
void mousePressEvent(QGraphicsSceneMouseEvent * event) { callbackQGraphicsSvgItem_MousePressEvent(this, this->objectName().toUtf8().data(), event); };
void mouseReleaseEvent(QGraphicsSceneMouseEvent * event) { callbackQGraphicsSvgItem_MouseReleaseEvent(this, this->objectName().toUtf8().data(), event); };
QPainterPath opaqueArea() const { return *static_cast<QPainterPath*>(callbackQGraphicsSvgItem_OpaqueArea(const_cast<MyQGraphicsSvgItem*>(this), this->objectName().toUtf8().data())); };
bool sceneEvent(QEvent * event) { return callbackQGraphicsSvgItem_SceneEvent(this, this->objectName().toUtf8().data(), event) != 0; };
bool sceneEventFilter(QGraphicsItem * watched, QEvent * event) { return callbackQGraphicsSvgItem_SceneEventFilter(this, this->objectName().toUtf8().data(), watched, event) != 0; };
QPainterPath shape() const { return *static_cast<QPainterPath*>(callbackQGraphicsSvgItem_Shape(const_cast<MyQGraphicsSvgItem*>(this), this->objectName().toUtf8().data())); };
void wheelEvent(QGraphicsSceneWheelEvent * event) { callbackQGraphicsSvgItem_WheelEvent(this, this->objectName().toUtf8().data(), event); };
void timerEvent(QTimerEvent * event) { callbackQGraphicsSvgItem_TimerEvent(this, this->objectName().toUtf8().data(), event); };
void childEvent(QChildEvent * event) { callbackQGraphicsSvgItem_ChildEvent(this, this->objectName().toUtf8().data(), event); };
void connectNotify(const QMetaMethod & sign) { callbackQGraphicsSvgItem_ConnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
void customEvent(QEvent * event) { callbackQGraphicsSvgItem_CustomEvent(this, this->objectName().toUtf8().data(), event); };
void deleteLater() { callbackQGraphicsSvgItem_DeleteLater(this, this->objectName().toUtf8().data()); };
void disconnectNotify(const QMetaMethod & sign) { callbackQGraphicsSvgItem_DisconnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
bool eventFilter(QObject * watched, QEvent * event) { return callbackQGraphicsSvgItem_EventFilter(this, this->objectName().toUtf8().data(), watched, event) != 0; };
const QMetaObject * metaObject() const { return static_cast<QMetaObject*>(callbackQGraphicsSvgItem_MetaObject(const_cast<MyQGraphicsSvgItem*>(this), this->objectName().toUtf8().data())); };
2015-11-19 21:29:30 +03:00
};
void* QGraphicsSvgItem_NewQGraphicsSvgItem(void* parent)
{
return new MyQGraphicsSvgItem(static_cast<QGraphicsItem*>(parent));
}
void* QGraphicsSvgItem_NewQGraphicsSvgItem2(char* fileName, void* parent)
{
return new MyQGraphicsSvgItem(QString(fileName), static_cast<QGraphicsItem*>(parent));
}
void* QGraphicsSvgItem_BoundingRect(void* ptr)
{
2016-04-22 21:39:34 +03:00
return new QRectF(static_cast<QRectF>(static_cast<QGraphicsSvgItem*>(ptr)->boundingRect()).x(), static_cast<QRectF>(static_cast<QGraphicsSvgItem*>(ptr)->boundingRect()).y(), static_cast<QRectF>(static_cast<QGraphicsSvgItem*>(ptr)->boundingRect()).width(), static_cast<QRectF>(static_cast<QGraphicsSvgItem*>(ptr)->boundingRect()).height());
}
void* QGraphicsSvgItem_BoundingRectDefault(void* ptr)
{
return new QRectF(static_cast<QRectF>(static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::boundingRect()).x(), static_cast<QRectF>(static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::boundingRect()).y(), static_cast<QRectF>(static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::boundingRect()).width(), static_cast<QRectF>(static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::boundingRect()).height());
}
char* QGraphicsSvgItem_ElementId(void* ptr)
{
2015-11-19 21:29:30 +03:00
return static_cast<QGraphicsSvgItem*>(ptr)->elementId().toUtf8().data();
}
void* QGraphicsSvgItem_MaximumCacheSize(void* ptr)
{
return new QSize(static_cast<QSize>(static_cast<QGraphicsSvgItem*>(ptr)->maximumCacheSize()).width(), static_cast<QSize>(static_cast<QGraphicsSvgItem*>(ptr)->maximumCacheSize()).height());
}
void QGraphicsSvgItem_Paint(void* ptr, void* painter, void* option, void* widget)
{
static_cast<QGraphicsSvgItem*>(ptr)->paint(static_cast<QPainter*>(painter), static_cast<QStyleOptionGraphicsItem*>(option), static_cast<QWidget*>(widget));
}
void QGraphicsSvgItem_PaintDefault(void* ptr, void* painter, void* option, void* widget)
{
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::paint(static_cast<QPainter*>(painter), static_cast<QStyleOptionGraphicsItem*>(option), static_cast<QWidget*>(widget));
2015-11-19 21:29:30 +03:00
}
void* QGraphicsSvgItem_Renderer(void* ptr)
{
2015-11-19 21:29:30 +03:00
return static_cast<QGraphicsSvgItem*>(ptr)->renderer();
}
void QGraphicsSvgItem_SetElementId(void* ptr, char* id)
{
2015-11-19 21:29:30 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->setElementId(QString(id));
}
void QGraphicsSvgItem_SetMaximumCacheSize(void* ptr, void* size)
{
2015-11-19 21:29:30 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->setMaximumCacheSize(*static_cast<QSize*>(size));
}
void QGraphicsSvgItem_SetSharedRenderer(void* ptr, void* renderer)
{
2015-11-19 21:29:30 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->setSharedRenderer(static_cast<QSvgRenderer*>(renderer));
}
int QGraphicsSvgItem_Type(void* ptr)
{
2015-11-19 21:29:30 +03:00
return static_cast<QGraphicsSvgItem*>(ptr)->type();
}
int QGraphicsSvgItem_TypeDefault(void* ptr)
{
return static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::type();
}
int QGraphicsSvgItem_Event(void* ptr, void* ev)
{
return static_cast<QGraphicsSvgItem*>(ptr)->event(static_cast<QEvent*>(ev));
}
int QGraphicsSvgItem_EventDefault(void* ptr, void* ev)
{
return static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::event(static_cast<QEvent*>(ev));
}
void QGraphicsSvgItem_UpdateMicroFocus(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QGraphicsSvgItem*>(ptr), "updateMicroFocus");
2016-04-23 05:19:03 +03:00
}
void QGraphicsSvgItem_Advance(void* ptr, int phase)
{
static_cast<QGraphicsSvgItem*>(ptr)->advance(phase);
}
void QGraphicsSvgItem_AdvanceDefault(void* ptr, int phase)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::advance(phase);
}
int QGraphicsSvgItem_CollidesWithItem(void* ptr, void* other, int mode)
{
return static_cast<QGraphicsSvgItem*>(ptr)->collidesWithItem(static_cast<QGraphicsItem*>(other), static_cast<Qt::ItemSelectionMode>(mode));
}
int QGraphicsSvgItem_CollidesWithItemDefault(void* ptr, void* other, int mode)
{
return static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::collidesWithItem(static_cast<QGraphicsItem*>(other), static_cast<Qt::ItemSelectionMode>(mode));
}
int QGraphicsSvgItem_CollidesWithPath(void* ptr, void* path, int mode)
{
return static_cast<QGraphicsSvgItem*>(ptr)->collidesWithPath(*static_cast<QPainterPath*>(path), static_cast<Qt::ItemSelectionMode>(mode));
}
int QGraphicsSvgItem_CollidesWithPathDefault(void* ptr, void* path, int mode)
{
return static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::collidesWithPath(*static_cast<QPainterPath*>(path), static_cast<Qt::ItemSelectionMode>(mode));
}
int QGraphicsSvgItem_Contains(void* ptr, void* point)
{
return static_cast<QGraphicsSvgItem*>(ptr)->contains(*static_cast<QPointF*>(point));
}
int QGraphicsSvgItem_ContainsDefault(void* ptr, void* point)
{
return static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::contains(*static_cast<QPointF*>(point));
2016-04-23 05:19:03 +03:00
}
void QGraphicsSvgItem_ContextMenuEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->contextMenuEvent(static_cast<QGraphicsSceneContextMenuEvent*>(event));
}
void QGraphicsSvgItem_ContextMenuEventDefault(void* ptr, void* event)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::contextMenuEvent(static_cast<QGraphicsSceneContextMenuEvent*>(event));
}
void QGraphicsSvgItem_DragEnterEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->dragEnterEvent(static_cast<QGraphicsSceneDragDropEvent*>(event));
2016-04-23 05:19:03 +03:00
}
void QGraphicsSvgItem_DragEnterEventDefault(void* ptr, void* event)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::dragEnterEvent(static_cast<QGraphicsSceneDragDropEvent*>(event));
}
void QGraphicsSvgItem_DragLeaveEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->dragLeaveEvent(static_cast<QGraphicsSceneDragDropEvent*>(event));
2016-04-23 05:19:03 +03:00
}
void QGraphicsSvgItem_DragLeaveEventDefault(void* ptr, void* event)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::dragLeaveEvent(static_cast<QGraphicsSceneDragDropEvent*>(event));
}
void QGraphicsSvgItem_DragMoveEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->dragMoveEvent(static_cast<QGraphicsSceneDragDropEvent*>(event));
2016-04-23 05:19:03 +03:00
}
void QGraphicsSvgItem_DragMoveEventDefault(void* ptr, void* event)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::dragMoveEvent(static_cast<QGraphicsSceneDragDropEvent*>(event));
}
void QGraphicsSvgItem_DropEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->dropEvent(static_cast<QGraphicsSceneDragDropEvent*>(event));
2016-04-23 05:19:03 +03:00
}
void QGraphicsSvgItem_DropEventDefault(void* ptr, void* event)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::dropEvent(static_cast<QGraphicsSceneDragDropEvent*>(event));
}
void QGraphicsSvgItem_FocusInEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->focusInEvent(static_cast<QFocusEvent*>(event));
2016-04-23 05:19:03 +03:00
}
void QGraphicsSvgItem_FocusInEventDefault(void* ptr, void* event)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::focusInEvent(static_cast<QFocusEvent*>(event));
}
void QGraphicsSvgItem_FocusOutEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->focusOutEvent(static_cast<QFocusEvent*>(event));
2016-04-23 05:19:03 +03:00
}
void QGraphicsSvgItem_FocusOutEventDefault(void* ptr, void* event)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::focusOutEvent(static_cast<QFocusEvent*>(event));
}
void QGraphicsSvgItem_HoverEnterEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->hoverEnterEvent(static_cast<QGraphicsSceneHoverEvent*>(event));
2016-04-23 05:19:03 +03:00
}
void QGraphicsSvgItem_HoverEnterEventDefault(void* ptr, void* event)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::hoverEnterEvent(static_cast<QGraphicsSceneHoverEvent*>(event));
}
void QGraphicsSvgItem_HoverLeaveEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->hoverLeaveEvent(static_cast<QGraphicsSceneHoverEvent*>(event));
2016-04-23 05:19:03 +03:00
}
void QGraphicsSvgItem_HoverLeaveEventDefault(void* ptr, void* event)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::hoverLeaveEvent(static_cast<QGraphicsSceneHoverEvent*>(event));
}
void QGraphicsSvgItem_HoverMoveEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->hoverMoveEvent(static_cast<QGraphicsSceneHoverEvent*>(event));
2016-04-23 05:19:03 +03:00
}
void QGraphicsSvgItem_HoverMoveEventDefault(void* ptr, void* event)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::hoverMoveEvent(static_cast<QGraphicsSceneHoverEvent*>(event));
}
void QGraphicsSvgItem_InputMethodEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->inputMethodEvent(static_cast<QInputMethodEvent*>(event));
2016-04-23 05:19:03 +03:00
}
void QGraphicsSvgItem_InputMethodEventDefault(void* ptr, void* event)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::inputMethodEvent(static_cast<QInputMethodEvent*>(event));
}
void* QGraphicsSvgItem_InputMethodQuery(void* ptr, int query)
{
return new QVariant(static_cast<QGraphicsSvgItem*>(ptr)->inputMethodQuery(static_cast<Qt::InputMethodQuery>(query)));
}
void* QGraphicsSvgItem_InputMethodQueryDefault(void* ptr, int query)
{
return new QVariant(static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::inputMethodQuery(static_cast<Qt::InputMethodQuery>(query)));
}
int QGraphicsSvgItem_IsObscuredBy(void* ptr, void* item)
{
return static_cast<QGraphicsSvgItem*>(ptr)->isObscuredBy(static_cast<QGraphicsItem*>(item));
}
int QGraphicsSvgItem_IsObscuredByDefault(void* ptr, void* item)
{
return static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::isObscuredBy(static_cast<QGraphicsItem*>(item));
}
void* QGraphicsSvgItem_ItemChange(void* ptr, int change, void* value)
{
return new QVariant(static_cast<QGraphicsSvgItem*>(ptr)->itemChange(static_cast<QGraphicsItem::GraphicsItemChange>(change), *static_cast<QVariant*>(value)));
}
void* QGraphicsSvgItem_ItemChangeDefault(void* ptr, int change, void* value)
{
return new QVariant(static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::itemChange(static_cast<QGraphicsItem::GraphicsItemChange>(change), *static_cast<QVariant*>(value)));
2016-04-23 05:19:03 +03:00
}
void QGraphicsSvgItem_KeyPressEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->keyPressEvent(static_cast<QKeyEvent*>(event));
}
void QGraphicsSvgItem_KeyPressEventDefault(void* ptr, void* event)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::keyPressEvent(static_cast<QKeyEvent*>(event));
}
void QGraphicsSvgItem_KeyReleaseEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->keyReleaseEvent(static_cast<QKeyEvent*>(event));
2016-04-23 05:19:03 +03:00
}
void QGraphicsSvgItem_KeyReleaseEventDefault(void* ptr, void* event)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::keyReleaseEvent(static_cast<QKeyEvent*>(event));
}
void QGraphicsSvgItem_MouseDoubleClickEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->mouseDoubleClickEvent(static_cast<QGraphicsSceneMouseEvent*>(event));
2016-04-23 05:19:03 +03:00
}
void QGraphicsSvgItem_MouseDoubleClickEventDefault(void* ptr, void* event)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::mouseDoubleClickEvent(static_cast<QGraphicsSceneMouseEvent*>(event));
}
void QGraphicsSvgItem_MouseMoveEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->mouseMoveEvent(static_cast<QGraphicsSceneMouseEvent*>(event));
2016-04-23 05:19:03 +03:00
}
void QGraphicsSvgItem_MouseMoveEventDefault(void* ptr, void* event)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::mouseMoveEvent(static_cast<QGraphicsSceneMouseEvent*>(event));
}
void QGraphicsSvgItem_MousePressEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->mousePressEvent(static_cast<QGraphicsSceneMouseEvent*>(event));
2016-04-23 05:19:03 +03:00
}
void QGraphicsSvgItem_MousePressEventDefault(void* ptr, void* event)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::mousePressEvent(static_cast<QGraphicsSceneMouseEvent*>(event));
}
void QGraphicsSvgItem_MouseReleaseEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->mouseReleaseEvent(static_cast<QGraphicsSceneMouseEvent*>(event));
2016-04-23 05:19:03 +03:00
}
void QGraphicsSvgItem_MouseReleaseEventDefault(void* ptr, void* event)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::mouseReleaseEvent(static_cast<QGraphicsSceneMouseEvent*>(event));
}
void* QGraphicsSvgItem_OpaqueArea(void* ptr)
{
return new QPainterPath(static_cast<QGraphicsSvgItem*>(ptr)->opaqueArea());
}
void* QGraphicsSvgItem_OpaqueAreaDefault(void* ptr)
{
return new QPainterPath(static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::opaqueArea());
}
int QGraphicsSvgItem_SceneEvent(void* ptr, void* event)
{
return static_cast<QGraphicsSvgItem*>(ptr)->sceneEvent(static_cast<QEvent*>(event));
}
int QGraphicsSvgItem_SceneEventDefault(void* ptr, void* event)
{
return static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::sceneEvent(static_cast<QEvent*>(event));
}
int QGraphicsSvgItem_SceneEventFilter(void* ptr, void* watched, void* event)
{
return static_cast<QGraphicsSvgItem*>(ptr)->sceneEventFilter(static_cast<QGraphicsItem*>(watched), static_cast<QEvent*>(event));
}
int QGraphicsSvgItem_SceneEventFilterDefault(void* ptr, void* watched, void* event)
{
return static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::sceneEventFilter(static_cast<QGraphicsItem*>(watched), static_cast<QEvent*>(event));
2016-04-23 05:19:03 +03:00
}
void* QGraphicsSvgItem_Shape(void* ptr)
{
return new QPainterPath(static_cast<QGraphicsSvgItem*>(ptr)->shape());
}
void* QGraphicsSvgItem_ShapeDefault(void* ptr)
{
return new QPainterPath(static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::shape());
}
void QGraphicsSvgItem_WheelEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->wheelEvent(static_cast<QGraphicsSceneWheelEvent*>(event));
}
void QGraphicsSvgItem_WheelEventDefault(void* ptr, void* event)
{
2016-04-23 05:19:03 +03:00
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::wheelEvent(static_cast<QGraphicsSceneWheelEvent*>(event));
}
void QGraphicsSvgItem_TimerEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->timerEvent(static_cast<QTimerEvent*>(event));
}
void QGraphicsSvgItem_TimerEventDefault(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::timerEvent(static_cast<QTimerEvent*>(event));
}
void QGraphicsSvgItem_ChildEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->childEvent(static_cast<QChildEvent*>(event));
}
void QGraphicsSvgItem_ChildEventDefault(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::childEvent(static_cast<QChildEvent*>(event));
}
void QGraphicsSvgItem_ConnectNotify(void* ptr, void* sign)
{
static_cast<QGraphicsSvgItem*>(ptr)->connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QGraphicsSvgItem_ConnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QGraphicsSvgItem_CustomEvent(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->customEvent(static_cast<QEvent*>(event));
}
void QGraphicsSvgItem_CustomEventDefault(void* ptr, void* event)
{
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::customEvent(static_cast<QEvent*>(event));
}
void QGraphicsSvgItem_DeleteLater(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QGraphicsSvgItem*>(ptr), "deleteLater");
}
void QGraphicsSvgItem_DisconnectNotify(void* ptr, void* sign)
{
static_cast<QGraphicsSvgItem*>(ptr)->disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
void QGraphicsSvgItem_DisconnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
int QGraphicsSvgItem_EventFilter(void* ptr, void* watched, void* event)
{
return static_cast<QGraphicsSvgItem*>(ptr)->eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
int QGraphicsSvgItem_EventFilterDefault(void* ptr, void* watched, void* event)
{
return static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
void* QGraphicsSvgItem_MetaObject(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QGraphicsSvgItem*>(ptr)->metaObject());
}
void* QGraphicsSvgItem_MetaObjectDefault(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QGraphicsSvgItem*>(ptr)->QGraphicsSvgItem::metaObject());
}
class MyQSvgGenerator: public QSvgGenerator
{
2015-11-13 20:44:32 +03:00
public:
QString _objectName;
QString objectNameAbs() const { return this->_objectName; };
void setObjectNameAbs(const QString &name) { this->_objectName = name; };
MyQSvgGenerator() : QSvgGenerator() {};
int metric(QPaintDevice::PaintDeviceMetric metric) const { return callbackQSvgGenerator_Metric(const_cast<MyQSvgGenerator*>(this), this->objectNameAbs().toUtf8().data(), metric); };
QPaintEngine * paintEngine() const { return static_cast<QPaintEngine*>(callbackQSvgGenerator_PaintEngine(const_cast<MyQSvgGenerator*>(this), this->objectNameAbs().toUtf8().data())); };
2015-11-13 20:44:32 +03:00
};
char* QSvgGenerator_Description(void* ptr)
{
2015-11-13 20:44:32 +03:00
return static_cast<QSvgGenerator*>(ptr)->description().toUtf8().data();
}
char* QSvgGenerator_FileName(void* ptr)
{
2015-11-13 20:44:32 +03:00
return static_cast<QSvgGenerator*>(ptr)->fileName().toUtf8().data();
}
void* QSvgGenerator_OutputDevice(void* ptr)
{
2015-11-13 20:44:32 +03:00
return static_cast<QSvgGenerator*>(ptr)->outputDevice();
}
int QSvgGenerator_Resolution(void* ptr)
{
2015-11-13 20:44:32 +03:00
return static_cast<QSvgGenerator*>(ptr)->resolution();
}
void QSvgGenerator_SetDescription(void* ptr, char* description)
{
2015-11-13 20:44:32 +03:00
static_cast<QSvgGenerator*>(ptr)->setDescription(QString(description));
}
void QSvgGenerator_SetFileName(void* ptr, char* fileName)
{
2015-11-13 20:44:32 +03:00
static_cast<QSvgGenerator*>(ptr)->setFileName(QString(fileName));
}
void QSvgGenerator_SetOutputDevice(void* ptr, void* outputDevice)
{
2015-11-13 20:44:32 +03:00
static_cast<QSvgGenerator*>(ptr)->setOutputDevice(static_cast<QIODevice*>(outputDevice));
}
void QSvgGenerator_SetResolution(void* ptr, int dpi)
{
2015-11-13 20:44:32 +03:00
static_cast<QSvgGenerator*>(ptr)->setResolution(dpi);
}
void QSvgGenerator_SetSize(void* ptr, void* size)
{
2015-11-13 20:44:32 +03:00
static_cast<QSvgGenerator*>(ptr)->setSize(*static_cast<QSize*>(size));
}
void QSvgGenerator_SetTitle(void* ptr, char* title)
{
2015-11-13 20:44:32 +03:00
static_cast<QSvgGenerator*>(ptr)->setTitle(QString(title));
}
void QSvgGenerator_SetViewBox(void* ptr, void* viewBox)
{
2015-11-13 20:44:32 +03:00
static_cast<QSvgGenerator*>(ptr)->setViewBox(*static_cast<QRect*>(viewBox));
}
void QSvgGenerator_SetViewBox2(void* ptr, void* viewBox)
{
2015-11-13 20:44:32 +03:00
static_cast<QSvgGenerator*>(ptr)->setViewBox(*static_cast<QRectF*>(viewBox));
}
void* QSvgGenerator_Size(void* ptr)
{
return new QSize(static_cast<QSize>(static_cast<QSvgGenerator*>(ptr)->size()).width(), static_cast<QSize>(static_cast<QSvgGenerator*>(ptr)->size()).height());
}
char* QSvgGenerator_Title(void* ptr)
{
2015-11-13 20:44:32 +03:00
return static_cast<QSvgGenerator*>(ptr)->title().toUtf8().data();
}
void* QSvgGenerator_ViewBoxF(void* ptr)
{
2016-04-22 21:39:34 +03:00
return new QRectF(static_cast<QRectF>(static_cast<QSvgGenerator*>(ptr)->viewBoxF()).x(), static_cast<QRectF>(static_cast<QSvgGenerator*>(ptr)->viewBoxF()).y(), static_cast<QRectF>(static_cast<QSvgGenerator*>(ptr)->viewBoxF()).width(), static_cast<QRectF>(static_cast<QSvgGenerator*>(ptr)->viewBoxF()).height());
}
void* QSvgGenerator_NewQSvgGenerator()
{
return new MyQSvgGenerator();
2015-11-13 20:44:32 +03:00
}
int QSvgGenerator_Metric(void* ptr, int metric)
{
return static_cast<QSvgGenerator*>(ptr)->metric(static_cast<QPaintDevice::PaintDeviceMetric>(metric));
}
int QSvgGenerator_MetricDefault(void* ptr, int metric)
{
return static_cast<QSvgGenerator*>(ptr)->QSvgGenerator::metric(static_cast<QPaintDevice::PaintDeviceMetric>(metric));
}
void* QSvgGenerator_PaintEngine(void* ptr)
{
return static_cast<QSvgGenerator*>(ptr)->paintEngine();
}
void* QSvgGenerator_PaintEngineDefault(void* ptr)
{
return static_cast<QSvgGenerator*>(ptr)->QSvgGenerator::paintEngine();
}
void* QSvgGenerator_ViewBox(void* ptr)
{
return new QRect(static_cast<QRect>(static_cast<QSvgGenerator*>(ptr)->viewBox()).x(), static_cast<QRect>(static_cast<QSvgGenerator*>(ptr)->viewBox()).y(), static_cast<QRect>(static_cast<QSvgGenerator*>(ptr)->viewBox()).width(), static_cast<QRect>(static_cast<QSvgGenerator*>(ptr)->viewBox()).height());
}
void QSvgGenerator_DestroyQSvgGenerator(void* ptr)
{
2015-11-13 20:44:32 +03:00
static_cast<QSvgGenerator*>(ptr)->~QSvgGenerator();
}
char* QSvgGenerator_ObjectNameAbs(void* ptr)
{
if (dynamic_cast<MyQSvgGenerator*>(static_cast<QSvgGenerator*>(ptr))) {
return static_cast<MyQSvgGenerator*>(ptr)->objectNameAbs().toUtf8().data();
}
return QString("QSvgGenerator_BASE").toUtf8().data();
}
void QSvgGenerator_SetObjectNameAbs(void* ptr, char* name)
{
if (dynamic_cast<MyQSvgGenerator*>(static_cast<QSvgGenerator*>(ptr))) {
static_cast<MyQSvgGenerator*>(ptr)->setObjectNameAbs(QString(name));
}
}
class MyQSvgRenderer: public QSvgRenderer
{
2015-11-13 20:44:32 +03:00
public:
MyQSvgRenderer(QObject *parent) : QSvgRenderer(parent) {};
MyQSvgRenderer(QXmlStreamReader *contents, QObject *parent) : QSvgRenderer(contents, parent) {};
MyQSvgRenderer(const QByteArray &contents, QObject *parent) : QSvgRenderer(contents, parent) {};
MyQSvgRenderer(const QString &filename, QObject *parent) : QSvgRenderer(filename, parent) {};
bool load(QXmlStreamReader * contents) { return callbackQSvgRenderer_Load3(this, this->objectName().toUtf8().data(), contents) != 0; };
bool load(const QByteArray & contents) { return callbackQSvgRenderer_Load2(this, this->objectName().toUtf8().data(), QString(contents).toUtf8().data()) != 0; };
bool load(const QString & filename) { return callbackQSvgRenderer_Load(this, this->objectName().toUtf8().data(), filename.toUtf8().data()) != 0; };
void render(QPainter * painter) { callbackQSvgRenderer_Render(this, this->objectName().toUtf8().data(), painter); };
void render(QPainter * painter, const QRectF & bounds) { callbackQSvgRenderer_Render2(this, this->objectName().toUtf8().data(), painter, new QRectF(static_cast<QRectF>(bounds).x(), static_cast<QRectF>(bounds).y(), static_cast<QRectF>(bounds).width(), static_cast<QRectF>(bounds).height())); };
void render(QPainter * painter, const QString & elementId, const QRectF & bounds) { callbackQSvgRenderer_Render3(this, this->objectName().toUtf8().data(), painter, elementId.toUtf8().data(), new QRectF(static_cast<QRectF>(bounds).x(), static_cast<QRectF>(bounds).y(), static_cast<QRectF>(bounds).width(), static_cast<QRectF>(bounds).height())); };
void Signal_RepaintNeeded() { callbackQSvgRenderer_RepaintNeeded(this, this->objectName().toUtf8().data()); };
void timerEvent(QTimerEvent * event) { callbackQSvgRenderer_TimerEvent(this, this->objectName().toUtf8().data(), event); };
void childEvent(QChildEvent * event) { callbackQSvgRenderer_ChildEvent(this, this->objectName().toUtf8().data(), event); };
void connectNotify(const QMetaMethod & sign) { callbackQSvgRenderer_ConnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
void customEvent(QEvent * event) { callbackQSvgRenderer_CustomEvent(this, this->objectName().toUtf8().data(), event); };
void deleteLater() { callbackQSvgRenderer_DeleteLater(this, this->objectName().toUtf8().data()); };
void disconnectNotify(const QMetaMethod & sign) { callbackQSvgRenderer_DisconnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
bool event(QEvent * e) { return callbackQSvgRenderer_Event(this, this->objectName().toUtf8().data(), e) != 0; };
bool eventFilter(QObject * watched, QEvent * event) { return callbackQSvgRenderer_EventFilter(this, this->objectName().toUtf8().data(), watched, event) != 0; };
const QMetaObject * metaObject() const { return static_cast<QMetaObject*>(callbackQSvgRenderer_MetaObject(const_cast<MyQSvgRenderer*>(this), this->objectName().toUtf8().data())); };
2015-11-13 20:44:32 +03:00
};
int QSvgRenderer_FramesPerSecond(void* ptr)
{
2015-11-13 20:44:32 +03:00
return static_cast<QSvgRenderer*>(ptr)->framesPerSecond();
}
void QSvgRenderer_SetFramesPerSecond(void* ptr, int num)
{
2015-11-13 20:44:32 +03:00
static_cast<QSvgRenderer*>(ptr)->setFramesPerSecond(num);
}
void QSvgRenderer_SetViewBox(void* ptr, void* viewbox)
{
2015-11-13 20:44:32 +03:00
static_cast<QSvgRenderer*>(ptr)->setViewBox(*static_cast<QRect*>(viewbox));
}
void QSvgRenderer_SetViewBox2(void* ptr, void* viewbox)
{
2015-11-13 20:44:32 +03:00
static_cast<QSvgRenderer*>(ptr)->setViewBox(*static_cast<QRectF*>(viewbox));
}
void* QSvgRenderer_ViewBoxF(void* ptr)
{
2016-04-22 21:39:34 +03:00
return new QRectF(static_cast<QRectF>(static_cast<QSvgRenderer*>(ptr)->viewBoxF()).x(), static_cast<QRectF>(static_cast<QSvgRenderer*>(ptr)->viewBoxF()).y(), static_cast<QRectF>(static_cast<QSvgRenderer*>(ptr)->viewBoxF()).width(), static_cast<QRectF>(static_cast<QSvgRenderer*>(ptr)->viewBoxF()).height());
}
void* QSvgRenderer_NewQSvgRenderer(void* parent)
{
return new MyQSvgRenderer(static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
void* QSvgRenderer_NewQSvgRenderer4(void* contents, void* parent)
{
return new MyQSvgRenderer(static_cast<QXmlStreamReader*>(contents), static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
void* QSvgRenderer_NewQSvgRenderer3(char* contents, void* parent)
{
return new MyQSvgRenderer(QByteArray(contents), static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
void* QSvgRenderer_NewQSvgRenderer2(char* filename, void* parent)
{
return new MyQSvgRenderer(QString(filename), static_cast<QObject*>(parent));
2015-11-13 20:44:32 +03:00
}
int QSvgRenderer_Animated(void* ptr)
{
2015-11-13 20:44:32 +03:00
return static_cast<QSvgRenderer*>(ptr)->animated();
}
void* QSvgRenderer_BoundsOnElement(void* ptr, char* id)
{
2016-04-22 21:39:34 +03:00
return new QRectF(static_cast<QRectF>(static_cast<QSvgRenderer*>(ptr)->boundsOnElement(QString(id))).x(), static_cast<QRectF>(static_cast<QSvgRenderer*>(ptr)->boundsOnElement(QString(id))).y(), static_cast<QRectF>(static_cast<QSvgRenderer*>(ptr)->boundsOnElement(QString(id))).width(), static_cast<QRectF>(static_cast<QSvgRenderer*>(ptr)->boundsOnElement(QString(id))).height());
}
void* QSvgRenderer_DefaultSize(void* ptr)
{
return new QSize(static_cast<QSize>(static_cast<QSvgRenderer*>(ptr)->defaultSize()).width(), static_cast<QSize>(static_cast<QSvgRenderer*>(ptr)->defaultSize()).height());
}
int QSvgRenderer_ElementExists(void* ptr, char* id)
{
2015-11-13 20:44:32 +03:00
return static_cast<QSvgRenderer*>(ptr)->elementExists(QString(id));
}
int QSvgRenderer_IsValid(void* ptr)
{
2015-11-13 20:44:32 +03:00
return static_cast<QSvgRenderer*>(ptr)->isValid();
}
int QSvgRenderer_Load3(void* ptr, void* contents)
{
bool returnArg;
QMetaObject::invokeMethod(static_cast<QSvgRenderer*>(ptr), "load", Q_RETURN_ARG(bool, returnArg), Q_ARG(QXmlStreamReader*, static_cast<QXmlStreamReader*>(contents)));
return returnArg;
2015-11-13 20:44:32 +03:00
}
int QSvgRenderer_Load2(void* ptr, char* contents)
{
bool returnArg;
QMetaObject::invokeMethod(static_cast<QSvgRenderer*>(ptr), "load", Q_RETURN_ARG(bool, returnArg), Q_ARG(QByteArray, QByteArray(contents)));
return returnArg;
2015-11-13 20:44:32 +03:00
}
int QSvgRenderer_Load(void* ptr, char* filename)
{
bool returnArg;
QMetaObject::invokeMethod(static_cast<QSvgRenderer*>(ptr), "load", Q_RETURN_ARG(bool, returnArg), Q_ARG(QString, QString(filename)));
return returnArg;
2015-11-13 20:44:32 +03:00
}
void QSvgRenderer_Render(void* ptr, void* painter)
{
2015-11-13 20:44:32 +03:00
QMetaObject::invokeMethod(static_cast<QSvgRenderer*>(ptr), "render", Q_ARG(QPainter*, static_cast<QPainter*>(painter)));
}
void QSvgRenderer_Render2(void* ptr, void* painter, void* bounds)
{
2015-11-13 20:44:32 +03:00
QMetaObject::invokeMethod(static_cast<QSvgRenderer*>(ptr), "render", Q_ARG(QPainter*, static_cast<QPainter*>(painter)), Q_ARG(QRectF, *static_cast<QRectF*>(bounds)));
}
void QSvgRenderer_Render3(void* ptr, void* painter, char* elementId, void* bounds)
{
2015-11-13 20:44:32 +03:00
QMetaObject::invokeMethod(static_cast<QSvgRenderer*>(ptr), "render", Q_ARG(QPainter*, static_cast<QPainter*>(painter)), Q_ARG(QString, QString(elementId)), Q_ARG(QRectF, *static_cast<QRectF*>(bounds)));
}
void QSvgRenderer_ConnectRepaintNeeded(void* ptr)
{
QObject::connect(static_cast<QSvgRenderer*>(ptr), static_cast<void (QSvgRenderer::*)()>(&QSvgRenderer::repaintNeeded), static_cast<MyQSvgRenderer*>(ptr), static_cast<void (MyQSvgRenderer::*)()>(&MyQSvgRenderer::Signal_RepaintNeeded));
2015-11-13 20:44:32 +03:00
}
void QSvgRenderer_DisconnectRepaintNeeded(void* ptr)
{
QObject::disconnect(static_cast<QSvgRenderer*>(ptr), static_cast<void (QSvgRenderer::*)()>(&QSvgRenderer::repaintNeeded), static_cast<MyQSvgRenderer*>(ptr), static_cast<void (MyQSvgRenderer::*)()>(&MyQSvgRenderer::Signal_RepaintNeeded));
2015-11-13 20:44:32 +03:00
}
void QSvgRenderer_RepaintNeeded(void* ptr)
{
static_cast<QSvgRenderer*>(ptr)->repaintNeeded();
}
void* QSvgRenderer_ViewBox(void* ptr)
{
return new QRect(static_cast<QRect>(static_cast<QSvgRenderer*>(ptr)->viewBox()).x(), static_cast<QRect>(static_cast<QSvgRenderer*>(ptr)->viewBox()).y(), static_cast<QRect>(static_cast<QSvgRenderer*>(ptr)->viewBox()).width(), static_cast<QRect>(static_cast<QSvgRenderer*>(ptr)->viewBox()).height());
}
void QSvgRenderer_DestroyQSvgRenderer(void* ptr)
{
2015-11-13 20:44:32 +03:00
static_cast<QSvgRenderer*>(ptr)->~QSvgRenderer();
}
void QSvgRenderer_TimerEvent(void* ptr, void* event)
{
static_cast<QSvgRenderer*>(ptr)->timerEvent(static_cast<QTimerEvent*>(event));
}
void QSvgRenderer_TimerEventDefault(void* ptr, void* event)
{
static_cast<QSvgRenderer*>(ptr)->QSvgRenderer::timerEvent(static_cast<QTimerEvent*>(event));
}
void QSvgRenderer_ChildEvent(void* ptr, void* event)
{
static_cast<QSvgRenderer*>(ptr)->childEvent(static_cast<QChildEvent*>(event));
}
void QSvgRenderer_ChildEventDefault(void* ptr, void* event)
{
static_cast<QSvgRenderer*>(ptr)->QSvgRenderer::childEvent(static_cast<QChildEvent*>(event));
}
void QSvgRenderer_ConnectNotify(void* ptr, void* sign)
{
static_cast<QSvgRenderer*>(ptr)->connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QSvgRenderer_ConnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QSvgRenderer*>(ptr)->QSvgRenderer::connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QSvgRenderer_CustomEvent(void* ptr, void* event)
{
static_cast<QSvgRenderer*>(ptr)->customEvent(static_cast<QEvent*>(event));
}
void QSvgRenderer_CustomEventDefault(void* ptr, void* event)
{
static_cast<QSvgRenderer*>(ptr)->QSvgRenderer::customEvent(static_cast<QEvent*>(event));
}
void QSvgRenderer_DeleteLater(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QSvgRenderer*>(ptr), "deleteLater");
}
void QSvgRenderer_DisconnectNotify(void* ptr, void* sign)
{
static_cast<QSvgRenderer*>(ptr)->disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
void QSvgRenderer_DisconnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QSvgRenderer*>(ptr)->QSvgRenderer::disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
int QSvgRenderer_Event(void* ptr, void* e)
{
return static_cast<QSvgRenderer*>(ptr)->event(static_cast<QEvent*>(e));
}
int QSvgRenderer_EventDefault(void* ptr, void* e)
{
return static_cast<QSvgRenderer*>(ptr)->QSvgRenderer::event(static_cast<QEvent*>(e));
}
int QSvgRenderer_EventFilter(void* ptr, void* watched, void* event)
{
return static_cast<QSvgRenderer*>(ptr)->eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
int QSvgRenderer_EventFilterDefault(void* ptr, void* watched, void* event)
{
return static_cast<QSvgRenderer*>(ptr)->QSvgRenderer::eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
void* QSvgRenderer_MetaObject(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QSvgRenderer*>(ptr)->metaObject());
}
void* QSvgRenderer_MetaObjectDefault(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QSvgRenderer*>(ptr)->QSvgRenderer::metaObject());
}
class MyQSvgWidget: public QSvgWidget
{
public:
MyQSvgWidget(QWidget *parent) : QSvgWidget(parent) {};
MyQSvgWidget(const QString &file, QWidget *parent) : QSvgWidget(file, parent) {};
void load(const QByteArray & contents) { callbackQSvgWidget_Load2(this, this->objectName().toUtf8().data(), QString(contents).toUtf8().data()); };
void load(const QString & file) { callbackQSvgWidget_Load(this, this->objectName().toUtf8().data(), file.toUtf8().data()); };
void paintEvent(QPaintEvent * event) { callbackQSvgWidget_PaintEvent(this, this->objectName().toUtf8().data(), event); };
QSize sizeHint() const { return *static_cast<QSize*>(callbackQSvgWidget_SizeHint(const_cast<MyQSvgWidget*>(this), this->objectName().toUtf8().data())); };
void actionEvent(QActionEvent * event) { callbackQSvgWidget_ActionEvent(this, this->objectName().toUtf8().data(), event); };
void dragEnterEvent(QDragEnterEvent * event) { callbackQSvgWidget_DragEnterEvent(this, this->objectName().toUtf8().data(), event); };
void dragLeaveEvent(QDragLeaveEvent * event) { callbackQSvgWidget_DragLeaveEvent(this, this->objectName().toUtf8().data(), event); };
void dragMoveEvent(QDragMoveEvent * event) { callbackQSvgWidget_DragMoveEvent(this, this->objectName().toUtf8().data(), event); };
void dropEvent(QDropEvent * event) { callbackQSvgWidget_DropEvent(this, this->objectName().toUtf8().data(), event); };
void enterEvent(QEvent * event) { callbackQSvgWidget_EnterEvent(this, this->objectName().toUtf8().data(), event); };
void focusInEvent(QFocusEvent * event) { callbackQSvgWidget_FocusInEvent(this, this->objectName().toUtf8().data(), event); };
void focusOutEvent(QFocusEvent * event) { callbackQSvgWidget_FocusOutEvent(this, this->objectName().toUtf8().data(), event); };
void hideEvent(QHideEvent * event) { callbackQSvgWidget_HideEvent(this, this->objectName().toUtf8().data(), event); };
void leaveEvent(QEvent * event) { callbackQSvgWidget_LeaveEvent(this, this->objectName().toUtf8().data(), event); };
int metric(QPaintDevice::PaintDeviceMetric m) const { return callbackQSvgWidget_Metric(const_cast<MyQSvgWidget*>(this), this->objectName().toUtf8().data(), m); };
QSize minimumSizeHint() const { return *static_cast<QSize*>(callbackQSvgWidget_MinimumSizeHint(const_cast<MyQSvgWidget*>(this), this->objectName().toUtf8().data())); };
void moveEvent(QMoveEvent * event) { callbackQSvgWidget_MoveEvent(this, this->objectName().toUtf8().data(), event); };
QPaintEngine * paintEngine() const { return static_cast<QPaintEngine*>(callbackQSvgWidget_PaintEngine(const_cast<MyQSvgWidget*>(this), this->objectName().toUtf8().data())); };
void setEnabled(bool vbo) { callbackQSvgWidget_SetEnabled(this, this->objectName().toUtf8().data(), vbo); };
void setStyleSheet(const QString & styleSheet) { callbackQSvgWidget_SetStyleSheet(this, this->objectName().toUtf8().data(), styleSheet.toUtf8().data()); };
void setVisible(bool visible) { callbackQSvgWidget_SetVisible(this, this->objectName().toUtf8().data(), visible); };
void setWindowModified(bool vbo) { callbackQSvgWidget_SetWindowModified(this, this->objectName().toUtf8().data(), vbo); };
void setWindowTitle(const QString & vqs) { callbackQSvgWidget_SetWindowTitle(this, this->objectName().toUtf8().data(), vqs.toUtf8().data()); };
void showEvent(QShowEvent * event) { callbackQSvgWidget_ShowEvent(this, this->objectName().toUtf8().data(), event); };
void changeEvent(QEvent * event) { callbackQSvgWidget_ChangeEvent(this, this->objectName().toUtf8().data(), event); };
bool close() { return callbackQSvgWidget_Close(this, this->objectName().toUtf8().data()) != 0; };
void closeEvent(QCloseEvent * event) { callbackQSvgWidget_CloseEvent(this, this->objectName().toUtf8().data(), event); };
void contextMenuEvent(QContextMenuEvent * event) { callbackQSvgWidget_ContextMenuEvent(this, this->objectName().toUtf8().data(), event); };
bool event(QEvent * event) { return callbackQSvgWidget_Event(this, this->objectName().toUtf8().data(), event) != 0; };
bool focusNextPrevChild(bool next) { return callbackQSvgWidget_FocusNextPrevChild(this, this->objectName().toUtf8().data(), next) != 0; };
bool hasHeightForWidth() const { return callbackQSvgWidget_HasHeightForWidth(const_cast<MyQSvgWidget*>(this), this->objectName().toUtf8().data()) != 0; };
int heightForWidth(int w) const { return callbackQSvgWidget_HeightForWidth(const_cast<MyQSvgWidget*>(this), this->objectName().toUtf8().data(), w); };
void hide() { callbackQSvgWidget_Hide(this, this->objectName().toUtf8().data()); };
void initPainter(QPainter * painter) const { callbackQSvgWidget_InitPainter(const_cast<MyQSvgWidget*>(this), this->objectName().toUtf8().data(), painter); };
void inputMethodEvent(QInputMethodEvent * event) { callbackQSvgWidget_InputMethodEvent(this, this->objectName().toUtf8().data(), event); };
QVariant inputMethodQuery(Qt::InputMethodQuery query) const { return *static_cast<QVariant*>(callbackQSvgWidget_InputMethodQuery(const_cast<MyQSvgWidget*>(this), this->objectName().toUtf8().data(), query)); };
void keyPressEvent(QKeyEvent * event) { callbackQSvgWidget_KeyPressEvent(this, this->objectName().toUtf8().data(), event); };
void keyReleaseEvent(QKeyEvent * event) { callbackQSvgWidget_KeyReleaseEvent(this, this->objectName().toUtf8().data(), event); };
void lower() { callbackQSvgWidget_Lower(this, this->objectName().toUtf8().data()); };
void mouseDoubleClickEvent(QMouseEvent * event) { callbackQSvgWidget_MouseDoubleClickEvent(this, this->objectName().toUtf8().data(), event); };
void mouseMoveEvent(QMouseEvent * event) { callbackQSvgWidget_MouseMoveEvent(this, this->objectName().toUtf8().data(), event); };
void mousePressEvent(QMouseEvent * event) { callbackQSvgWidget_MousePressEvent(this, this->objectName().toUtf8().data(), event); };
void mouseReleaseEvent(QMouseEvent * event) { callbackQSvgWidget_MouseReleaseEvent(this, this->objectName().toUtf8().data(), event); };
bool nativeEvent(const QByteArray & eventType, void * message, long * result) { return callbackQSvgWidget_NativeEvent(this, this->objectName().toUtf8().data(), QString(eventType).toUtf8().data(), message, *result) != 0; };
void raise() { callbackQSvgWidget_Raise(this, this->objectName().toUtf8().data()); };
void repaint() { callbackQSvgWidget_Repaint(this, this->objectName().toUtf8().data()); };
void resizeEvent(QResizeEvent * event) { callbackQSvgWidget_ResizeEvent(this, this->objectName().toUtf8().data(), event); };
void setDisabled(bool disable) { callbackQSvgWidget_SetDisabled(this, this->objectName().toUtf8().data(), disable); };
void setFocus() { callbackQSvgWidget_SetFocus2(this, this->objectName().toUtf8().data()); };
void setHidden(bool hidden) { callbackQSvgWidget_SetHidden(this, this->objectName().toUtf8().data(), hidden); };
void show() { callbackQSvgWidget_Show(this, this->objectName().toUtf8().data()); };
void showFullScreen() { callbackQSvgWidget_ShowFullScreen(this, this->objectName().toUtf8().data()); };
void showMaximized() { callbackQSvgWidget_ShowMaximized(this, this->objectName().toUtf8().data()); };
void showMinimized() { callbackQSvgWidget_ShowMinimized(this, this->objectName().toUtf8().data()); };
void showNormal() { callbackQSvgWidget_ShowNormal(this, this->objectName().toUtf8().data()); };
void tabletEvent(QTabletEvent * event) { callbackQSvgWidget_TabletEvent(this, this->objectName().toUtf8().data(), event); };
void update() { callbackQSvgWidget_Update(this, this->objectName().toUtf8().data()); };
void updateMicroFocus() { callbackQSvgWidget_UpdateMicroFocus(this, this->objectName().toUtf8().data()); };
void wheelEvent(QWheelEvent * event) { callbackQSvgWidget_WheelEvent(this, this->objectName().toUtf8().data(), event); };
void timerEvent(QTimerEvent * event) { callbackQSvgWidget_TimerEvent(this, this->objectName().toUtf8().data(), event); };
void childEvent(QChildEvent * event) { callbackQSvgWidget_ChildEvent(this, this->objectName().toUtf8().data(), event); };
void connectNotify(const QMetaMethod & sign) { callbackQSvgWidget_ConnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
void customEvent(QEvent * event) { callbackQSvgWidget_CustomEvent(this, this->objectName().toUtf8().data(), event); };
void deleteLater() { callbackQSvgWidget_DeleteLater(this, this->objectName().toUtf8().data()); };
void disconnectNotify(const QMetaMethod & sign) { callbackQSvgWidget_DisconnectNotify(this, this->objectName().toUtf8().data(), new QMetaMethod(sign)); };
bool eventFilter(QObject * watched, QEvent * event) { return callbackQSvgWidget_EventFilter(this, this->objectName().toUtf8().data(), watched, event) != 0; };
const QMetaObject * metaObject() const { return static_cast<QMetaObject*>(callbackQSvgWidget_MetaObject(const_cast<MyQSvgWidget*>(this), this->objectName().toUtf8().data())); };
};
void* QSvgWidget_NewQSvgWidget(void* parent)
{
return new MyQSvgWidget(static_cast<QWidget*>(parent));
}
void* QSvgWidget_NewQSvgWidget2(char* file, void* parent)
{
return new MyQSvgWidget(QString(file), static_cast<QWidget*>(parent));
}
void QSvgWidget_Load2(void* ptr, char* contents)
{
2016-04-17 00:38:16 +03:00
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "load", Q_ARG(QByteArray, QByteArray(contents)));
}
void QSvgWidget_Load(void* ptr, char* file)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "load", Q_ARG(QString, QString(file)));
}
void QSvgWidget_PaintEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->paintEvent(static_cast<QPaintEvent*>(event));
}
void QSvgWidget_PaintEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::paintEvent(static_cast<QPaintEvent*>(event));
}
void* QSvgWidget_Renderer(void* ptr)
{
return static_cast<QSvgWidget*>(ptr)->renderer();
}
void* QSvgWidget_SizeHint(void* ptr)
{
return new QSize(static_cast<QSize>(static_cast<QSvgWidget*>(ptr)->sizeHint()).width(), static_cast<QSize>(static_cast<QSvgWidget*>(ptr)->sizeHint()).height());
}
void* QSvgWidget_SizeHintDefault(void* ptr)
{
return new QSize(static_cast<QSize>(static_cast<QSvgWidget*>(ptr)->QSvgWidget::sizeHint()).width(), static_cast<QSize>(static_cast<QSvgWidget*>(ptr)->QSvgWidget::sizeHint()).height());
}
void QSvgWidget_DestroyQSvgWidget(void* ptr)
{
static_cast<QSvgWidget*>(ptr)->~QSvgWidget();
}
void QSvgWidget_ActionEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->actionEvent(static_cast<QActionEvent*>(event));
}
void QSvgWidget_ActionEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::actionEvent(static_cast<QActionEvent*>(event));
}
void QSvgWidget_DragEnterEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->dragEnterEvent(static_cast<QDragEnterEvent*>(event));
}
void QSvgWidget_DragEnterEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::dragEnterEvent(static_cast<QDragEnterEvent*>(event));
}
void QSvgWidget_DragLeaveEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->dragLeaveEvent(static_cast<QDragLeaveEvent*>(event));
}
void QSvgWidget_DragLeaveEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::dragLeaveEvent(static_cast<QDragLeaveEvent*>(event));
}
void QSvgWidget_DragMoveEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->dragMoveEvent(static_cast<QDragMoveEvent*>(event));
}
void QSvgWidget_DragMoveEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::dragMoveEvent(static_cast<QDragMoveEvent*>(event));
}
void QSvgWidget_DropEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->dropEvent(static_cast<QDropEvent*>(event));
}
void QSvgWidget_DropEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::dropEvent(static_cast<QDropEvent*>(event));
}
void QSvgWidget_EnterEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->enterEvent(static_cast<QEvent*>(event));
}
void QSvgWidget_EnterEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::enterEvent(static_cast<QEvent*>(event));
}
void QSvgWidget_FocusInEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->focusInEvent(static_cast<QFocusEvent*>(event));
}
void QSvgWidget_FocusInEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::focusInEvent(static_cast<QFocusEvent*>(event));
}
void QSvgWidget_FocusOutEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->focusOutEvent(static_cast<QFocusEvent*>(event));
}
void QSvgWidget_FocusOutEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::focusOutEvent(static_cast<QFocusEvent*>(event));
}
void QSvgWidget_HideEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->hideEvent(static_cast<QHideEvent*>(event));
}
void QSvgWidget_HideEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::hideEvent(static_cast<QHideEvent*>(event));
}
void QSvgWidget_LeaveEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->leaveEvent(static_cast<QEvent*>(event));
}
void QSvgWidget_LeaveEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::leaveEvent(static_cast<QEvent*>(event));
}
int QSvgWidget_Metric(void* ptr, int m)
{
return static_cast<QSvgWidget*>(ptr)->metric(static_cast<QPaintDevice::PaintDeviceMetric>(m));
}
int QSvgWidget_MetricDefault(void* ptr, int m)
{
return static_cast<QSvgWidget*>(ptr)->QSvgWidget::metric(static_cast<QPaintDevice::PaintDeviceMetric>(m));
}
void* QSvgWidget_MinimumSizeHint(void* ptr)
{
return new QSize(static_cast<QSize>(static_cast<QSvgWidget*>(ptr)->minimumSizeHint()).width(), static_cast<QSize>(static_cast<QSvgWidget*>(ptr)->minimumSizeHint()).height());
}
void* QSvgWidget_MinimumSizeHintDefault(void* ptr)
{
return new QSize(static_cast<QSize>(static_cast<QSvgWidget*>(ptr)->QSvgWidget::minimumSizeHint()).width(), static_cast<QSize>(static_cast<QSvgWidget*>(ptr)->QSvgWidget::minimumSizeHint()).height());
}
void QSvgWidget_MoveEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->moveEvent(static_cast<QMoveEvent*>(event));
}
void QSvgWidget_MoveEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::moveEvent(static_cast<QMoveEvent*>(event));
}
void* QSvgWidget_PaintEngine(void* ptr)
{
return static_cast<QSvgWidget*>(ptr)->paintEngine();
}
void* QSvgWidget_PaintEngineDefault(void* ptr)
{
return static_cast<QSvgWidget*>(ptr)->QSvgWidget::paintEngine();
}
void QSvgWidget_SetEnabled(void* ptr, int vbo)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "setEnabled", Q_ARG(bool, vbo != 0));
}
void QSvgWidget_SetStyleSheet(void* ptr, char* styleSheet)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "setStyleSheet", Q_ARG(QString, QString(styleSheet)));
}
void QSvgWidget_SetVisible(void* ptr, int visible)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "setVisible", Q_ARG(bool, visible != 0));
}
void QSvgWidget_SetVisibleDefault(void* ptr, int visible)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::setVisible(visible != 0);
}
void QSvgWidget_SetWindowModified(void* ptr, int vbo)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "setWindowModified", Q_ARG(bool, vbo != 0));
}
void QSvgWidget_SetWindowTitle(void* ptr, char* vqs)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "setWindowTitle", Q_ARG(QString, QString(vqs)));
}
void QSvgWidget_ShowEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->showEvent(static_cast<QShowEvent*>(event));
}
void QSvgWidget_ShowEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::showEvent(static_cast<QShowEvent*>(event));
}
void QSvgWidget_ChangeEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->changeEvent(static_cast<QEvent*>(event));
}
void QSvgWidget_ChangeEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::changeEvent(static_cast<QEvent*>(event));
}
int QSvgWidget_Close(void* ptr)
{
bool returnArg;
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "close", Q_RETURN_ARG(bool, returnArg));
return returnArg;
}
void QSvgWidget_CloseEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->closeEvent(static_cast<QCloseEvent*>(event));
}
void QSvgWidget_CloseEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::closeEvent(static_cast<QCloseEvent*>(event));
}
void QSvgWidget_ContextMenuEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->contextMenuEvent(static_cast<QContextMenuEvent*>(event));
}
void QSvgWidget_ContextMenuEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::contextMenuEvent(static_cast<QContextMenuEvent*>(event));
}
int QSvgWidget_Event(void* ptr, void* event)
{
return static_cast<QSvgWidget*>(ptr)->event(static_cast<QEvent*>(event));
}
int QSvgWidget_EventDefault(void* ptr, void* event)
{
return static_cast<QSvgWidget*>(ptr)->QSvgWidget::event(static_cast<QEvent*>(event));
}
int QSvgWidget_FocusNextPrevChild(void* ptr, int next)
{
return static_cast<QSvgWidget*>(ptr)->focusNextPrevChild(next != 0);
}
int QSvgWidget_FocusNextPrevChildDefault(void* ptr, int next)
{
return static_cast<QSvgWidget*>(ptr)->QSvgWidget::focusNextPrevChild(next != 0);
}
int QSvgWidget_HasHeightForWidth(void* ptr)
{
return static_cast<QSvgWidget*>(ptr)->hasHeightForWidth();
}
int QSvgWidget_HasHeightForWidthDefault(void* ptr)
{
return static_cast<QSvgWidget*>(ptr)->QSvgWidget::hasHeightForWidth();
}
int QSvgWidget_HeightForWidth(void* ptr, int w)
{
return static_cast<QSvgWidget*>(ptr)->heightForWidth(w);
}
int QSvgWidget_HeightForWidthDefault(void* ptr, int w)
{
return static_cast<QSvgWidget*>(ptr)->QSvgWidget::heightForWidth(w);
}
void QSvgWidget_Hide(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "hide");
}
void QSvgWidget_InitPainter(void* ptr, void* painter)
{
static_cast<QSvgWidget*>(ptr)->initPainter(static_cast<QPainter*>(painter));
}
void QSvgWidget_InitPainterDefault(void* ptr, void* painter)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::initPainter(static_cast<QPainter*>(painter));
}
void QSvgWidget_InputMethodEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->inputMethodEvent(static_cast<QInputMethodEvent*>(event));
}
void QSvgWidget_InputMethodEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::inputMethodEvent(static_cast<QInputMethodEvent*>(event));
}
void* QSvgWidget_InputMethodQuery(void* ptr, int query)
{
return new QVariant(static_cast<QSvgWidget*>(ptr)->inputMethodQuery(static_cast<Qt::InputMethodQuery>(query)));
}
void* QSvgWidget_InputMethodQueryDefault(void* ptr, int query)
{
return new QVariant(static_cast<QSvgWidget*>(ptr)->QSvgWidget::inputMethodQuery(static_cast<Qt::InputMethodQuery>(query)));
}
void QSvgWidget_KeyPressEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->keyPressEvent(static_cast<QKeyEvent*>(event));
}
void QSvgWidget_KeyPressEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::keyPressEvent(static_cast<QKeyEvent*>(event));
}
void QSvgWidget_KeyReleaseEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->keyReleaseEvent(static_cast<QKeyEvent*>(event));
}
void QSvgWidget_KeyReleaseEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::keyReleaseEvent(static_cast<QKeyEvent*>(event));
}
void QSvgWidget_Lower(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "lower");
}
void QSvgWidget_MouseDoubleClickEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->mouseDoubleClickEvent(static_cast<QMouseEvent*>(event));
}
void QSvgWidget_MouseDoubleClickEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::mouseDoubleClickEvent(static_cast<QMouseEvent*>(event));
}
void QSvgWidget_MouseMoveEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->mouseMoveEvent(static_cast<QMouseEvent*>(event));
}
void QSvgWidget_MouseMoveEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::mouseMoveEvent(static_cast<QMouseEvent*>(event));
}
void QSvgWidget_MousePressEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->mousePressEvent(static_cast<QMouseEvent*>(event));
}
void QSvgWidget_MousePressEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::mousePressEvent(static_cast<QMouseEvent*>(event));
}
void QSvgWidget_MouseReleaseEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->mouseReleaseEvent(static_cast<QMouseEvent*>(event));
}
void QSvgWidget_MouseReleaseEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::mouseReleaseEvent(static_cast<QMouseEvent*>(event));
}
int QSvgWidget_NativeEvent(void* ptr, char* eventType, void* message, long result)
{
return static_cast<QSvgWidget*>(ptr)->nativeEvent(QByteArray(eventType), message, &result);
}
int QSvgWidget_NativeEventDefault(void* ptr, char* eventType, void* message, long result)
{
return static_cast<QSvgWidget*>(ptr)->QSvgWidget::nativeEvent(QByteArray(eventType), message, &result);
}
void QSvgWidget_Raise(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "raise");
}
void QSvgWidget_Repaint(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "repaint");
}
void QSvgWidget_ResizeEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->resizeEvent(static_cast<QResizeEvent*>(event));
}
void QSvgWidget_ResizeEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::resizeEvent(static_cast<QResizeEvent*>(event));
}
void QSvgWidget_SetDisabled(void* ptr, int disable)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "setDisabled", Q_ARG(bool, disable != 0));
}
void QSvgWidget_SetFocus2(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "setFocus");
}
void QSvgWidget_SetHidden(void* ptr, int hidden)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "setHidden", Q_ARG(bool, hidden != 0));
}
void QSvgWidget_Show(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "show");
}
void QSvgWidget_ShowFullScreen(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "showFullScreen");
}
void QSvgWidget_ShowMaximized(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "showMaximized");
}
void QSvgWidget_ShowMinimized(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "showMinimized");
}
void QSvgWidget_ShowNormal(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "showNormal");
}
void QSvgWidget_TabletEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->tabletEvent(static_cast<QTabletEvent*>(event));
}
void QSvgWidget_TabletEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::tabletEvent(static_cast<QTabletEvent*>(event));
}
void QSvgWidget_Update(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "update");
}
void QSvgWidget_UpdateMicroFocus(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "updateMicroFocus");
}
void QSvgWidget_WheelEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->wheelEvent(static_cast<QWheelEvent*>(event));
}
void QSvgWidget_WheelEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::wheelEvent(static_cast<QWheelEvent*>(event));
}
void QSvgWidget_TimerEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->timerEvent(static_cast<QTimerEvent*>(event));
}
void QSvgWidget_TimerEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::timerEvent(static_cast<QTimerEvent*>(event));
}
void QSvgWidget_ChildEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->childEvent(static_cast<QChildEvent*>(event));
}
void QSvgWidget_ChildEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::childEvent(static_cast<QChildEvent*>(event));
}
void QSvgWidget_ConnectNotify(void* ptr, void* sign)
{
static_cast<QSvgWidget*>(ptr)->connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QSvgWidget_ConnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::connectNotify(*static_cast<QMetaMethod*>(sign));
}
void QSvgWidget_CustomEvent(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->customEvent(static_cast<QEvent*>(event));
}
void QSvgWidget_CustomEventDefault(void* ptr, void* event)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::customEvent(static_cast<QEvent*>(event));
}
void QSvgWidget_DeleteLater(void* ptr)
{
QMetaObject::invokeMethod(static_cast<QSvgWidget*>(ptr), "deleteLater");
}
void QSvgWidget_DisconnectNotify(void* ptr, void* sign)
{
static_cast<QSvgWidget*>(ptr)->disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
void QSvgWidget_DisconnectNotifyDefault(void* ptr, void* sign)
{
static_cast<QSvgWidget*>(ptr)->QSvgWidget::disconnectNotify(*static_cast<QMetaMethod*>(sign));
}
int QSvgWidget_EventFilter(void* ptr, void* watched, void* event)
{
return static_cast<QSvgWidget*>(ptr)->eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
int QSvgWidget_EventFilterDefault(void* ptr, void* watched, void* event)
{
return static_cast<QSvgWidget*>(ptr)->QSvgWidget::eventFilter(static_cast<QObject*>(watched), static_cast<QEvent*>(event));
}
void* QSvgWidget_MetaObject(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QSvgWidget*>(ptr)->metaObject());
}
void* QSvgWidget_MetaObjectDefault(void* ptr)
{
return const_cast<QMetaObject*>(static_cast<QSvgWidget*>(ptr)->QSvgWidget::metaObject());
}