mirror of
https://github.com/mappu/miqt.git
synced 2025-01-21 22:20:38 +00:00
a0c6344ecd
The expected type of the callback is already known from the AST - this change reduces dependency on cgo specifics and makes the generated C ABI entirely cgo-independent - in particular, there is no need to include `_cgo_export.h` any more.
69 lines
2.4 KiB
C++
69 lines
2.4 KiB
C++
#include <QPoint>
|
|
#define WORKAROUND_INNER_CLASS_DEFINITION_QTest__QTouchEventSequence
|
|
#include <QWindow>
|
|
#include <qtestsupport_gui.h>
|
|
#include "gen_qtestsupport_gui.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
QTest__QTouchEventSequence* QTest__QTouchEventSequence_Press(QTest__QTouchEventSequence* self, int touchId, QPoint* pt) {
|
|
QTest::QTouchEventSequence& _ret = self->press(static_cast<int>(touchId), *pt);
|
|
// Cast returned reference into pointer
|
|
return &_ret;
|
|
}
|
|
|
|
QTest__QTouchEventSequence* QTest__QTouchEventSequence_Move(QTest__QTouchEventSequence* self, int touchId, QPoint* pt) {
|
|
QTest::QTouchEventSequence& _ret = self->move(static_cast<int>(touchId), *pt);
|
|
// Cast returned reference into pointer
|
|
return &_ret;
|
|
}
|
|
|
|
QTest__QTouchEventSequence* QTest__QTouchEventSequence_Release(QTest__QTouchEventSequence* self, int touchId, QPoint* pt) {
|
|
QTest::QTouchEventSequence& _ret = self->release(static_cast<int>(touchId), *pt);
|
|
// Cast returned reference into pointer
|
|
return &_ret;
|
|
}
|
|
|
|
QTest__QTouchEventSequence* QTest__QTouchEventSequence_Stationary(QTest__QTouchEventSequence* self, int touchId) {
|
|
QTest::QTouchEventSequence& _ret = self->stationary(static_cast<int>(touchId));
|
|
// Cast returned reference into pointer
|
|
return &_ret;
|
|
}
|
|
|
|
bool QTest__QTouchEventSequence_Commit(QTest__QTouchEventSequence* self, bool processEvents) {
|
|
return self->commit(processEvents);
|
|
}
|
|
|
|
QTest__QTouchEventSequence* QTest__QTouchEventSequence_Press3(QTest__QTouchEventSequence* self, int touchId, QPoint* pt, QWindow* window) {
|
|
QTest::QTouchEventSequence& _ret = self->press(static_cast<int>(touchId), *pt, window);
|
|
// Cast returned reference into pointer
|
|
return &_ret;
|
|
}
|
|
|
|
QTest__QTouchEventSequence* QTest__QTouchEventSequence_Move3(QTest__QTouchEventSequence* self, int touchId, QPoint* pt, QWindow* window) {
|
|
QTest::QTouchEventSequence& _ret = self->move(static_cast<int>(touchId), *pt, window);
|
|
// Cast returned reference into pointer
|
|
return &_ret;
|
|
}
|
|
|
|
QTest__QTouchEventSequence* QTest__QTouchEventSequence_Release3(QTest__QTouchEventSequence* self, int touchId, QPoint* pt, QWindow* window) {
|
|
QTest::QTouchEventSequence& _ret = self->release(static_cast<int>(touchId), *pt, window);
|
|
// Cast returned reference into pointer
|
|
return &_ret;
|
|
}
|
|
|
|
void QTest__QTouchEventSequence_Delete(QTest__QTouchEventSequence* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QTest::QTouchEventSequence*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|