2024-08-25 16:08:24 +12:00
# include <QBrush>
2024-11-19 19:29:06 +13:00
# include <QChildEvent>
2024-08-25 16:08:24 +12:00
# include <QEvent>
2024-11-19 19:29:06 +13:00
# include <QFocusEvent>
2024-08-25 16:08:24 +12:00
# include <QFont>
# include <QGraphicsEllipseItem>
# include <QGraphicsItem>
# include <QGraphicsItemGroup>
# include <QGraphicsLineItem>
# include <QGraphicsPathItem>
# include <QGraphicsPixmapItem>
2024-08-29 19:01:51 +12:00
# include <QGraphicsProxyWidget>
2024-08-25 16:08:24 +12:00
# include <QGraphicsRectItem>
# include <QGraphicsScene>
2024-11-19 19:29:06 +13:00
# include <QGraphicsSceneContextMenuEvent>
# include <QGraphicsSceneDragDropEvent>
# include <QGraphicsSceneHelpEvent>
# include <QGraphicsSceneMouseEvent>
# include <QGraphicsSceneWheelEvent>
2024-08-25 16:08:24 +12:00
# include <QGraphicsSimpleTextItem>
# include <QGraphicsTextItem>
# include <QGraphicsView>
# include <QGraphicsWidget>
2024-11-19 19:29:06 +13:00
# include <QInputMethodEvent>
# include <QKeyEvent>
2024-08-25 16:08:24 +12:00
# include <QLineF>
# include <QList>
2024-11-19 19:29:06 +13:00
# include <QMetaMethod>
2024-08-25 16:08:24 +12:00
# include <QMetaObject>
# include <QObject>
2024-08-29 19:01:51 +12:00
# include <QPainter>
2024-08-25 16:08:24 +12:00
# include <QPainterPath>
# include <QPalette>
# include <QPen>
# include <QPixmap>
# include <QPointF>
# include <QRectF>
# include <QString>
2024-08-29 19:01:51 +12:00
# include <QByteArray>
# include <cstring>
2024-08-25 16:08:24 +12:00
# include <QStyle>
2024-11-19 19:29:06 +13:00
# include <QTimerEvent>
2024-08-25 16:08:24 +12:00
# include <QTransform>
2024-08-29 19:01:51 +12:00
# include <QVariant>
# include <QWidget>
2024-10-16 18:07:56 +13:00
# include <qgraphicsscene.h>
2024-08-29 19:01:51 +12:00
# include "gen_qgraphicsscene.h"
2024-12-11 19:55:47 +13:00
2025-01-07 11:30:33 +01:00
# ifdef __cplusplus
extern " C " {
# endif
2025-02-01 13:45:16 +13:00
void miqt_exec_callback_QGraphicsScene_changed ( intptr_t , struct miqt_array /* of QRectF* */ ) ;
void miqt_exec_callback_QGraphicsScene_sceneRectChanged ( intptr_t , QRectF * ) ;
void miqt_exec_callback_QGraphicsScene_selectionChanged ( intptr_t ) ;
void miqt_exec_callback_QGraphicsScene_focusItemChanged ( intptr_t , QGraphicsItem * , QGraphicsItem * , int ) ;
QVariant * miqt_exec_callback_QGraphicsScene_inputMethodQuery ( const QGraphicsScene * , intptr_t , int ) ;
bool miqt_exec_callback_QGraphicsScene_event ( QGraphicsScene * , intptr_t , QEvent * ) ;
bool miqt_exec_callback_QGraphicsScene_eventFilter ( QGraphicsScene * , intptr_t , QObject * , QEvent * ) ;
void miqt_exec_callback_QGraphicsScene_contextMenuEvent ( QGraphicsScene * , intptr_t , QGraphicsSceneContextMenuEvent * ) ;
void miqt_exec_callback_QGraphicsScene_dragEnterEvent ( QGraphicsScene * , intptr_t , QGraphicsSceneDragDropEvent * ) ;
void miqt_exec_callback_QGraphicsScene_dragMoveEvent ( QGraphicsScene * , intptr_t , QGraphicsSceneDragDropEvent * ) ;
void miqt_exec_callback_QGraphicsScene_dragLeaveEvent ( QGraphicsScene * , intptr_t , QGraphicsSceneDragDropEvent * ) ;
void miqt_exec_callback_QGraphicsScene_dropEvent ( QGraphicsScene * , intptr_t , QGraphicsSceneDragDropEvent * ) ;
void miqt_exec_callback_QGraphicsScene_focusInEvent ( QGraphicsScene * , intptr_t , QFocusEvent * ) ;
void miqt_exec_callback_QGraphicsScene_focusOutEvent ( QGraphicsScene * , intptr_t , QFocusEvent * ) ;
void miqt_exec_callback_QGraphicsScene_helpEvent ( QGraphicsScene * , intptr_t , QGraphicsSceneHelpEvent * ) ;
void miqt_exec_callback_QGraphicsScene_keyPressEvent ( QGraphicsScene * , intptr_t , QKeyEvent * ) ;
void miqt_exec_callback_QGraphicsScene_keyReleaseEvent ( QGraphicsScene * , intptr_t , QKeyEvent * ) ;
void miqt_exec_callback_QGraphicsScene_mousePressEvent ( QGraphicsScene * , intptr_t , QGraphicsSceneMouseEvent * ) ;
void miqt_exec_callback_QGraphicsScene_mouseMoveEvent ( QGraphicsScene * , intptr_t , QGraphicsSceneMouseEvent * ) ;
void miqt_exec_callback_QGraphicsScene_mouseReleaseEvent ( QGraphicsScene * , intptr_t , QGraphicsSceneMouseEvent * ) ;
void miqt_exec_callback_QGraphicsScene_mouseDoubleClickEvent ( QGraphicsScene * , intptr_t , QGraphicsSceneMouseEvent * ) ;
void miqt_exec_callback_QGraphicsScene_wheelEvent ( QGraphicsScene * , intptr_t , QGraphicsSceneWheelEvent * ) ;
void miqt_exec_callback_QGraphicsScene_inputMethodEvent ( QGraphicsScene * , intptr_t , QInputMethodEvent * ) ;
void miqt_exec_callback_QGraphicsScene_drawBackground ( QGraphicsScene * , intptr_t , QPainter * , QRectF * ) ;
void miqt_exec_callback_QGraphicsScene_drawForeground ( QGraphicsScene * , intptr_t , QPainter * , QRectF * ) ;
void miqt_exec_callback_QGraphicsScene_timerEvent ( QGraphicsScene * , intptr_t , QTimerEvent * ) ;
void miqt_exec_callback_QGraphicsScene_childEvent ( QGraphicsScene * , intptr_t , QChildEvent * ) ;
void miqt_exec_callback_QGraphicsScene_customEvent ( QGraphicsScene * , intptr_t , QEvent * ) ;
void miqt_exec_callback_QGraphicsScene_connectNotify ( QGraphicsScene * , intptr_t , QMetaMethod * ) ;
void miqt_exec_callback_QGraphicsScene_disconnectNotify ( QGraphicsScene * , intptr_t , QMetaMethod * ) ;
2025-01-07 11:30:33 +01:00
# ifdef __cplusplus
} /* extern C */
2024-12-11 19:55:47 +13:00
# endif
2024-08-25 16:08:24 +12:00
2025-01-18 17:42:41 +13:00
class MiqtVirtualQGraphicsScene final : public QGraphicsScene {
2024-11-19 19:29:06 +13:00
public :
MiqtVirtualQGraphicsScene ( ) : QGraphicsScene ( ) { } ;
MiqtVirtualQGraphicsScene ( const QRectF & sceneRect ) : QGraphicsScene ( sceneRect ) { } ;
MiqtVirtualQGraphicsScene ( qreal x , qreal y , qreal width , qreal height ) : QGraphicsScene ( x , y , width , height ) { } ;
MiqtVirtualQGraphicsScene ( QObject * parent ) : QGraphicsScene ( parent ) { } ;
MiqtVirtualQGraphicsScene ( const QRectF & sceneRect , QObject * parent ) : QGraphicsScene ( sceneRect , parent ) { } ;
MiqtVirtualQGraphicsScene ( qreal x , qreal y , qreal width , qreal height , QObject * parent ) : QGraphicsScene ( x , y , width , height , parent ) { } ;
2025-01-18 17:42:41 +13:00
virtual ~ MiqtVirtualQGraphicsScene ( ) override = default ;
2024-11-19 19:29:06 +13:00
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__inputMethodQuery = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual QVariant inputMethodQuery ( Qt : : InputMethodQuery query ) const override {
2025-02-01 13:45:16 +13:00
if ( handle__inputMethodQuery = = 0 ) {
2024-11-19 19:29:06 +13:00
return QGraphicsScene : : inputMethodQuery ( query ) ;
}
Qt : : InputMethodQuery query_ret = query ;
int sigval1 = static_cast < int > ( query_ret ) ;
2025-02-01 13:45:16 +13:00
QVariant * callback_return_value = miqt_exec_callback_QGraphicsScene_inputMethodQuery ( this , handle__inputMethodQuery , sigval1 ) ;
2024-11-19 19:29:06 +13:00
return * callback_return_value ;
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
QVariant * virtualbase_inputMethodQuery ( int query ) const {
2024-11-19 19:29:06 +13:00
return new QVariant ( QGraphicsScene : : inputMethodQuery ( static_cast < Qt : : InputMethodQuery > ( query ) ) ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__event = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual bool event ( QEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__event = = 0 ) {
2024-11-19 19:29:06 +13:00
return QGraphicsScene : : event ( event ) ;
}
QEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
bool callback_return_value = miqt_exec_callback_QGraphicsScene_event ( this , handle__event , sigval1 ) ;
2024-11-19 19:29:06 +13:00
return callback_return_value ;
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
bool virtualbase_event ( QEvent * event ) {
2024-11-19 19:29:06 +13:00
return QGraphicsScene : : event ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__eventFilter = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual bool eventFilter ( QObject * watched , QEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__eventFilter = = 0 ) {
2024-11-19 19:29:06 +13:00
return QGraphicsScene : : eventFilter ( watched , event ) ;
}
QObject * sigval1 = watched ;
QEvent * sigval2 = event ;
2025-02-01 13:45:16 +13:00
bool callback_return_value = miqt_exec_callback_QGraphicsScene_eventFilter ( this , handle__eventFilter , sigval1 , sigval2 ) ;
2024-11-19 19:29:06 +13:00
return callback_return_value ;
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
bool virtualbase_eventFilter ( QObject * watched , QEvent * event ) {
2024-11-19 19:29:06 +13:00
return QGraphicsScene : : eventFilter ( watched , event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__contextMenuEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__contextMenuEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : contextMenuEvent ( event ) ;
return ;
}
QGraphicsSceneContextMenuEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_contextMenuEvent ( this , handle__contextMenuEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_contextMenuEvent ( QGraphicsSceneContextMenuEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : contextMenuEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__dragEnterEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void dragEnterEvent ( QGraphicsSceneDragDropEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__dragEnterEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : dragEnterEvent ( event ) ;
return ;
}
QGraphicsSceneDragDropEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_dragEnterEvent ( this , handle__dragEnterEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_dragEnterEvent ( QGraphicsSceneDragDropEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : dragEnterEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__dragMoveEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void dragMoveEvent ( QGraphicsSceneDragDropEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__dragMoveEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : dragMoveEvent ( event ) ;
return ;
}
QGraphicsSceneDragDropEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_dragMoveEvent ( this , handle__dragMoveEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_dragMoveEvent ( QGraphicsSceneDragDropEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : dragMoveEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__dragLeaveEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void dragLeaveEvent ( QGraphicsSceneDragDropEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__dragLeaveEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : dragLeaveEvent ( event ) ;
return ;
}
QGraphicsSceneDragDropEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_dragLeaveEvent ( this , handle__dragLeaveEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_dragLeaveEvent ( QGraphicsSceneDragDropEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : dragLeaveEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__dropEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void dropEvent ( QGraphicsSceneDragDropEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__dropEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : dropEvent ( event ) ;
return ;
}
QGraphicsSceneDragDropEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_dropEvent ( this , handle__dropEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_dropEvent ( QGraphicsSceneDragDropEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : dropEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__focusInEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void focusInEvent ( QFocusEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__focusInEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : focusInEvent ( event ) ;
return ;
}
QFocusEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_focusInEvent ( this , handle__focusInEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_focusInEvent ( QFocusEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : focusInEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__focusOutEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void focusOutEvent ( QFocusEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__focusOutEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : focusOutEvent ( event ) ;
return ;
}
QFocusEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_focusOutEvent ( this , handle__focusOutEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_focusOutEvent ( QFocusEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : focusOutEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__helpEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void helpEvent ( QGraphicsSceneHelpEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__helpEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : helpEvent ( event ) ;
return ;
}
QGraphicsSceneHelpEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_helpEvent ( this , handle__helpEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_helpEvent ( QGraphicsSceneHelpEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : helpEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__keyPressEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void keyPressEvent ( QKeyEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__keyPressEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : keyPressEvent ( event ) ;
return ;
}
QKeyEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_keyPressEvent ( this , handle__keyPressEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_keyPressEvent ( QKeyEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : keyPressEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__keyReleaseEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void keyReleaseEvent ( QKeyEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__keyReleaseEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : keyReleaseEvent ( event ) ;
return ;
}
QKeyEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_keyReleaseEvent ( this , handle__keyReleaseEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_keyReleaseEvent ( QKeyEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : keyReleaseEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__mousePressEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void mousePressEvent ( QGraphicsSceneMouseEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__mousePressEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : mousePressEvent ( event ) ;
return ;
}
QGraphicsSceneMouseEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_mousePressEvent ( this , handle__mousePressEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_mousePressEvent ( QGraphicsSceneMouseEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : mousePressEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__mouseMoveEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void mouseMoveEvent ( QGraphicsSceneMouseEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__mouseMoveEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : mouseMoveEvent ( event ) ;
return ;
}
QGraphicsSceneMouseEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_mouseMoveEvent ( this , handle__mouseMoveEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_mouseMoveEvent ( QGraphicsSceneMouseEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : mouseMoveEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__mouseReleaseEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__mouseReleaseEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : mouseReleaseEvent ( event ) ;
return ;
}
QGraphicsSceneMouseEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_mouseReleaseEvent ( this , handle__mouseReleaseEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_mouseReleaseEvent ( QGraphicsSceneMouseEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : mouseReleaseEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__mouseDoubleClickEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void mouseDoubleClickEvent ( QGraphicsSceneMouseEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__mouseDoubleClickEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : mouseDoubleClickEvent ( event ) ;
return ;
}
QGraphicsSceneMouseEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_mouseDoubleClickEvent ( this , handle__mouseDoubleClickEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_mouseDoubleClickEvent ( QGraphicsSceneMouseEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : mouseDoubleClickEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__wheelEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void wheelEvent ( QGraphicsSceneWheelEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__wheelEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : wheelEvent ( event ) ;
return ;
}
QGraphicsSceneWheelEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_wheelEvent ( this , handle__wheelEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_wheelEvent ( QGraphicsSceneWheelEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : wheelEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__inputMethodEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void inputMethodEvent ( QInputMethodEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__inputMethodEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : inputMethodEvent ( event ) ;
return ;
}
QInputMethodEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_inputMethodEvent ( this , handle__inputMethodEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_inputMethodEvent ( QInputMethodEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : inputMethodEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__drawBackground = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void drawBackground ( QPainter * painter , const QRectF & rect ) override {
2025-02-01 13:45:16 +13:00
if ( handle__drawBackground = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : drawBackground ( painter , rect ) ;
return ;
}
QPainter * sigval1 = painter ;
const QRectF & rect_ret = rect ;
// Cast returned reference into pointer
QRectF * sigval2 = const_cast < QRectF * > ( & rect_ret ) ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_drawBackground ( this , handle__drawBackground , sigval1 , sigval2 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_drawBackground ( QPainter * painter , QRectF * rect ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : drawBackground ( painter , * rect ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__drawForeground = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void drawForeground ( QPainter * painter , const QRectF & rect ) override {
2025-02-01 13:45:16 +13:00
if ( handle__drawForeground = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : drawForeground ( painter , rect ) ;
return ;
}
QPainter * sigval1 = painter ;
const QRectF & rect_ret = rect ;
// Cast returned reference into pointer
QRectF * sigval2 = const_cast < QRectF * > ( & rect_ret ) ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_drawForeground ( this , handle__drawForeground , sigval1 , sigval2 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_drawForeground ( QPainter * painter , QRectF * rect ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : drawForeground ( painter , * rect ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__timerEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void timerEvent ( QTimerEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__timerEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : timerEvent ( event ) ;
return ;
}
QTimerEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_timerEvent ( this , handle__timerEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_timerEvent ( QTimerEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : timerEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__childEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void childEvent ( QChildEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__childEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : childEvent ( event ) ;
return ;
}
QChildEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_childEvent ( this , handle__childEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_childEvent ( QChildEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : childEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__customEvent = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void customEvent ( QEvent * event ) override {
2025-02-01 13:45:16 +13:00
if ( handle__customEvent = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : customEvent ( event ) ;
return ;
}
QEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_customEvent ( this , handle__customEvent , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_customEvent ( QEvent * event ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : customEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__connectNotify = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void connectNotify ( const QMetaMethod & signal ) override {
2025-02-01 13:45:16 +13:00
if ( handle__connectNotify = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : connectNotify ( signal ) ;
return ;
}
const QMetaMethod & signal_ret = signal ;
// Cast returned reference into pointer
QMetaMethod * sigval1 = const_cast < QMetaMethod * > ( & signal_ret ) ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_connectNotify ( this , handle__connectNotify , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_connectNotify ( QMetaMethod * signal ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : connectNotify ( * signal ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__disconnectNotify = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void disconnectNotify ( const QMetaMethod & signal ) override {
2025-02-01 13:45:16 +13:00
if ( handle__disconnectNotify = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : disconnectNotify ( signal ) ;
return ;
}
const QMetaMethod & signal_ret = signal ;
// Cast returned reference into pointer
QMetaMethod * sigval1 = const_cast < QMetaMethod * > ( & signal_ret ) ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_disconnectNotify ( this , handle__disconnectNotify , sigval1 ) ;
2024-11-19 19:29:06 +13:00
}
// Wrapper to allow calling protected method
2025-02-01 13:45:16 +13:00
void virtualbase_disconnectNotify ( QMetaMethod * signal ) {
2024-11-19 19:29:06 +13:00
QGraphicsScene : : disconnectNotify ( * signal ) ;
}
} ;
2024-12-07 17:15:57 +13:00
QGraphicsScene * QGraphicsScene_new ( ) {
return new MiqtVirtualQGraphicsScene ( ) ;
2024-08-25 16:08:24 +12:00
}
2024-12-07 17:15:57 +13:00
QGraphicsScene * QGraphicsScene_new2 ( QRectF * sceneRect ) {
return new MiqtVirtualQGraphicsScene ( * sceneRect ) ;
2024-08-25 16:08:24 +12:00
}
2024-12-07 17:15:57 +13:00
QGraphicsScene * QGraphicsScene_new3 ( double x , double y , double width , double height ) {
return new MiqtVirtualQGraphicsScene ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) , static_cast < qreal > ( width ) , static_cast < qreal > ( height ) ) ;
2024-08-25 16:08:24 +12:00
}
2024-12-07 17:15:57 +13:00
QGraphicsScene * QGraphicsScene_new4 ( QObject * parent ) {
return new MiqtVirtualQGraphicsScene ( parent ) ;
2024-08-25 16:08:24 +12:00
}
2024-12-07 17:15:57 +13:00
QGraphicsScene * QGraphicsScene_new5 ( QRectF * sceneRect , QObject * parent ) {
return new MiqtVirtualQGraphicsScene ( * sceneRect , parent ) ;
2024-08-25 16:08:24 +12:00
}
2024-12-07 17:15:57 +13:00
QGraphicsScene * QGraphicsScene_new6 ( double x , double y , double width , double height , QObject * parent ) {
return new MiqtVirtualQGraphicsScene ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) , static_cast < qreal > ( width ) , static_cast < qreal > ( height ) , parent ) ;
}
void QGraphicsScene_virtbase ( QGraphicsScene * src , QObject * * outptr_QObject ) {
* outptr_QObject = static_cast < QObject * > ( src ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
QMetaObject * QGraphicsScene_metaObject ( const QGraphicsScene * self ) {
2024-09-11 17:41:09 +12:00
return ( QMetaObject * ) self - > metaObject ( ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
void * QGraphicsScene_metacast ( QGraphicsScene * self , const char * param1 ) {
2024-09-21 10:32:57 +12:00
return self - > qt_metacast ( param1 ) ;
}
2025-02-01 13:45:16 +13:00
struct miqt_string QGraphicsScene_tr ( const char * s ) {
2024-09-15 10:29:05 +12:00
QString _ret = QGraphicsScene : : tr ( s ) ;
2024-08-25 16:08:24 +12:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-15 10:29:05 +12:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-19 12:53:33 +13:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_string QGraphicsScene_trUtf8 ( const char * s ) {
2024-09-15 10:29:05 +12:00
QString _ret = QGraphicsScene : : trUtf8 ( s ) ;
2024-08-25 16:08:24 +12:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-15 10:29:05 +12:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-19 12:53:33 +13:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
QRectF * QGraphicsScene_sceneRect ( const QGraphicsScene * self ) {
2024-09-17 18:29:11 +12:00
return new QRectF ( self - > sceneRect ( ) ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
double QGraphicsScene_width ( const QGraphicsScene * self ) {
2024-09-18 12:12:02 +12:00
qreal _ret = self - > width ( ) ;
return static_cast < double > ( _ret ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
double QGraphicsScene_height ( const QGraphicsScene * self ) {
2024-09-18 12:12:02 +12:00
qreal _ret = self - > height ( ) ;
return static_cast < double > ( _ret ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setSceneRect ( QGraphicsScene * self , QRectF * rect ) {
2024-08-25 16:08:24 +12:00
self - > setSceneRect ( * rect ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setSceneRect2 ( QGraphicsScene * self , double x , double y , double w , double h ) {
2024-08-25 16:08:24 +12:00
self - > setSceneRect ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) , static_cast < qreal > ( w ) , static_cast < qreal > ( h ) ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_render ( QGraphicsScene * self , QPainter * painter ) {
2024-08-29 19:01:51 +12:00
self - > render ( painter ) ;
}
2025-02-01 13:45:16 +13:00
int QGraphicsScene_itemIndexMethod ( const QGraphicsScene * self ) {
2024-09-15 10:29:05 +12:00
QGraphicsScene : : ItemIndexMethod _ret = self - > itemIndexMethod ( ) ;
2024-09-18 12:12:02 +12:00
return static_cast < int > ( _ret ) ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setItemIndexMethod ( QGraphicsScene * self , int method ) {
2024-08-29 19:01:51 +12:00
self - > setItemIndexMethod ( static_cast < QGraphicsScene : : ItemIndexMethod > ( method ) ) ;
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_isSortCacheEnabled ( const QGraphicsScene * self ) {
2024-09-11 17:41:09 +12:00
return self - > isSortCacheEnabled ( ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setSortCacheEnabled ( QGraphicsScene * self , bool enabled ) {
2024-08-25 16:08:24 +12:00
self - > setSortCacheEnabled ( enabled ) ;
}
2025-02-01 13:45:16 +13:00
int QGraphicsScene_bspTreeDepth ( const QGraphicsScene * self ) {
2024-09-11 17:41:09 +12:00
return self - > bspTreeDepth ( ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setBspTreeDepth ( QGraphicsScene * self , int depth ) {
2024-08-25 16:08:24 +12:00
self - > setBspTreeDepth ( static_cast < int > ( depth ) ) ;
}
2025-02-01 13:45:16 +13:00
QRectF * QGraphicsScene_itemsBoundingRect ( const QGraphicsScene * self ) {
2024-09-17 18:29:11 +12:00
return new QRectF ( self - > itemsBoundingRect ( ) ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_items ( const QGraphicsScene * self ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > items ( ) ;
2024-08-29 19:01:51 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-29 19:01:51 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_itemsWithPos ( const QGraphicsScene * self , QPointF * pos ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > items ( * pos ) ;
2024-08-29 19:01:51 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-29 19:01:51 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_itemsWithRect ( const QGraphicsScene * self , QRectF * rect ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > items ( * rect ) ;
2024-08-29 19:01:51 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-29 19:01:51 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_itemsWithPath ( const QGraphicsScene * self , QPainterPath * path ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > items ( * path ) ;
2024-08-29 19:01:51 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-29 19:01:51 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_collidingItems ( const QGraphicsScene * self , QGraphicsItem * item ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > collidingItems ( item ) ;
2024-08-29 19:01:51 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-29 19:01:51 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
QGraphicsItem * QGraphicsScene_itemAt ( const QGraphicsScene * self , QPointF * pos , QTransform * deviceTransform ) {
2024-09-11 17:41:09 +12:00
return self - > itemAt ( * pos , * deviceTransform ) ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_items2 ( const QGraphicsScene * self , double x , double y , double w , double h , int mode , int order ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > items ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) , static_cast < qreal > ( w ) , static_cast < qreal > ( h ) , static_cast < Qt : : ItemSelectionMode > ( mode ) , static_cast < Qt : : SortOrder > ( order ) ) ;
2024-08-29 19:01:51 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-29 19:01:51 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
QGraphicsItem * QGraphicsScene_itemAt2 ( const QGraphicsScene * self , double x , double y , QTransform * deviceTransform ) {
2024-09-11 17:41:09 +12:00
return self - > itemAt ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) , * deviceTransform ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_selectedItems ( const QGraphicsScene * self ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > selectedItems ( ) ;
2024-08-25 16:08:24 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-25 16:08:24 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
QPainterPath * QGraphicsScene_selectionArea ( const QGraphicsScene * self ) {
2024-09-17 18:29:11 +12:00
return new QPainterPath ( self - > selectionArea ( ) ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setSelectionArea ( QGraphicsScene * self , QPainterPath * path , QTransform * deviceTransform ) {
2024-08-25 16:08:24 +12:00
self - > setSelectionArea ( * path , * deviceTransform ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setSelectionAreaWithPath ( QGraphicsScene * self , QPainterPath * path ) {
2024-08-29 19:01:51 +12:00
self - > setSelectionArea ( * path ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setSelectionArea2 ( QGraphicsScene * self , QPainterPath * path , int selectionOperation ) {
2024-08-29 19:01:51 +12:00
self - > setSelectionArea ( * path , static_cast < Qt : : ItemSelectionOperation > ( selectionOperation ) ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsItemGroup * QGraphicsScene_createItemGroup ( QGraphicsScene * self , struct miqt_array /* of QGraphicsItem* */ items ) {
2024-10-16 18:07:56 +13:00
QList < QGraphicsItem * > items_QList ;
2024-11-04 20:18:27 +13:00
items_QList . reserve ( items . len ) ;
QGraphicsItem * * items_arr = static_cast < QGraphicsItem * * > ( items . data ) ;
for ( size_t i = 0 ; i < items . len ; + + i ) {
2024-09-15 10:29:05 +12:00
items_QList . push_back ( items_arr [ i ] ) ;
2024-08-25 16:08:24 +12:00
}
return self - > createItemGroup ( items_QList ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_destroyItemGroup ( QGraphicsScene * self , QGraphicsItemGroup * group ) {
2024-08-25 16:08:24 +12:00
self - > destroyItemGroup ( group ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_addItem ( QGraphicsScene * self , QGraphicsItem * item ) {
2024-08-25 16:08:24 +12:00
self - > addItem ( item ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsEllipseItem * QGraphicsScene_addEllipse ( QGraphicsScene * self , QRectF * rect ) {
2024-08-25 16:08:24 +12:00
return self - > addEllipse ( * rect ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsLineItem * QGraphicsScene_addLine ( QGraphicsScene * self , QLineF * line ) {
2024-08-25 16:08:24 +12:00
return self - > addLine ( * line ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsPathItem * QGraphicsScene_addPath ( QGraphicsScene * self , QPainterPath * path ) {
2024-08-25 16:08:24 +12:00
return self - > addPath ( * path ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsPixmapItem * QGraphicsScene_addPixmap ( QGraphicsScene * self , QPixmap * pixmap ) {
2024-08-25 16:08:24 +12:00
return self - > addPixmap ( * pixmap ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsRectItem * QGraphicsScene_addRect ( QGraphicsScene * self , QRectF * rect ) {
2024-08-25 16:08:24 +12:00
return self - > addRect ( * rect ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsTextItem * QGraphicsScene_addText ( QGraphicsScene * self , struct miqt_string text ) {
2024-10-19 12:53:33 +13:00
QString text_QString = QString : : fromUtf8 ( text . data , text . len ) ;
2024-08-25 16:08:24 +12:00
return self - > addText ( text_QString ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsSimpleTextItem * QGraphicsScene_addSimpleText ( QGraphicsScene * self , struct miqt_string text ) {
2024-10-19 12:53:33 +13:00
QString text_QString = QString : : fromUtf8 ( text . data , text . len ) ;
2024-08-25 16:08:24 +12:00
return self - > addSimpleText ( text_QString ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsProxyWidget * QGraphicsScene_addWidget ( QGraphicsScene * self , QWidget * widget ) {
2024-08-29 19:01:51 +12:00
return self - > addWidget ( widget ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsEllipseItem * QGraphicsScene_addEllipse2 ( QGraphicsScene * self , double x , double y , double w , double h ) {
2024-08-25 16:08:24 +12:00
return self - > addEllipse ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) , static_cast < qreal > ( w ) , static_cast < qreal > ( h ) ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsLineItem * QGraphicsScene_addLine2 ( QGraphicsScene * self , double x1 , double y1 , double x2 , double y2 ) {
2024-08-25 16:08:24 +12:00
return self - > addLine ( static_cast < qreal > ( x1 ) , static_cast < qreal > ( y1 ) , static_cast < qreal > ( x2 ) , static_cast < qreal > ( y2 ) ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsRectItem * QGraphicsScene_addRect2 ( QGraphicsScene * self , double x , double y , double w , double h ) {
2024-08-25 16:08:24 +12:00
return self - > addRect ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) , static_cast < qreal > ( w ) , static_cast < qreal > ( h ) ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_removeItem ( QGraphicsScene * self , QGraphicsItem * item ) {
2024-08-25 16:08:24 +12:00
self - > removeItem ( item ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsItem * QGraphicsScene_focusItem ( const QGraphicsScene * self ) {
2024-09-11 17:41:09 +12:00
return self - > focusItem ( ) ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setFocusItem ( QGraphicsScene * self , QGraphicsItem * item ) {
2024-08-29 19:01:51 +12:00
self - > setFocusItem ( item ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_hasFocus ( const QGraphicsScene * self ) {
2024-09-11 17:41:09 +12:00
return self - > hasFocus ( ) ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setFocus ( QGraphicsScene * self ) {
2024-08-29 19:01:51 +12:00
self - > setFocus ( ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_clearFocus ( QGraphicsScene * self ) {
2024-08-25 16:08:24 +12:00
self - > clearFocus ( ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setStickyFocus ( QGraphicsScene * self , bool enabled ) {
2024-08-25 16:08:24 +12:00
self - > setStickyFocus ( enabled ) ;
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_stickyFocus ( const QGraphicsScene * self ) {
2024-09-11 17:41:09 +12:00
return self - > stickyFocus ( ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
QGraphicsItem * QGraphicsScene_mouseGrabberItem ( const QGraphicsScene * self ) {
2024-09-11 17:41:09 +12:00
return self - > mouseGrabberItem ( ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
QBrush * QGraphicsScene_backgroundBrush ( const QGraphicsScene * self ) {
2024-09-17 18:29:11 +12:00
return new QBrush ( self - > backgroundBrush ( ) ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setBackgroundBrush ( QGraphicsScene * self , QBrush * brush ) {
2024-08-25 16:08:24 +12:00
self - > setBackgroundBrush ( * brush ) ;
}
2025-02-01 13:45:16 +13:00
QBrush * QGraphicsScene_foregroundBrush ( const QGraphicsScene * self ) {
2024-09-17 18:29:11 +12:00
return new QBrush ( self - > foregroundBrush ( ) ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setForegroundBrush ( QGraphicsScene * self , QBrush * brush ) {
2024-08-25 16:08:24 +12:00
self - > setForegroundBrush ( * brush ) ;
}
2025-02-01 13:45:16 +13:00
QVariant * QGraphicsScene_inputMethodQuery ( const QGraphicsScene * self , int query ) {
2024-09-17 18:29:11 +12:00
return new QVariant ( self - > inputMethodQuery ( static_cast < Qt : : InputMethodQuery > ( query ) ) ) ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsView* */ QGraphicsScene_views ( const QGraphicsScene * self ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsView * > _ret = self - > views ( ) ;
2024-08-25 16:08:24 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsView * * _arr = static_cast < QGraphicsView * * > ( malloc ( sizeof ( QGraphicsView * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-25 16:08:24 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_update ( QGraphicsScene * self , double x , double y , double w , double h ) {
2024-08-25 16:08:24 +12:00
self - > update ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) , static_cast < qreal > ( w ) , static_cast < qreal > ( h ) ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_invalidate ( QGraphicsScene * self , double x , double y , double w , double h ) {
2024-08-29 19:01:51 +12:00
self - > invalidate ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) , static_cast < qreal > ( w ) , static_cast < qreal > ( h ) ) ;
}
2025-02-01 13:45:16 +13:00
QStyle * QGraphicsScene_style ( const QGraphicsScene * self ) {
2024-09-11 17:41:09 +12:00
return self - > style ( ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setStyle ( QGraphicsScene * self , QStyle * style ) {
2024-08-25 16:08:24 +12:00
self - > setStyle ( style ) ;
}
2025-02-01 13:45:16 +13:00
QFont * QGraphicsScene_font ( const QGraphicsScene * self ) {
2024-09-17 18:29:11 +12:00
return new QFont ( self - > font ( ) ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setFont ( QGraphicsScene * self , QFont * font ) {
2024-08-25 16:08:24 +12:00
self - > setFont ( * font ) ;
}
2025-02-01 13:45:16 +13:00
QPalette * QGraphicsScene_palette ( const QGraphicsScene * self ) {
2024-09-17 18:29:11 +12:00
return new QPalette ( self - > palette ( ) ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setPalette ( QGraphicsScene * self , QPalette * palette ) {
2024-08-25 16:08:24 +12:00
self - > setPalette ( * palette ) ;
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_isActive ( const QGraphicsScene * self ) {
2024-09-11 17:41:09 +12:00
return self - > isActive ( ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
QGraphicsItem * QGraphicsScene_activePanel ( const QGraphicsScene * self ) {
2024-09-11 17:41:09 +12:00
return self - > activePanel ( ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setActivePanel ( QGraphicsScene * self , QGraphicsItem * item ) {
2024-08-25 16:08:24 +12:00
self - > setActivePanel ( item ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsWidget * QGraphicsScene_activeWindow ( const QGraphicsScene * self ) {
2024-09-11 17:41:09 +12:00
return self - > activeWindow ( ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setActiveWindow ( QGraphicsScene * self , QGraphicsWidget * widget ) {
2024-08-25 16:08:24 +12:00
self - > setActiveWindow ( widget ) ;
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_sendEvent ( QGraphicsScene * self , QGraphicsItem * item , QEvent * event ) {
2024-08-25 16:08:24 +12:00
return self - > sendEvent ( item , event ) ;
}
2025-02-01 13:45:16 +13:00
double QGraphicsScene_minimumRenderSize ( const QGraphicsScene * self ) {
2024-09-18 12:12:02 +12:00
qreal _ret = self - > minimumRenderSize ( ) ;
return static_cast < double > ( _ret ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setMinimumRenderSize ( QGraphicsScene * self , double minSize ) {
2024-08-25 16:08:24 +12:00
self - > setMinimumRenderSize ( static_cast < qreal > ( minSize ) ) ;
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_focusOnTouch ( const QGraphicsScene * self ) {
2024-09-11 17:41:09 +12:00
return self - > focusOnTouch ( ) ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setFocusOnTouch ( QGraphicsScene * self , bool enabled ) {
2024-08-25 16:08:24 +12:00
self - > setFocusOnTouch ( enabled ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_update2 ( QGraphicsScene * self ) {
2024-08-25 16:08:24 +12:00
self - > update ( ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_invalidate2 ( QGraphicsScene * self ) {
2024-08-29 19:01:51 +12:00
self - > invalidate ( ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_advance ( QGraphicsScene * self ) {
2024-08-25 16:08:24 +12:00
self - > advance ( ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_clearSelection ( QGraphicsScene * self ) {
2024-08-25 16:08:24 +12:00
self - > clearSelection ( ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_clear ( QGraphicsScene * self ) {
2024-08-25 16:08:24 +12:00
self - > clear ( ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_changed ( QGraphicsScene * self , struct miqt_array /* of QRectF* */ region ) {
2024-08-25 16:08:24 +12:00
QList < QRectF > region_QList ;
2024-11-04 20:18:27 +13:00
region_QList . reserve ( region . len ) ;
QRectF * * region_arr = static_cast < QRectF * * > ( region . data ) ;
for ( size_t i = 0 ; i < region . len ; + + i ) {
2024-09-15 10:29:05 +12:00
region_QList . push_back ( * ( region_arr [ i ] ) ) ;
2024-08-25 16:08:24 +12:00
}
self - > changed ( region_QList ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_connect_changed ( QGraphicsScene * self , intptr_t slot ) {
2024-11-19 19:29:06 +13:00
MiqtVirtualQGraphicsScene : : connect ( self , static_cast < void ( QGraphicsScene : : * ) ( const QList < QRectF > & ) > ( & QGraphicsScene : : changed ) , self , [ = ] ( const QList < QRectF > & region ) {
2024-09-15 10:29:05 +12:00
const QList < QRectF > & region_ret = region ;
2024-09-17 18:29:11 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
QRectF * * region_arr = static_cast < QRectF * * > ( malloc ( sizeof ( QRectF * ) * region_ret . length ( ) ) ) ;
2024-09-15 10:29:05 +12:00
for ( size_t i = 0 , e = region_ret . length ( ) ; i < e ; + + i ) {
region_arr [ i ] = new QRectF ( region_ret [ i ] ) ;
}
2024-11-04 20:18:27 +13:00
struct miqt_array region_out ;
region_out . len = region_ret . length ( ) ;
region_out . data = static_cast < void * > ( region_arr ) ;
2024-11-17 19:21:37 +13:00
struct miqt_array /* of QRectF* */ sigval1 = region_out ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_changed ( slot , sigval1 ) ;
2024-08-25 16:08:24 +12:00
} ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_sceneRectChanged ( QGraphicsScene * self , QRectF * rect ) {
2024-08-25 16:08:24 +12:00
self - > sceneRectChanged ( * rect ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_connect_sceneRectChanged ( QGraphicsScene * self , intptr_t slot ) {
2024-11-19 19:29:06 +13:00
MiqtVirtualQGraphicsScene : : connect ( self , static_cast < void ( QGraphicsScene : : * ) ( const QRectF & ) > ( & QGraphicsScene : : sceneRectChanged ) , self , [ = ] ( const QRectF & rect ) {
2024-09-15 10:29:05 +12:00
const QRectF & rect_ret = rect ;
// Cast returned reference into pointer
QRectF * sigval1 = const_cast < QRectF * > ( & rect_ret ) ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_sceneRectChanged ( slot , sigval1 ) ;
2024-08-25 16:08:24 +12:00
} ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_selectionChanged ( QGraphicsScene * self ) {
2024-08-25 16:08:24 +12:00
self - > selectionChanged ( ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_connect_selectionChanged ( QGraphicsScene * self , intptr_t slot ) {
2024-11-19 19:29:06 +13:00
MiqtVirtualQGraphicsScene : : connect ( self , static_cast < void ( QGraphicsScene : : * ) ( ) > ( & QGraphicsScene : : selectionChanged ) , self , [ = ] ( ) {
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_selectionChanged ( slot ) ;
2024-08-25 16:08:24 +12:00
} ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_focusItemChanged ( QGraphicsScene * self , QGraphicsItem * newFocus , QGraphicsItem * oldFocus , int reason ) {
2024-08-29 19:01:51 +12:00
self - > focusItemChanged ( newFocus , oldFocus , static_cast < Qt : : FocusReason > ( reason ) ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_connect_focusItemChanged ( QGraphicsScene * self , intptr_t slot ) {
2024-11-19 19:29:06 +13:00
MiqtVirtualQGraphicsScene : : connect ( self , static_cast < void ( QGraphicsScene : : * ) ( QGraphicsItem * , QGraphicsItem * , Qt : : FocusReason ) > ( & QGraphicsScene : : focusItemChanged ) , self , [ = ] ( QGraphicsItem * newFocus , QGraphicsItem * oldFocus , Qt : : FocusReason reason ) {
2024-09-15 10:29:05 +12:00
QGraphicsItem * sigval1 = newFocus ;
QGraphicsItem * sigval2 = oldFocus ;
Qt : : FocusReason reason_ret = reason ;
2024-09-18 12:12:02 +12:00
int sigval3 = static_cast < int > ( reason_ret ) ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsScene_focusItemChanged ( slot , sigval1 , sigval2 , sigval3 ) ;
2024-08-29 19:01:51 +12:00
} ) ;
}
2025-02-01 13:45:16 +13:00
struct miqt_string QGraphicsScene_tr2 ( const char * s , const char * c ) {
2024-09-15 10:29:05 +12:00
QString _ret = QGraphicsScene : : tr ( s , c ) ;
2024-08-25 16:08:24 +12:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-15 10:29:05 +12:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-19 12:53:33 +13:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_string QGraphicsScene_tr3 ( const char * s , const char * c , int n ) {
2024-09-15 10:29:05 +12:00
QString _ret = QGraphicsScene : : tr ( s , c , static_cast < int > ( n ) ) ;
2024-08-25 16:08:24 +12:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-15 10:29:05 +12:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-19 12:53:33 +13:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_string QGraphicsScene_trUtf82 ( const char * s , const char * c ) {
2024-09-15 10:29:05 +12:00
QString _ret = QGraphicsScene : : trUtf8 ( s , c ) ;
2024-08-25 16:08:24 +12:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-15 10:29:05 +12:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-19 12:53:33 +13:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_string QGraphicsScene_trUtf83 ( const char * s , const char * c , int n ) {
2024-09-15 10:29:05 +12:00
QString _ret = QGraphicsScene : : trUtf8 ( s , c , static_cast < int > ( n ) ) ;
2024-08-25 16:08:24 +12:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-15 10:29:05 +12:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-19 12:53:33 +13:00
struct miqt_string _ms ;
_ms . len = _b . length ( ) ;
_ms . data = static_cast < char * > ( malloc ( _ms . len ) ) ;
memcpy ( _ms . data , _b . data ( ) , _ms . len ) ;
return _ms ;
2024-08-25 16:08:24 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_render2 ( QGraphicsScene * self , QPainter * painter , QRectF * target ) {
2024-08-29 19:01:51 +12:00
self - > render ( painter , * target ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_render3 ( QGraphicsScene * self , QPainter * painter , QRectF * target , QRectF * source ) {
2024-08-29 19:01:51 +12:00
self - > render ( painter , * target , * source ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_render4 ( QGraphicsScene * self , QPainter * painter , QRectF * target , QRectF * source , int aspectRatioMode ) {
2024-08-29 19:01:51 +12:00
self - > render ( painter , * target , * source , static_cast < Qt : : AspectRatioMode > ( aspectRatioMode ) ) ;
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_items1 ( const QGraphicsScene * self , int order ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > items ( static_cast < Qt : : SortOrder > ( order ) ) ;
2024-08-29 19:01:51 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-29 19:01:51 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_items22 ( const QGraphicsScene * self , QPointF * pos , int mode ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > items ( * pos , static_cast < Qt : : ItemSelectionMode > ( mode ) ) ;
2024-08-29 19:01:51 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-29 19:01:51 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_items3 ( const QGraphicsScene * self , QPointF * pos , int mode , int order ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > items ( * pos , static_cast < Qt : : ItemSelectionMode > ( mode ) , static_cast < Qt : : SortOrder > ( order ) ) ;
2024-08-29 19:01:51 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-29 19:01:51 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_items4 ( const QGraphicsScene * self , QPointF * pos , int mode , int order , QTransform * deviceTransform ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > items ( * pos , static_cast < Qt : : ItemSelectionMode > ( mode ) , static_cast < Qt : : SortOrder > ( order ) , * deviceTransform ) ;
2024-08-29 19:01:51 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-29 19:01:51 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_items23 ( const QGraphicsScene * self , QRectF * rect , int mode ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > items ( * rect , static_cast < Qt : : ItemSelectionMode > ( mode ) ) ;
2024-08-29 19:01:51 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-29 19:01:51 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_items32 ( const QGraphicsScene * self , QRectF * rect , int mode , int order ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > items ( * rect , static_cast < Qt : : ItemSelectionMode > ( mode ) , static_cast < Qt : : SortOrder > ( order ) ) ;
2024-08-29 19:01:51 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-29 19:01:51 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_items42 ( const QGraphicsScene * self , QRectF * rect , int mode , int order , QTransform * deviceTransform ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > items ( * rect , static_cast < Qt : : ItemSelectionMode > ( mode ) , static_cast < Qt : : SortOrder > ( order ) , * deviceTransform ) ;
2024-08-29 19:01:51 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-29 19:01:51 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_items25 ( const QGraphicsScene * self , QPainterPath * path , int mode ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > items ( * path , static_cast < Qt : : ItemSelectionMode > ( mode ) ) ;
2024-08-29 19:01:51 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-29 19:01:51 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_items34 ( const QGraphicsScene * self , QPainterPath * path , int mode , int order ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > items ( * path , static_cast < Qt : : ItemSelectionMode > ( mode ) , static_cast < Qt : : SortOrder > ( order ) ) ;
2024-08-29 19:01:51 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-29 19:01:51 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_items44 ( const QGraphicsScene * self , QPainterPath * path , int mode , int order , QTransform * deviceTransform ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > items ( * path , static_cast < Qt : : ItemSelectionMode > ( mode ) , static_cast < Qt : : SortOrder > ( order ) , * deviceTransform ) ;
2024-08-29 19:01:51 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-29 19:01:51 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_collidingItems2 ( const QGraphicsScene * self , QGraphicsItem * item , int mode ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > collidingItems ( item , static_cast < Qt : : ItemSelectionMode > ( mode ) ) ;
2024-08-29 19:01:51 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-29 19:01:51 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of QGraphicsItem* */ QGraphicsScene_items7 ( const QGraphicsScene * self , double x , double y , double w , double h , int mode , int order , QTransform * deviceTransform ) {
2024-09-18 12:12:02 +12:00
QList < QGraphicsItem * > _ret = self - > items ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) , static_cast < qreal > ( w ) , static_cast < qreal > ( h ) , static_cast < Qt : : ItemSelectionMode > ( mode ) , static_cast < Qt : : SortOrder > ( order ) , * deviceTransform ) ;
2024-08-29 19:01:51 +12:00
// Convert QList<> from C++ memory to manually-managed C memory
2024-09-15 10:29:05 +12:00
QGraphicsItem * * _arr = static_cast < QGraphicsItem * * > ( malloc ( sizeof ( QGraphicsItem * ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
_arr [ i ] = _ret [ i ] ;
2024-08-29 19:01:51 +12:00
}
2024-11-04 20:18:27 +13:00
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
2024-09-15 10:29:05 +12:00
return _out ;
2024-08-29 19:01:51 +12:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setSelectionArea22 ( QGraphicsScene * self , QPainterPath * path , int mode ) {
2024-08-29 19:01:51 +12:00
self - > setSelectionArea ( * path , static_cast < Qt : : ItemSelectionMode > ( mode ) ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setSelectionArea3 ( QGraphicsScene * self , QPainterPath * path , int mode , QTransform * deviceTransform ) {
2024-08-29 19:01:51 +12:00
self - > setSelectionArea ( * path , static_cast < Qt : : ItemSelectionMode > ( mode ) , * deviceTransform ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setSelectionArea32 ( QGraphicsScene * self , QPainterPath * path , int selectionOperation , int mode ) {
2024-08-29 19:01:51 +12:00
self - > setSelectionArea ( * path , static_cast < Qt : : ItemSelectionOperation > ( selectionOperation ) , static_cast < Qt : : ItemSelectionMode > ( mode ) ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setSelectionArea4 ( QGraphicsScene * self , QPainterPath * path , int selectionOperation , int mode , QTransform * deviceTransform ) {
2024-08-29 19:01:51 +12:00
self - > setSelectionArea ( * path , static_cast < Qt : : ItemSelectionOperation > ( selectionOperation ) , static_cast < Qt : : ItemSelectionMode > ( mode ) , * deviceTransform ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsEllipseItem * QGraphicsScene_addEllipse22 ( QGraphicsScene * self , QRectF * rect , QPen * pen ) {
2024-08-25 16:08:24 +12:00
return self - > addEllipse ( * rect , * pen ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsEllipseItem * QGraphicsScene_addEllipse3 ( QGraphicsScene * self , QRectF * rect , QPen * pen , QBrush * brush ) {
2024-08-25 16:08:24 +12:00
return self - > addEllipse ( * rect , * pen , * brush ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsLineItem * QGraphicsScene_addLine22 ( QGraphicsScene * self , QLineF * line , QPen * pen ) {
2024-08-25 16:08:24 +12:00
return self - > addLine ( * line , * pen ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsPathItem * QGraphicsScene_addPath2 ( QGraphicsScene * self , QPainterPath * path , QPen * pen ) {
2024-08-25 16:08:24 +12:00
return self - > addPath ( * path , * pen ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsPathItem * QGraphicsScene_addPath3 ( QGraphicsScene * self , QPainterPath * path , QPen * pen , QBrush * brush ) {
2024-08-25 16:08:24 +12:00
return self - > addPath ( * path , * pen , * brush ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsRectItem * QGraphicsScene_addRect22 ( QGraphicsScene * self , QRectF * rect , QPen * pen ) {
2024-08-25 16:08:24 +12:00
return self - > addRect ( * rect , * pen ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsRectItem * QGraphicsScene_addRect3 ( QGraphicsScene * self , QRectF * rect , QPen * pen , QBrush * brush ) {
2024-08-25 16:08:24 +12:00
return self - > addRect ( * rect , * pen , * brush ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsTextItem * QGraphicsScene_addText2 ( QGraphicsScene * self , struct miqt_string text , QFont * font ) {
2024-10-19 12:53:33 +13:00
QString text_QString = QString : : fromUtf8 ( text . data , text . len ) ;
2024-08-25 16:08:24 +12:00
return self - > addText ( text_QString , * font ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsSimpleTextItem * QGraphicsScene_addSimpleText2 ( QGraphicsScene * self , struct miqt_string text , QFont * font ) {
2024-10-19 12:53:33 +13:00
QString text_QString = QString : : fromUtf8 ( text . data , text . len ) ;
2024-08-25 16:08:24 +12:00
return self - > addSimpleText ( text_QString , * font ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsProxyWidget * QGraphicsScene_addWidget2 ( QGraphicsScene * self , QWidget * widget , int wFlags ) {
2024-08-29 19:01:51 +12:00
return self - > addWidget ( widget , static_cast < Qt : : WindowFlags > ( wFlags ) ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsEllipseItem * QGraphicsScene_addEllipse5 ( QGraphicsScene * self , double x , double y , double w , double h , QPen * pen ) {
2024-08-25 16:08:24 +12:00
return self - > addEllipse ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) , static_cast < qreal > ( w ) , static_cast < qreal > ( h ) , * pen ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsEllipseItem * QGraphicsScene_addEllipse6 ( QGraphicsScene * self , double x , double y , double w , double h , QPen * pen , QBrush * brush ) {
2024-08-25 16:08:24 +12:00
return self - > addEllipse ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) , static_cast < qreal > ( w ) , static_cast < qreal > ( h ) , * pen , * brush ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsLineItem * QGraphicsScene_addLine5 ( QGraphicsScene * self , double x1 , double y1 , double x2 , double y2 , QPen * pen ) {
2024-08-25 16:08:24 +12:00
return self - > addLine ( static_cast < qreal > ( x1 ) , static_cast < qreal > ( y1 ) , static_cast < qreal > ( x2 ) , static_cast < qreal > ( y2 ) , * pen ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsRectItem * QGraphicsScene_addRect5 ( QGraphicsScene * self , double x , double y , double w , double h , QPen * pen ) {
2024-08-25 16:08:24 +12:00
return self - > addRect ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) , static_cast < qreal > ( w ) , static_cast < qreal > ( h ) , * pen ) ;
}
2025-02-01 13:45:16 +13:00
QGraphicsRectItem * QGraphicsScene_addRect6 ( QGraphicsScene * self , double x , double y , double w , double h , QPen * pen , QBrush * brush ) {
2024-08-25 16:08:24 +12:00
return self - > addRect ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) , static_cast < qreal > ( w ) , static_cast < qreal > ( h ) , * pen , * brush ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setFocusItem2 ( QGraphicsScene * self , QGraphicsItem * item , int focusReason ) {
2024-08-29 19:01:51 +12:00
self - > setFocusItem ( item , static_cast < Qt : : FocusReason > ( focusReason ) ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_setFocus1 ( QGraphicsScene * self , int focusReason ) {
2024-08-29 19:01:51 +12:00
self - > setFocus ( static_cast < Qt : : FocusReason > ( focusReason ) ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_invalidate5 ( QGraphicsScene * self , double x , double y , double w , double h , int layers ) {
2024-08-29 19:01:51 +12:00
self - > invalidate ( static_cast < qreal > ( x ) , static_cast < qreal > ( y ) , static_cast < qreal > ( w ) , static_cast < qreal > ( h ) , static_cast < QGraphicsScene : : SceneLayers > ( layers ) ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_update1 ( QGraphicsScene * self , QRectF * rect ) {
2024-08-25 16:08:24 +12:00
self - > update ( * rect ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_invalidate1 ( QGraphicsScene * self , QRectF * rect ) {
2024-08-29 19:01:51 +12:00
self - > invalidate ( * rect ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_invalidate22 ( QGraphicsScene * self , QRectF * rect , int layers ) {
2024-08-29 19:01:51 +12:00
self - > invalidate ( * rect , static_cast < QGraphicsScene : : SceneLayers > ( layers ) ) ;
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_inputMethodQuery ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__inputMethodQuery = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
QVariant * QGraphicsScene_virtualbase_inputMethodQuery ( const void * self , int query ) {
return ( ( const MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_inputMethodQuery ( query ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_event ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__event = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_virtualbase_event ( void * self , QEvent * event ) {
return ( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_event ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_eventFilter ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__eventFilter = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_virtualbase_eventFilter ( void * self , QObject * watched , QEvent * event ) {
return ( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_eventFilter ( watched , event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_contextMenuEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__contextMenuEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_contextMenuEvent ( void * self , QGraphicsSceneContextMenuEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_contextMenuEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_dragEnterEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__dragEnterEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_dragEnterEvent ( void * self , QGraphicsSceneDragDropEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_dragEnterEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_dragMoveEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__dragMoveEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_dragMoveEvent ( void * self , QGraphicsSceneDragDropEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_dragMoveEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_dragLeaveEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__dragLeaveEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_dragLeaveEvent ( void * self , QGraphicsSceneDragDropEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_dragLeaveEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_dropEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__dropEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_dropEvent ( void * self , QGraphicsSceneDragDropEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_dropEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_focusInEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__focusInEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_focusInEvent ( void * self , QFocusEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_focusInEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_focusOutEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__focusOutEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_focusOutEvent ( void * self , QFocusEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_focusOutEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_helpEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__helpEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_helpEvent ( void * self , QGraphicsSceneHelpEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_helpEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_keyPressEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__keyPressEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_keyPressEvent ( void * self , QKeyEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_keyPressEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_keyReleaseEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__keyReleaseEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_keyReleaseEvent ( void * self , QKeyEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_keyReleaseEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_mousePressEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__mousePressEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_mousePressEvent ( void * self , QGraphicsSceneMouseEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_mousePressEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_mouseMoveEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__mouseMoveEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_mouseMoveEvent ( void * self , QGraphicsSceneMouseEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_mouseMoveEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_mouseReleaseEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__mouseReleaseEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_mouseReleaseEvent ( void * self , QGraphicsSceneMouseEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_mouseReleaseEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_mouseDoubleClickEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__mouseDoubleClickEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_mouseDoubleClickEvent ( void * self , QGraphicsSceneMouseEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_mouseDoubleClickEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_wheelEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__wheelEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_wheelEvent ( void * self , QGraphicsSceneWheelEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_wheelEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_inputMethodEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__inputMethodEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_inputMethodEvent ( void * self , QInputMethodEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_inputMethodEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_drawBackground ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__drawBackground = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_drawBackground ( void * self , QPainter * painter , QRectF * rect ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_drawBackground ( painter , rect ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_drawForeground ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__drawForeground = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_drawForeground ( void * self , QPainter * painter , QRectF * rect ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_drawForeground ( painter , rect ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_timerEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__timerEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_timerEvent ( void * self , QTimerEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_timerEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_childEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__childEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_childEvent ( void * self , QChildEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_childEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_customEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__customEvent = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_customEvent ( void * self , QEvent * event ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_customEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_connectNotify ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__connectNotify = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_connectNotify ( void * self , QMetaMethod * signal ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_connectNotify ( signal ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsScene_override_virtual_disconnectNotify ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsScene * self_cast = dynamic_cast < MiqtVirtualQGraphicsScene * > ( ( QGraphicsScene * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__disconnectNotify = slot ;
2025-01-18 17:57:48 +13:00
return true ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_virtualbase_disconnectNotify ( void * self , QMetaMethod * signal ) {
( ( MiqtVirtualQGraphicsScene * ) ( self ) ) - > virtualbase_disconnectNotify ( signal ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsScene_delete ( QGraphicsScene * self ) {
2025-01-18 17:42:41 +13:00
delete self ;
2024-08-25 16:08:24 +12:00
}