miqt/qt/gen_qtreewidgetitemiterator.cpp

64 lines
2.2 KiB
C++
Raw Normal View History

#include "gen_qtreewidgetitemiterator.h"
#include "qtreewidgetitemiterator.h"
#include <QTreeWidgetItem>
#include <QTreeWidgetItemIterator>
extern "C" {
extern void miqt_exec_callback(void* cb, int argc, void* argv);
}
QTreeWidgetItemIterator* QTreeWidgetItemIterator_new(QTreeWidgetItemIterator* it) {
return new QTreeWidgetItemIterator(*it);
}
void QTreeWidgetItemIterator_OperatorAssign(QTreeWidgetItemIterator* self, QTreeWidgetItemIterator* it) {
self->operator=(*it);
}
QTreeWidgetItemIterator* QTreeWidgetItemIterator_OperatorPlusPlus(QTreeWidgetItemIterator* self) {
QTreeWidgetItemIterator& ret = self->operator++();
// Cast returned reference into pointer
return &ret;
}
QTreeWidgetItemIterator* QTreeWidgetItemIterator_OperatorPlusPlusWithInt(QTreeWidgetItemIterator* self, int param1) {
QTreeWidgetItemIterator ret = self->operator++(static_cast<int>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTreeWidgetItemIterator*>(new QTreeWidgetItemIterator(ret));
}
QTreeWidgetItemIterator* QTreeWidgetItemIterator_OperatorPlusAssign(QTreeWidgetItemIterator* self, int n) {
QTreeWidgetItemIterator& ret = self->operator+=(static_cast<int>(n));
// Cast returned reference into pointer
return &ret;
}
QTreeWidgetItemIterator* QTreeWidgetItemIterator_OperatorMinusMinus(QTreeWidgetItemIterator* self) {
QTreeWidgetItemIterator& ret = self->operator--();
// Cast returned reference into pointer
return &ret;
}
QTreeWidgetItemIterator* QTreeWidgetItemIterator_OperatorMinusMinusWithInt(QTreeWidgetItemIterator* self, int param1) {
QTreeWidgetItemIterator ret = self->operator--(static_cast<int>(param1));
// Copy-construct value returned type into heap-allocated copy
return static_cast<QTreeWidgetItemIterator*>(new QTreeWidgetItemIterator(ret));
}
QTreeWidgetItemIterator* QTreeWidgetItemIterator_OperatorMinusAssign(QTreeWidgetItemIterator* self, int n) {
QTreeWidgetItemIterator& ret = self->operator-=(static_cast<int>(n));
// Cast returned reference into pointer
return &ret;
}
QTreeWidgetItem* QTreeWidgetItemIterator_OperatorMultiply(QTreeWidgetItemIterator* self) {
return self->operator*();
}
void QTreeWidgetItemIterator_Delete(QTreeWidgetItemIterator* self) {
delete self;
}