2024-11-19 06:29:06 +00:00
# include <QChildEvent>
# include <QEvent>
2024-08-25 04:08:24 +00:00
# include <QGraphicsItem>
# include <QGraphicsItemAnimation>
2024-11-17 06:21:37 +00:00
# include <QList>
2024-08-25 04:08:24 +00:00
# include <QMatrix>
2024-11-19 06:29:06 +00:00
# include <QMetaMethod>
2024-08-25 04:08:24 +00:00
# include <QMetaObject>
# include <QObject>
2024-11-26 07:10:11 +00:00
# include <QPair>
2024-08-25 04:08:24 +00:00
# include <QPointF>
# include <QString>
2024-08-29 07:01:51 +00:00
# include <QByteArray>
# include <cstring>
2024-08-25 04:08:24 +00:00
# include <QTimeLine>
2024-11-19 06:29:06 +00:00
# include <QTimerEvent>
2024-08-25 04:08:24 +00:00
# include <QTransform>
2024-10-16 05:07:56 +00:00
# include <qgraphicsitemanimation.h>
2024-08-29 07:01:51 +00:00
# include "gen_qgraphicsitemanimation.h"
2024-09-14 22:29:05 +00:00
# include "_cgo_export.h"
2024-08-25 04:08:24 +00:00
2024-11-19 06:29:06 +00:00
class MiqtVirtualQGraphicsItemAnimation : public virtual QGraphicsItemAnimation {
public :
MiqtVirtualQGraphicsItemAnimation ( ) : QGraphicsItemAnimation ( ) { } ;
MiqtVirtualQGraphicsItemAnimation ( QObject * parent ) : QGraphicsItemAnimation ( parent ) { } ;
virtual ~ MiqtVirtualQGraphicsItemAnimation ( ) = default ;
// cgo.Handle value for overwritten implementation
intptr_t handle__BeforeAnimationStep = 0 ;
// Subclass to allow providing a Go implementation
virtual void beforeAnimationStep ( qreal step ) override {
if ( handle__BeforeAnimationStep = = 0 ) {
QGraphicsItemAnimation : : beforeAnimationStep ( step ) ;
return ;
}
qreal step_ret = step ;
double sigval1 = static_cast < double > ( step_ret ) ;
miqt_exec_callback_QGraphicsItemAnimation_BeforeAnimationStep ( this , handle__BeforeAnimationStep , sigval1 ) ;
}
// Wrapper to allow calling protected method
void virtualbase_BeforeAnimationStep ( double step ) {
QGraphicsItemAnimation : : beforeAnimationStep ( static_cast < qreal > ( step ) ) ;
}
// cgo.Handle value for overwritten implementation
intptr_t handle__AfterAnimationStep = 0 ;
// Subclass to allow providing a Go implementation
virtual void afterAnimationStep ( qreal step ) override {
if ( handle__AfterAnimationStep = = 0 ) {
QGraphicsItemAnimation : : afterAnimationStep ( step ) ;
return ;
}
qreal step_ret = step ;
double sigval1 = static_cast < double > ( step_ret ) ;
miqt_exec_callback_QGraphicsItemAnimation_AfterAnimationStep ( this , handle__AfterAnimationStep , sigval1 ) ;
}
// Wrapper to allow calling protected method
void virtualbase_AfterAnimationStep ( double step ) {
QGraphicsItemAnimation : : afterAnimationStep ( static_cast < qreal > ( step ) ) ;
}
// cgo.Handle value for overwritten implementation
intptr_t handle__Event = 0 ;
// Subclass to allow providing a Go implementation
virtual bool event ( QEvent * event ) override {
if ( handle__Event = = 0 ) {
return QGraphicsItemAnimation : : event ( event ) ;
}
QEvent * sigval1 = event ;
bool callback_return_value = miqt_exec_callback_QGraphicsItemAnimation_Event ( this , handle__Event , sigval1 ) ;
return callback_return_value ;
}
// Wrapper to allow calling protected method
bool virtualbase_Event ( QEvent * event ) {
return QGraphicsItemAnimation : : event ( event ) ;
}
// cgo.Handle value for overwritten implementation
intptr_t handle__EventFilter = 0 ;
// Subclass to allow providing a Go implementation
virtual bool eventFilter ( QObject * watched , QEvent * event ) override {
if ( handle__EventFilter = = 0 ) {
return QGraphicsItemAnimation : : eventFilter ( watched , event ) ;
}
QObject * sigval1 = watched ;
QEvent * sigval2 = event ;
bool callback_return_value = miqt_exec_callback_QGraphicsItemAnimation_EventFilter ( this , handle__EventFilter , sigval1 , sigval2 ) ;
return callback_return_value ;
}
// Wrapper to allow calling protected method
bool virtualbase_EventFilter ( QObject * watched , QEvent * event ) {
return QGraphicsItemAnimation : : eventFilter ( watched , event ) ;
}
// cgo.Handle value for overwritten implementation
intptr_t handle__TimerEvent = 0 ;
// Subclass to allow providing a Go implementation
virtual void timerEvent ( QTimerEvent * event ) override {
if ( handle__TimerEvent = = 0 ) {
QGraphicsItemAnimation : : timerEvent ( event ) ;
return ;
}
QTimerEvent * sigval1 = event ;
miqt_exec_callback_QGraphicsItemAnimation_TimerEvent ( this , handle__TimerEvent , sigval1 ) ;
}
// Wrapper to allow calling protected method
void virtualbase_TimerEvent ( QTimerEvent * event ) {
QGraphicsItemAnimation : : timerEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
intptr_t handle__ChildEvent = 0 ;
// Subclass to allow providing a Go implementation
virtual void childEvent ( QChildEvent * event ) override {
if ( handle__ChildEvent = = 0 ) {
QGraphicsItemAnimation : : childEvent ( event ) ;
return ;
}
QChildEvent * sigval1 = event ;
miqt_exec_callback_QGraphicsItemAnimation_ChildEvent ( this , handle__ChildEvent , sigval1 ) ;
}
// Wrapper to allow calling protected method
void virtualbase_ChildEvent ( QChildEvent * event ) {
QGraphicsItemAnimation : : childEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
intptr_t handle__CustomEvent = 0 ;
// Subclass to allow providing a Go implementation
virtual void customEvent ( QEvent * event ) override {
if ( handle__CustomEvent = = 0 ) {
QGraphicsItemAnimation : : customEvent ( event ) ;
return ;
}
QEvent * sigval1 = event ;
miqt_exec_callback_QGraphicsItemAnimation_CustomEvent ( this , handle__CustomEvent , sigval1 ) ;
}
// Wrapper to allow calling protected method
void virtualbase_CustomEvent ( QEvent * event ) {
QGraphicsItemAnimation : : customEvent ( event ) ;
}
// cgo.Handle value for overwritten implementation
intptr_t handle__ConnectNotify = 0 ;
// Subclass to allow providing a Go implementation
virtual void connectNotify ( const QMetaMethod & signal ) override {
if ( handle__ConnectNotify = = 0 ) {
QGraphicsItemAnimation : : connectNotify ( signal ) ;
return ;
}
const QMetaMethod & signal_ret = signal ;
// Cast returned reference into pointer
QMetaMethod * sigval1 = const_cast < QMetaMethod * > ( & signal_ret ) ;
miqt_exec_callback_QGraphicsItemAnimation_ConnectNotify ( this , handle__ConnectNotify , sigval1 ) ;
}
// Wrapper to allow calling protected method
void virtualbase_ConnectNotify ( QMetaMethod * signal ) {
QGraphicsItemAnimation : : connectNotify ( * signal ) ;
}
// cgo.Handle value for overwritten implementation
intptr_t handle__DisconnectNotify = 0 ;
// Subclass to allow providing a Go implementation
virtual void disconnectNotify ( const QMetaMethod & signal ) override {
if ( handle__DisconnectNotify = = 0 ) {
QGraphicsItemAnimation : : disconnectNotify ( signal ) ;
return ;
}
const QMetaMethod & signal_ret = signal ;
// Cast returned reference into pointer
QMetaMethod * sigval1 = const_cast < QMetaMethod * > ( & signal_ret ) ;
miqt_exec_callback_QGraphicsItemAnimation_DisconnectNotify ( this , handle__DisconnectNotify , sigval1 ) ;
}
// Wrapper to allow calling protected method
void virtualbase_DisconnectNotify ( QMetaMethod * signal ) {
QGraphicsItemAnimation : : disconnectNotify ( * signal ) ;
}
} ;
void QGraphicsItemAnimation_new ( QGraphicsItemAnimation * * outptr_QGraphicsItemAnimation , QObject * * outptr_QObject ) {
MiqtVirtualQGraphicsItemAnimation * ret = new MiqtVirtualQGraphicsItemAnimation ( ) ;
* outptr_QGraphicsItemAnimation = ret ;
* outptr_QObject = static_cast < QObject * > ( ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QGraphicsItemAnimation_new2 ( QObject * parent , QGraphicsItemAnimation * * outptr_QGraphicsItemAnimation , QObject * * outptr_QObject ) {
MiqtVirtualQGraphicsItemAnimation * ret = new MiqtVirtualQGraphicsItemAnimation ( parent ) ;
* outptr_QGraphicsItemAnimation = ret ;
* outptr_QObject = static_cast < QObject * > ( ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QMetaObject * QGraphicsItemAnimation_MetaObject ( const QGraphicsItemAnimation * self ) {
return ( QMetaObject * ) self - > metaObject ( ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-20 22:32:57 +00:00
void * QGraphicsItemAnimation_Metacast ( QGraphicsItemAnimation * self , const char * param1 ) {
return self - > qt_metacast ( param1 ) ;
}
2024-10-18 23:53:33 +00:00
struct miqt_string QGraphicsItemAnimation_Tr ( const char * s ) {
2024-09-14 22:29:05 +00:00
QString _ret = QGraphicsItemAnimation : : tr ( s ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00: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 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QGraphicsItemAnimation_TrUtf8 ( const char * s ) {
2024-09-14 22:29:05 +00:00
QString _ret = QGraphicsItemAnimation : : trUtf8 ( s ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00: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 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QGraphicsItem * QGraphicsItemAnimation_Item ( const QGraphicsItemAnimation * self ) {
return self - > item ( ) ;
2024-08-25 04:08:24 +00:00
}
void QGraphicsItemAnimation_SetItem ( QGraphicsItemAnimation * self , QGraphicsItem * item ) {
self - > setItem ( item ) ;
}
2024-09-11 05:41:09 +00:00
QTimeLine * QGraphicsItemAnimation_TimeLine ( const QGraphicsItemAnimation * self ) {
return self - > timeLine ( ) ;
2024-08-25 04:08:24 +00:00
}
void QGraphicsItemAnimation_SetTimeLine ( QGraphicsItemAnimation * self , QTimeLine * timeLine ) {
self - > setTimeLine ( timeLine ) ;
}
2024-09-11 05:41:09 +00:00
QPointF * QGraphicsItemAnimation_PosAt ( const QGraphicsItemAnimation * self , double step ) {
2024-09-17 06:29:11 +00:00
return new QPointF ( self - > posAt ( static_cast < qreal > ( step ) ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-17 06:21:37 +00:00
struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_PosList ( const QGraphicsItemAnimation * self ) {
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 ;
}
2024-08-25 04:08:24 +00:00
void QGraphicsItemAnimation_SetPosAt ( QGraphicsItemAnimation * self , double step , QPointF * pos ) {
self - > setPosAt ( static_cast < qreal > ( step ) , * pos ) ;
}
2024-09-11 05:41:09 +00:00
QMatrix * QGraphicsItemAnimation_MatrixAt ( const QGraphicsItemAnimation * self , double step ) {
2024-09-17 06:29:11 +00:00
return new QMatrix ( self - > matrixAt ( static_cast < qreal > ( step ) ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
QTransform * QGraphicsItemAnimation_TransformAt ( const QGraphicsItemAnimation * self , double step ) {
2024-09-17 06:29:11 +00:00
return new QTransform ( self - > transformAt ( static_cast < qreal > ( step ) ) ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
double QGraphicsItemAnimation_RotationAt ( const QGraphicsItemAnimation * self , double step ) {
2024-09-18 00:12:02 +00:00
qreal _ret = self - > rotationAt ( static_cast < qreal > ( step ) ) ;
return static_cast < double > ( _ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-17 06:21:37 +00:00
struct miqt_array /* of struct miqt_map tuple of double and double */ QGraphicsItemAnimation_RotationList ( const QGraphicsItemAnimation * self ) {
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 ;
}
2024-08-25 04:08:24 +00:00
void QGraphicsItemAnimation_SetRotationAt ( QGraphicsItemAnimation * self , double step , double angle ) {
self - > setRotationAt ( static_cast < qreal > ( step ) , static_cast < qreal > ( angle ) ) ;
}
2024-09-11 05:41:09 +00:00
double QGraphicsItemAnimation_XTranslationAt ( const QGraphicsItemAnimation * self , double step ) {
2024-09-18 00:12:02 +00:00
qreal _ret = self - > xTranslationAt ( static_cast < qreal > ( step ) ) ;
return static_cast < double > ( _ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
double QGraphicsItemAnimation_YTranslationAt ( const QGraphicsItemAnimation * self , double step ) {
2024-09-18 00:12:02 +00:00
qreal _ret = self - > yTranslationAt ( static_cast < qreal > ( step ) ) ;
return static_cast < double > ( _ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-17 06:21:37 +00:00
struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_TranslationList ( const QGraphicsItemAnimation * self ) {
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 ;
}
2024-08-25 04:08:24 +00:00
void QGraphicsItemAnimation_SetTranslationAt ( QGraphicsItemAnimation * self , double step , double dx , double dy ) {
self - > setTranslationAt ( static_cast < qreal > ( step ) , static_cast < qreal > ( dx ) , static_cast < qreal > ( dy ) ) ;
}
2024-09-11 05:41:09 +00:00
double QGraphicsItemAnimation_VerticalScaleAt ( const QGraphicsItemAnimation * self , double step ) {
2024-09-18 00:12:02 +00:00
qreal _ret = self - > verticalScaleAt ( static_cast < qreal > ( step ) ) ;
return static_cast < double > ( _ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
double QGraphicsItemAnimation_HorizontalScaleAt ( const QGraphicsItemAnimation * self , double step ) {
2024-09-18 00:12:02 +00:00
qreal _ret = self - > horizontalScaleAt ( static_cast < qreal > ( step ) ) ;
return static_cast < double > ( _ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-17 06:21:37 +00:00
struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_ScaleList ( const QGraphicsItemAnimation * self ) {
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 ;
}
2024-08-25 04:08:24 +00:00
void QGraphicsItemAnimation_SetScaleAt ( QGraphicsItemAnimation * self , double step , double sx , double sy ) {
self - > setScaleAt ( static_cast < qreal > ( step ) , static_cast < qreal > ( sx ) , static_cast < qreal > ( sy ) ) ;
}
2024-09-11 05:41:09 +00:00
double QGraphicsItemAnimation_VerticalShearAt ( const QGraphicsItemAnimation * self , double step ) {
2024-09-18 00:12:02 +00:00
qreal _ret = self - > verticalShearAt ( static_cast < qreal > ( step ) ) ;
return static_cast < double > ( _ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-09-11 05:41:09 +00:00
double QGraphicsItemAnimation_HorizontalShearAt ( const QGraphicsItemAnimation * self , double step ) {
2024-09-18 00:12:02 +00:00
qreal _ret = self - > horizontalShearAt ( static_cast < qreal > ( step ) ) ;
return static_cast < double > ( _ret ) ;
2024-08-25 04:08:24 +00:00
}
2024-11-17 06:21:37 +00:00
struct miqt_array /* of struct miqt_map tuple of double and QPointF* */ QGraphicsItemAnimation_ShearList ( const QGraphicsItemAnimation * self ) {
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 ;
}
2024-08-25 04:08:24 +00:00
void QGraphicsItemAnimation_SetShearAt ( QGraphicsItemAnimation * self , double step , double sh , double sv ) {
self - > setShearAt ( static_cast < qreal > ( step ) , static_cast < qreal > ( sh ) , static_cast < qreal > ( sv ) ) ;
}
void QGraphicsItemAnimation_Clear ( QGraphicsItemAnimation * self ) {
self - > clear ( ) ;
}
void QGraphicsItemAnimation_SetStep ( QGraphicsItemAnimation * self , double x ) {
self - > setStep ( static_cast < qreal > ( x ) ) ;
}
void QGraphicsItemAnimation_Reset ( QGraphicsItemAnimation * self ) {
self - > reset ( ) ;
}
2024-10-18 23:53:33 +00:00
struct miqt_string QGraphicsItemAnimation_Tr2 ( const char * s , const char * c ) {
2024-09-14 22:29:05 +00:00
QString _ret = QGraphicsItemAnimation : : tr ( s , c ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00: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 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QGraphicsItemAnimation_Tr3 ( const char * s , const char * c , int n ) {
2024-09-14 22:29:05 +00:00
QString _ret = QGraphicsItemAnimation : : tr ( s , c , static_cast < int > ( n ) ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00: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 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QGraphicsItemAnimation_TrUtf82 ( const char * s , const char * c ) {
2024-09-14 22:29:05 +00:00
QString _ret = QGraphicsItemAnimation : : trUtf8 ( s , c ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00: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 04:08:24 +00:00
}
2024-10-18 23:53:33 +00:00
struct miqt_string QGraphicsItemAnimation_TrUtf83 ( const char * s , const char * c , int n ) {
2024-09-14 22:29:05 +00:00
QString _ret = QGraphicsItemAnimation : : trUtf8 ( s , c , static_cast < int > ( n ) ) ;
2024-08-25 04:08:24 +00:00
// Convert QString from UTF-16 in C++ RAII memory to UTF-8 in manually-managed C memory
2024-09-14 22:29:05 +00:00
QByteArray _b = _ret . toUtf8 ( ) ;
2024-10-18 23:53:33 +00: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 04:08:24 +00:00
}
2024-11-19 06:29:06 +00:00
void QGraphicsItemAnimation_override_virtual_BeforeAnimationStep ( void * self , intptr_t slot ) {
dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( ( QGraphicsItemAnimation * ) ( self ) ) - > handle__BeforeAnimationStep = slot ;
}
void QGraphicsItemAnimation_virtualbase_BeforeAnimationStep ( void * self , double step ) {
( ( MiqtVirtualQGraphicsItemAnimation * ) ( self ) ) - > virtualbase_BeforeAnimationStep ( step ) ;
}
void QGraphicsItemAnimation_override_virtual_AfterAnimationStep ( void * self , intptr_t slot ) {
dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( ( QGraphicsItemAnimation * ) ( self ) ) - > handle__AfterAnimationStep = slot ;
}
void QGraphicsItemAnimation_virtualbase_AfterAnimationStep ( void * self , double step ) {
( ( MiqtVirtualQGraphicsItemAnimation * ) ( self ) ) - > virtualbase_AfterAnimationStep ( step ) ;
}
void QGraphicsItemAnimation_override_virtual_Event ( void * self , intptr_t slot ) {
dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( ( QGraphicsItemAnimation * ) ( self ) ) - > handle__Event = slot ;
}
bool QGraphicsItemAnimation_virtualbase_Event ( void * self , QEvent * event ) {
return ( ( MiqtVirtualQGraphicsItemAnimation * ) ( self ) ) - > virtualbase_Event ( event ) ;
}
void QGraphicsItemAnimation_override_virtual_EventFilter ( void * self , intptr_t slot ) {
dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( ( QGraphicsItemAnimation * ) ( self ) ) - > handle__EventFilter = slot ;
}
bool QGraphicsItemAnimation_virtualbase_EventFilter ( void * self , QObject * watched , QEvent * event ) {
return ( ( MiqtVirtualQGraphicsItemAnimation * ) ( self ) ) - > virtualbase_EventFilter ( watched , event ) ;
}
void QGraphicsItemAnimation_override_virtual_TimerEvent ( void * self , intptr_t slot ) {
dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( ( QGraphicsItemAnimation * ) ( self ) ) - > handle__TimerEvent = slot ;
}
void QGraphicsItemAnimation_virtualbase_TimerEvent ( void * self , QTimerEvent * event ) {
( ( MiqtVirtualQGraphicsItemAnimation * ) ( self ) ) - > virtualbase_TimerEvent ( event ) ;
}
void QGraphicsItemAnimation_override_virtual_ChildEvent ( void * self , intptr_t slot ) {
dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( ( QGraphicsItemAnimation * ) ( self ) ) - > handle__ChildEvent = slot ;
}
void QGraphicsItemAnimation_virtualbase_ChildEvent ( void * self , QChildEvent * event ) {
( ( MiqtVirtualQGraphicsItemAnimation * ) ( self ) ) - > virtualbase_ChildEvent ( event ) ;
}
void QGraphicsItemAnimation_override_virtual_CustomEvent ( void * self , intptr_t slot ) {
dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( ( QGraphicsItemAnimation * ) ( self ) ) - > handle__CustomEvent = slot ;
}
void QGraphicsItemAnimation_virtualbase_CustomEvent ( void * self , QEvent * event ) {
( ( MiqtVirtualQGraphicsItemAnimation * ) ( self ) ) - > virtualbase_CustomEvent ( event ) ;
}
void QGraphicsItemAnimation_override_virtual_ConnectNotify ( void * self , intptr_t slot ) {
dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( ( QGraphicsItemAnimation * ) ( self ) ) - > handle__ConnectNotify = slot ;
}
void QGraphicsItemAnimation_virtualbase_ConnectNotify ( void * self , QMetaMethod * signal ) {
( ( MiqtVirtualQGraphicsItemAnimation * ) ( self ) ) - > virtualbase_ConnectNotify ( signal ) ;
}
void QGraphicsItemAnimation_override_virtual_DisconnectNotify ( void * self , intptr_t slot ) {
dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( ( QGraphicsItemAnimation * ) ( self ) ) - > handle__DisconnectNotify = slot ;
}
void QGraphicsItemAnimation_virtualbase_DisconnectNotify ( void * self , QMetaMethod * signal ) {
( ( MiqtVirtualQGraphicsItemAnimation * ) ( self ) ) - > virtualbase_DisconnectNotify ( signal ) ;
}
void QGraphicsItemAnimation_Delete ( QGraphicsItemAnimation * self , bool isSubclass ) {
if ( isSubclass ) {
delete dynamic_cast < MiqtVirtualQGraphicsItemAnimation * > ( self ) ;
} else {
delete self ;
}
2024-08-25 04:08:24 +00:00
}