#include #include #include #include #include #include #include #include #include #include #include "gen_qabstractscrollarea.h" #include "_cgo_export.h" QAbstractScrollArea* QAbstractScrollArea_new(QWidget* parent) { return new QAbstractScrollArea(parent); } QAbstractScrollArea* QAbstractScrollArea_new2() { return new QAbstractScrollArea(); } QMetaObject* QAbstractScrollArea_MetaObject(const QAbstractScrollArea* self) { return (QMetaObject*) self->metaObject(); } void* QAbstractScrollArea_Metacast(QAbstractScrollArea* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QAbstractScrollArea_Tr(const char* s) { QString _ret = QAbstractScrollArea::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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QAbstractScrollArea_TrUtf8(const char* s) { QString _ret = QAbstractScrollArea::trUtf8(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } int QAbstractScrollArea_VerticalScrollBarPolicy(const QAbstractScrollArea* self) { Qt::ScrollBarPolicy _ret = self->verticalScrollBarPolicy(); return static_cast(_ret); } void QAbstractScrollArea_SetVerticalScrollBarPolicy(QAbstractScrollArea* self, int verticalScrollBarPolicy) { self->setVerticalScrollBarPolicy(static_cast(verticalScrollBarPolicy)); } QScrollBar* QAbstractScrollArea_VerticalScrollBar(const QAbstractScrollArea* self) { return self->verticalScrollBar(); } void QAbstractScrollArea_SetVerticalScrollBar(QAbstractScrollArea* self, QScrollBar* scrollbar) { self->setVerticalScrollBar(scrollbar); } int QAbstractScrollArea_HorizontalScrollBarPolicy(const QAbstractScrollArea* self) { Qt::ScrollBarPolicy _ret = self->horizontalScrollBarPolicy(); return static_cast(_ret); } void QAbstractScrollArea_SetHorizontalScrollBarPolicy(QAbstractScrollArea* self, int horizontalScrollBarPolicy) { self->setHorizontalScrollBarPolicy(static_cast(horizontalScrollBarPolicy)); } QScrollBar* QAbstractScrollArea_HorizontalScrollBar(const QAbstractScrollArea* self) { return self->horizontalScrollBar(); } void QAbstractScrollArea_SetHorizontalScrollBar(QAbstractScrollArea* self, QScrollBar* scrollbar) { self->setHorizontalScrollBar(scrollbar); } QWidget* QAbstractScrollArea_CornerWidget(const QAbstractScrollArea* self) { return self->cornerWidget(); } void QAbstractScrollArea_SetCornerWidget(QAbstractScrollArea* self, QWidget* widget) { self->setCornerWidget(widget); } void QAbstractScrollArea_AddScrollBarWidget(QAbstractScrollArea* self, QWidget* widget, int alignment) { self->addScrollBarWidget(widget, static_cast(alignment)); } struct miqt_array* QAbstractScrollArea_ScrollBarWidgets(QAbstractScrollArea* self, int alignment) { QWidgetList _ret = self->scrollBarWidgets(static_cast(alignment)); // Convert QList<> from C++ memory to manually-managed C memory QWidget** _arr = static_cast(malloc(sizeof(QWidget*) * _ret.length())); for (size_t i = 0, e = _ret.length(); i < e; ++i) { _arr[i] = _ret[i]; } struct miqt_array* _out = static_cast(malloc(sizeof(struct miqt_array))); _out->len = _ret.length(); _out->data = static_cast(_arr); return _out; } QWidget* QAbstractScrollArea_Viewport(const QAbstractScrollArea* self) { return self->viewport(); } void QAbstractScrollArea_SetViewport(QAbstractScrollArea* self, QWidget* widget) { self->setViewport(widget); } QSize* QAbstractScrollArea_MaximumViewportSize(const QAbstractScrollArea* self) { return new QSize(self->maximumViewportSize()); } QSize* QAbstractScrollArea_MinimumSizeHint(const QAbstractScrollArea* self) { return new QSize(self->minimumSizeHint()); } QSize* QAbstractScrollArea_SizeHint(const QAbstractScrollArea* self) { return new QSize(self->sizeHint()); } void QAbstractScrollArea_SetupViewport(QAbstractScrollArea* self, QWidget* viewport) { self->setupViewport(viewport); } int QAbstractScrollArea_SizeAdjustPolicy(const QAbstractScrollArea* self) { QAbstractScrollArea::SizeAdjustPolicy _ret = self->sizeAdjustPolicy(); return static_cast(_ret); } void QAbstractScrollArea_SetSizeAdjustPolicy(QAbstractScrollArea* self, int policy) { self->setSizeAdjustPolicy(static_cast(policy)); } struct miqt_string QAbstractScrollArea_Tr2(const char* s, const char* c) { QString _ret = QAbstractScrollArea::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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QAbstractScrollArea_Tr3(const char* s, const char* c, int n) { QString _ret = QAbstractScrollArea::tr(s, c, static_cast(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QAbstractScrollArea_TrUtf82(const char* s, const char* c) { QString _ret = QAbstractScrollArea::trUtf8(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } struct miqt_string QAbstractScrollArea_TrUtf83(const char* s, const char* c, int n) { QString _ret = QAbstractScrollArea::trUtf8(s, c, static_cast(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(malloc(_ms.len)); memcpy(_ms.data, _b.data(), _ms.len); return _ms; } void QAbstractScrollArea_Delete(QAbstractScrollArea* self) { delete self; }