2024-11-19 19:29:06 +13:00
# include <QChildEvent>
# include <QEvent>
2024-10-20 18:21:03 +13:00
# include <QGraphicsItem>
# include <QGraphicsItemAnimation>
2024-11-17 19:21:37 +13:00
# include <QList>
2024-11-19 19:29:06 +13:00
# include <QMetaMethod>
2024-10-20 18:21:03 +13:00
# include <QMetaObject>
# include <QObject>
2024-11-26 20:10:11 +13:00
# include <QPair>
2024-10-20 18:21:03 +13:00
# include <QPointF>
# include <QString>
# include <QByteArray>
# include <cstring>
# include <QTimeLine>
2024-11-19 19:29:06 +13:00
# include <QTimerEvent>
2024-10-20 18:21:03 +13:00
# include <QTransform>
# include <qgraphicsitemanimation.h>
# include "gen_qgraphicsitemanimation.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_QGraphicsItemAnimation_beforeAnimationStep ( QGraphicsItemAnimation * , intptr_t , double ) ;
void miqt_exec_callback_QGraphicsItemAnimation_afterAnimationStep ( QGraphicsItemAnimation * , intptr_t , double ) ;
bool miqt_exec_callback_QGraphicsItemAnimation_event ( QGraphicsItemAnimation * , intptr_t , QEvent * ) ;
bool miqt_exec_callback_QGraphicsItemAnimation_eventFilter ( QGraphicsItemAnimation * , intptr_t , QObject * , QEvent * ) ;
void miqt_exec_callback_QGraphicsItemAnimation_timerEvent ( QGraphicsItemAnimation * , intptr_t , QTimerEvent * ) ;
void miqt_exec_callback_QGraphicsItemAnimation_childEvent ( QGraphicsItemAnimation * , intptr_t , QChildEvent * ) ;
void miqt_exec_callback_QGraphicsItemAnimation_customEvent ( QGraphicsItemAnimation * , intptr_t , QEvent * ) ;
void miqt_exec_callback_QGraphicsItemAnimation_connectNotify ( QGraphicsItemAnimation * , intptr_t , QMetaMethod * ) ;
void miqt_exec_callback_QGraphicsItemAnimation_disconnectNotify ( QGraphicsItemAnimation * , 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-10-20 18:21:03 +13:00
2025-01-18 17:42:41 +13:00
class MiqtVirtualQGraphicsItemAnimation final : public QGraphicsItemAnimation {
2024-11-19 19:29:06 +13:00
public :
MiqtVirtualQGraphicsItemAnimation ( ) : QGraphicsItemAnimation ( ) { } ;
MiqtVirtualQGraphicsItemAnimation ( QObject * parent ) : QGraphicsItemAnimation ( parent ) { } ;
2025-01-18 17:42:41 +13:00
virtual ~ MiqtVirtualQGraphicsItemAnimation ( ) 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__beforeAnimationStep = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void beforeAnimationStep ( qreal step ) override {
2025-02-01 13:45:16 +13:00
if ( handle__beforeAnimationStep = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsItemAnimation : : beforeAnimationStep ( step ) ;
return ;
}
qreal step_ret = step ;
double sigval1 = static_cast < double > ( step_ret ) ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsItemAnimation_beforeAnimationStep ( this , handle__beforeAnimationStep , 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_beforeAnimationStep ( double step ) {
2024-11-19 19:29:06 +13:00
QGraphicsItemAnimation : : beforeAnimationStep ( static_cast < qreal > ( step ) ) ;
}
// cgo.Handle value for overwritten implementation
2025-02-01 13:45:16 +13:00
intptr_t handle__afterAnimationStep = 0 ;
2024-11-19 19:29:06 +13:00
// Subclass to allow providing a Go implementation
virtual void afterAnimationStep ( qreal step ) override {
2025-02-01 13:45:16 +13:00
if ( handle__afterAnimationStep = = 0 ) {
2024-11-19 19:29:06 +13:00
QGraphicsItemAnimation : : afterAnimationStep ( step ) ;
return ;
}
qreal step_ret = step ;
double sigval1 = static_cast < double > ( step_ret ) ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsItemAnimation_afterAnimationStep ( this , handle__afterAnimationStep , 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_afterAnimationStep ( double step ) {
2024-11-19 19:29:06 +13:00
QGraphicsItemAnimation : : afterAnimationStep ( static_cast < qreal > ( step ) ) ;
}
// 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 QGraphicsItemAnimation : : event ( event ) ;
}
QEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
bool callback_return_value = miqt_exec_callback_QGraphicsItemAnimation_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 QGraphicsItemAnimation : : 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 QGraphicsItemAnimation : : eventFilter ( watched , event ) ;
}
QObject * sigval1 = watched ;
QEvent * sigval2 = event ;
2025-02-01 13:45:16 +13:00
bool callback_return_value = miqt_exec_callback_QGraphicsItemAnimation_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 QGraphicsItemAnimation : : eventFilter ( watched , event ) ;
}
// 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
QGraphicsItemAnimation : : timerEvent ( event ) ;
return ;
}
QTimerEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsItemAnimation_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
QGraphicsItemAnimation : : 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
QGraphicsItemAnimation : : childEvent ( event ) ;
return ;
}
QChildEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsItemAnimation_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
QGraphicsItemAnimation : : 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
QGraphicsItemAnimation : : customEvent ( event ) ;
return ;
}
QEvent * sigval1 = event ;
2025-02-01 13:45:16 +13:00
miqt_exec_callback_QGraphicsItemAnimation_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
QGraphicsItemAnimation : : 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
QGraphicsItemAnimation : : 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_QGraphicsItemAnimation_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
QGraphicsItemAnimation : : 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
QGraphicsItemAnimation : : 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_QGraphicsItemAnimation_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
QGraphicsItemAnimation : : disconnectNotify ( * signal ) ;
}
} ;
2024-12-07 17:15:57 +13:00
QGraphicsItemAnimation * QGraphicsItemAnimation_new ( ) {
return new MiqtVirtualQGraphicsItemAnimation ( ) ;
2024-10-20 18:21:03 +13:00
}
2024-12-07 17:15:57 +13:00
QGraphicsItemAnimation * QGraphicsItemAnimation_new2 ( QObject * parent ) {
return new MiqtVirtualQGraphicsItemAnimation ( parent ) ;
}
void QGraphicsItemAnimation_virtbase ( QGraphicsItemAnimation * src , QObject * * outptr_QObject ) {
* outptr_QObject = static_cast < QObject * > ( src ) ;
2024-10-20 18:21:03 +13:00
}
2025-02-01 13:45:16 +13:00
QMetaObject * QGraphicsItemAnimation_metaObject ( const QGraphicsItemAnimation * self ) {
2024-10-20 18:21:03 +13:00
return ( QMetaObject * ) self - > metaObject ( ) ;
}
2025-02-01 13:45:16 +13:00
void * QGraphicsItemAnimation_metacast ( QGraphicsItemAnimation * self , const char * param1 ) {
2024-10-20 18:21:03 +13:00
return self - > qt_metacast ( param1 ) ;
}
2025-02-01 13:45:16 +13:00
struct miqt_string QGraphicsItemAnimation_tr ( const char * s ) {
2024-10-20 18:21:03 +13:00
QString _ret = QGraphicsItemAnimation : : tr ( s ) ;
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret . toUtf8 ( ) ;
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 ;
}
2025-02-01 13:45:16 +13:00
QGraphicsItem * QGraphicsItemAnimation_item ( const QGraphicsItemAnimation * self ) {
2024-10-20 18:21:03 +13:00
return self - > item ( ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsItemAnimation_setItem ( QGraphicsItemAnimation * self , QGraphicsItem * item ) {
2024-10-20 18:21:03 +13:00
self - > setItem ( item ) ;
}
2025-02-01 13:45:16 +13:00
QTimeLine * QGraphicsItemAnimation_timeLine ( const QGraphicsItemAnimation * self ) {
2024-10-20 18:21:03 +13:00
return self - > timeLine ( ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsItemAnimation_setTimeLine ( QGraphicsItemAnimation * self , QTimeLine * timeLine ) {
2024-10-20 18:21:03 +13:00
self - > setTimeLine ( timeLine ) ;
}
2025-02-01 13:45:16 +13:00
QPointF * QGraphicsItemAnimation_posAt ( const QGraphicsItemAnimation * self , double step ) {
2024-10-20 18:21:03 +13:00
return new QPointF ( self - > posAt ( static_cast < qreal > ( step ) ) ) ;
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_posList ( const QGraphicsItemAnimation * self ) {
2024-11-17 19:21:37 +13:00
QList < QPair < qreal , QPointF > > _ret = self - > posList ( ) ;
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_map /* tuple of double and QPointF* */ * _arr = static_cast < struct miqt_map /* tuple of double and QPointF* */ * > ( malloc ( sizeof ( struct miqt_map /* tuple of double and QPointF* */ ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
QPair < double , QPointF > _lv_ret = _ret [ i ] ;
// Convert QPair<> from C++ memory to manually-managed C memory
double * _lv_first_arr = static_cast < double * > ( malloc ( sizeof ( double ) ) ) ;
QPointF * * _lv_second_arr = static_cast < QPointF * * > ( malloc ( sizeof ( QPointF * ) ) ) ;
_lv_first_arr [ 0 ] = _lv_ret . first ;
_lv_second_arr [ 0 ] = new QPointF ( _lv_ret . second ) ;
struct miqt_map _lv_out ;
_lv_out . len = 1 ;
_lv_out . keys = static_cast < void * > ( _lv_first_arr ) ;
_lv_out . values = static_cast < void * > ( _lv_second_arr ) ;
_arr [ i ] = _lv_out ;
}
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
return _out ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsItemAnimation_setPosAt ( QGraphicsItemAnimation * self , double step , QPointF * pos ) {
2024-10-20 18:21:03 +13:00
self - > setPosAt ( static_cast < qreal > ( step ) , * pos ) ;
}
2025-02-01 13:45:16 +13:00
QTransform * QGraphicsItemAnimation_transformAt ( const QGraphicsItemAnimation * self , double step ) {
2024-10-20 18:21:03 +13:00
return new QTransform ( self - > transformAt ( static_cast < qreal > ( step ) ) ) ;
}
2025-02-01 13:45:16 +13:00
double QGraphicsItemAnimation_rotationAt ( const QGraphicsItemAnimation * self , double step ) {
2024-10-20 18:21:03 +13:00
qreal _ret = self - > rotationAt ( static_cast < qreal > ( step ) ) ;
return static_cast < double > ( _ret ) ;
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of struct miqt_map tuple of double and double */ QGraphicsItemAnimation_rotationList ( const QGraphicsItemAnimation * self ) {
2024-11-17 19:21:37 +13:00
QList < QPair < qreal , qreal > > _ret = self - > rotationList ( ) ;
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_map /* tuple of double and double */ * _arr = static_cast < struct miqt_map /* tuple of double and double */ * > ( malloc ( sizeof ( struct miqt_map /* tuple of double and double */ ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
QPair < double , double > _lv_ret = _ret [ i ] ;
// Convert QPair<> from C++ memory to manually-managed C memory
double * _lv_first_arr = static_cast < double * > ( malloc ( sizeof ( double ) ) ) ;
double * _lv_second_arr = static_cast < double * > ( malloc ( sizeof ( double ) ) ) ;
_lv_first_arr [ 0 ] = _lv_ret . first ;
_lv_second_arr [ 0 ] = _lv_ret . second ;
struct miqt_map _lv_out ;
_lv_out . len = 1 ;
_lv_out . keys = static_cast < void * > ( _lv_first_arr ) ;
_lv_out . values = static_cast < void * > ( _lv_second_arr ) ;
_arr [ i ] = _lv_out ;
}
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
return _out ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsItemAnimation_setRotationAt ( QGraphicsItemAnimation * self , double step , double angle ) {
2024-10-20 18:21:03 +13:00
self - > setRotationAt ( static_cast < qreal > ( step ) , static_cast < qreal > ( angle ) ) ;
}
2025-02-01 13:45:16 +13:00
double QGraphicsItemAnimation_xTranslationAt ( const QGraphicsItemAnimation * self , double step ) {
2024-10-20 18:21:03 +13:00
qreal _ret = self - > xTranslationAt ( static_cast < qreal > ( step ) ) ;
return static_cast < double > ( _ret ) ;
}
2025-02-01 13:45:16 +13:00
double QGraphicsItemAnimation_yTranslationAt ( const QGraphicsItemAnimation * self , double step ) {
2024-10-20 18:21:03 +13:00
qreal _ret = self - > yTranslationAt ( static_cast < qreal > ( step ) ) ;
return static_cast < double > ( _ret ) ;
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_translationList ( const QGraphicsItemAnimation * self ) {
2024-11-17 19:21:37 +13:00
QList < QPair < qreal , QPointF > > _ret = self - > translationList ( ) ;
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_map /* tuple of double and QPointF* */ * _arr = static_cast < struct miqt_map /* tuple of double and QPointF* */ * > ( malloc ( sizeof ( struct miqt_map /* tuple of double and QPointF* */ ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
QPair < double , QPointF > _lv_ret = _ret [ i ] ;
// Convert QPair<> from C++ memory to manually-managed C memory
double * _lv_first_arr = static_cast < double * > ( malloc ( sizeof ( double ) ) ) ;
QPointF * * _lv_second_arr = static_cast < QPointF * * > ( malloc ( sizeof ( QPointF * ) ) ) ;
_lv_first_arr [ 0 ] = _lv_ret . first ;
_lv_second_arr [ 0 ] = new QPointF ( _lv_ret . second ) ;
struct miqt_map _lv_out ;
_lv_out . len = 1 ;
_lv_out . keys = static_cast < void * > ( _lv_first_arr ) ;
_lv_out . values = static_cast < void * > ( _lv_second_arr ) ;
_arr [ i ] = _lv_out ;
}
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
return _out ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsItemAnimation_setTranslationAt ( QGraphicsItemAnimation * self , double step , double dx , double dy ) {
2024-10-20 18:21:03 +13:00
self - > setTranslationAt ( static_cast < qreal > ( step ) , static_cast < qreal > ( dx ) , static_cast < qreal > ( dy ) ) ;
}
2025-02-01 13:45:16 +13:00
double QGraphicsItemAnimation_verticalScaleAt ( const QGraphicsItemAnimation * self , double step ) {
2024-10-20 18:21:03 +13:00
qreal _ret = self - > verticalScaleAt ( static_cast < qreal > ( step ) ) ;
return static_cast < double > ( _ret ) ;
}
2025-02-01 13:45:16 +13:00
double QGraphicsItemAnimation_horizontalScaleAt ( const QGraphicsItemAnimation * self , double step ) {
2024-10-20 18:21:03 +13:00
qreal _ret = self - > horizontalScaleAt ( static_cast < qreal > ( step ) ) ;
return static_cast < double > ( _ret ) ;
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_scaleList ( const QGraphicsItemAnimation * self ) {
2024-11-17 19:21:37 +13:00
QList < QPair < qreal , QPointF > > _ret = self - > scaleList ( ) ;
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_map /* tuple of double and QPointF* */ * _arr = static_cast < struct miqt_map /* tuple of double and QPointF* */ * > ( malloc ( sizeof ( struct miqt_map /* tuple of double and QPointF* */ ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
QPair < double , QPointF > _lv_ret = _ret [ i ] ;
// Convert QPair<> from C++ memory to manually-managed C memory
double * _lv_first_arr = static_cast < double * > ( malloc ( sizeof ( double ) ) ) ;
QPointF * * _lv_second_arr = static_cast < QPointF * * > ( malloc ( sizeof ( QPointF * ) ) ) ;
_lv_first_arr [ 0 ] = _lv_ret . first ;
_lv_second_arr [ 0 ] = new QPointF ( _lv_ret . second ) ;
struct miqt_map _lv_out ;
_lv_out . len = 1 ;
_lv_out . keys = static_cast < void * > ( _lv_first_arr ) ;
_lv_out . values = static_cast < void * > ( _lv_second_arr ) ;
_arr [ i ] = _lv_out ;
}
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
return _out ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsItemAnimation_setScaleAt ( QGraphicsItemAnimation * self , double step , double sx , double sy ) {
2024-10-20 18:21:03 +13:00
self - > setScaleAt ( static_cast < qreal > ( step ) , static_cast < qreal > ( sx ) , static_cast < qreal > ( sy ) ) ;
}
2025-02-01 13:45:16 +13:00
double QGraphicsItemAnimation_verticalShearAt ( const QGraphicsItemAnimation * self , double step ) {
2024-10-20 18:21:03 +13:00
qreal _ret = self - > verticalShearAt ( static_cast < qreal > ( step ) ) ;
return static_cast < double > ( _ret ) ;
}
2025-02-01 13:45:16 +13:00
double QGraphicsItemAnimation_horizontalShearAt ( const QGraphicsItemAnimation * self , double step ) {
2024-10-20 18:21:03 +13:00
qreal _ret = self - > horizontalShearAt ( static_cast < qreal > ( step ) ) ;
return static_cast < double > ( _ret ) ;
}
2025-02-01 13:45:16 +13:00
struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_shearList ( const QGraphicsItemAnimation * self ) {
2024-11-17 19:21:37 +13:00
QList < QPair < qreal , QPointF > > _ret = self - > shearList ( ) ;
// Convert QList<> from C++ memory to manually-managed C memory
struct miqt_map /* tuple of double and QPointF* */ * _arr = static_cast < struct miqt_map /* tuple of double and QPointF* */ * > ( malloc ( sizeof ( struct miqt_map /* tuple of double and QPointF* */ ) * _ret . length ( ) ) ) ;
for ( size_t i = 0 , e = _ret . length ( ) ; i < e ; + + i ) {
QPair < double , QPointF > _lv_ret = _ret [ i ] ;
// Convert QPair<> from C++ memory to manually-managed C memory
double * _lv_first_arr = static_cast < double * > ( malloc ( sizeof ( double ) ) ) ;
QPointF * * _lv_second_arr = static_cast < QPointF * * > ( malloc ( sizeof ( QPointF * ) ) ) ;
_lv_first_arr [ 0 ] = _lv_ret . first ;
_lv_second_arr [ 0 ] = new QPointF ( _lv_ret . second ) ;
struct miqt_map _lv_out ;
_lv_out . len = 1 ;
_lv_out . keys = static_cast < void * > ( _lv_first_arr ) ;
_lv_out . values = static_cast < void * > ( _lv_second_arr ) ;
_arr [ i ] = _lv_out ;
}
struct miqt_array _out ;
_out . len = _ret . length ( ) ;
_out . data = static_cast < void * > ( _arr ) ;
return _out ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsItemAnimation_setShearAt ( QGraphicsItemAnimation * self , double step , double sh , double sv ) {
2024-10-20 18:21:03 +13:00
self - > setShearAt ( static_cast < qreal > ( step ) , static_cast < qreal > ( sh ) , static_cast < qreal > ( sv ) ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsItemAnimation_clear ( QGraphicsItemAnimation * self ) {
2024-10-20 18:21:03 +13:00
self - > clear ( ) ;
}
2025-02-01 13:45:16 +13:00
void QGraphicsItemAnimation_setStep ( QGraphicsItemAnimation * self , double x ) {
2024-10-20 18:21:03 +13:00
self - > setStep ( static_cast < qreal > ( x ) ) ;
}
2025-02-01 13:45:16 +13:00
struct miqt_string QGraphicsItemAnimation_tr2 ( const char * s , const char * c ) {
2024-10-20 18:21:03 +13:00
QString _ret = QGraphicsItemAnimation : : tr ( s , c ) ;
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret . toUtf8 ( ) ;
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 ;
}
2025-02-01 13:45:16 +13:00
struct miqt_string QGraphicsItemAnimation_tr3 ( const char * s , const char * c , int n ) {
2024-10-20 18:21:03 +13:00
QString _ret = QGraphicsItemAnimation : : tr ( s , c , static_cast < int > ( n ) ) ;
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
QByteArray _b = _ret . toUtf8 ( ) ;
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 ;
}
2025-02-01 13:45:16 +13:00
bool QGraphicsItemAnimation_override_virtual_beforeAnimationStep ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsItemAnimation * self_cast = dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( ( QGraphicsItemAnimation * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__beforeAnimationStep = 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 QGraphicsItemAnimation_virtualbase_beforeAnimationStep ( void * self , double step ) {
( ( MiqtVirtualQGraphicsItemAnimation * ) ( self ) ) - > virtualbase_beforeAnimationStep ( step ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsItemAnimation_override_virtual_afterAnimationStep ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsItemAnimation * self_cast = dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( ( QGraphicsItemAnimation * ) ( self ) ) ;
if ( self_cast = = nullptr ) {
return false ;
}
2025-02-01 13:45:16 +13:00
self_cast - > handle__afterAnimationStep = 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 QGraphicsItemAnimation_virtualbase_afterAnimationStep ( void * self , double step ) {
( ( MiqtVirtualQGraphicsItemAnimation * ) ( self ) ) - > virtualbase_afterAnimationStep ( step ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsItemAnimation_override_virtual_event ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsItemAnimation * self_cast = dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( ( QGraphicsItemAnimation * ) ( 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 QGraphicsItemAnimation_virtualbase_event ( void * self , QEvent * event ) {
return ( ( MiqtVirtualQGraphicsItemAnimation * ) ( self ) ) - > virtualbase_event ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsItemAnimation_override_virtual_eventFilter ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsItemAnimation * self_cast = dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( ( QGraphicsItemAnimation * ) ( 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 QGraphicsItemAnimation_virtualbase_eventFilter ( void * self , QObject * watched , QEvent * event ) {
return ( ( MiqtVirtualQGraphicsItemAnimation * ) ( self ) ) - > virtualbase_eventFilter ( watched , event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsItemAnimation_override_virtual_timerEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsItemAnimation * self_cast = dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( ( QGraphicsItemAnimation * ) ( 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 QGraphicsItemAnimation_virtualbase_timerEvent ( void * self , QTimerEvent * event ) {
( ( MiqtVirtualQGraphicsItemAnimation * ) ( self ) ) - > virtualbase_timerEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsItemAnimation_override_virtual_childEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsItemAnimation * self_cast = dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( ( QGraphicsItemAnimation * ) ( 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 QGraphicsItemAnimation_virtualbase_childEvent ( void * self , QChildEvent * event ) {
( ( MiqtVirtualQGraphicsItemAnimation * ) ( self ) ) - > virtualbase_childEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsItemAnimation_override_virtual_customEvent ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsItemAnimation * self_cast = dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( ( QGraphicsItemAnimation * ) ( 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 QGraphicsItemAnimation_virtualbase_customEvent ( void * self , QEvent * event ) {
( ( MiqtVirtualQGraphicsItemAnimation * ) ( self ) ) - > virtualbase_customEvent ( event ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsItemAnimation_override_virtual_connectNotify ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsItemAnimation * self_cast = dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( ( QGraphicsItemAnimation * ) ( 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 QGraphicsItemAnimation_virtualbase_connectNotify ( void * self , QMetaMethod * signal ) {
( ( MiqtVirtualQGraphicsItemAnimation * ) ( self ) ) - > virtualbase_connectNotify ( signal ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
bool QGraphicsItemAnimation_override_virtual_disconnectNotify ( void * self , intptr_t slot ) {
2025-01-18 17:57:48 +13:00
MiqtVirtualQGraphicsItemAnimation * self_cast = dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( ( QGraphicsItemAnimation * ) ( 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 QGraphicsItemAnimation_virtualbase_disconnectNotify ( void * self , QMetaMethod * signal ) {
( ( MiqtVirtualQGraphicsItemAnimation * ) ( self ) ) - > virtualbase_disconnectNotify ( signal ) ;
2024-11-19 19:29:06 +13:00
}
2025-02-01 13:45:16 +13:00
void QGraphicsItemAnimation_delete ( QGraphicsItemAnimation * self ) {
2025-01-18 17:42:41 +13:00
delete self ;
2024-10-20 18:21:03 +13:00
}