#include #include #include #include #include #include #include #include "gen_qabstractslider.h" #include "_cgo_export.h" QAbstractSlider* QAbstractSlider_new(QWidget* parent) { return new QAbstractSlider(parent); } QAbstractSlider* QAbstractSlider_new2() { return new QAbstractSlider(); } QMetaObject* QAbstractSlider_MetaObject(const QAbstractSlider* self) { return (QMetaObject*) self->metaObject(); } void* QAbstractSlider_Metacast(QAbstractSlider* self, const char* param1) { return self->qt_metacast(param1); } struct miqt_string QAbstractSlider_Tr(const char* s) { QString _ret = QAbstractSlider::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; } int QAbstractSlider_Orientation(const QAbstractSlider* self) { Qt::Orientation _ret = self->orientation(); return static_cast(_ret); } void QAbstractSlider_SetMinimum(QAbstractSlider* self, int minimum) { self->setMinimum(static_cast(minimum)); } int QAbstractSlider_Minimum(const QAbstractSlider* self) { return self->minimum(); } void QAbstractSlider_SetMaximum(QAbstractSlider* self, int maximum) { self->setMaximum(static_cast(maximum)); } int QAbstractSlider_Maximum(const QAbstractSlider* self) { return self->maximum(); } void QAbstractSlider_SetSingleStep(QAbstractSlider* self, int singleStep) { self->setSingleStep(static_cast(singleStep)); } int QAbstractSlider_SingleStep(const QAbstractSlider* self) { return self->singleStep(); } void QAbstractSlider_SetPageStep(QAbstractSlider* self, int pageStep) { self->setPageStep(static_cast(pageStep)); } int QAbstractSlider_PageStep(const QAbstractSlider* self) { return self->pageStep(); } void QAbstractSlider_SetTracking(QAbstractSlider* self, bool enable) { self->setTracking(enable); } bool QAbstractSlider_HasTracking(const QAbstractSlider* self) { return self->hasTracking(); } void QAbstractSlider_SetSliderDown(QAbstractSlider* self, bool sliderDown) { self->setSliderDown(sliderDown); } bool QAbstractSlider_IsSliderDown(const QAbstractSlider* self) { return self->isSliderDown(); } void QAbstractSlider_SetSliderPosition(QAbstractSlider* self, int sliderPosition) { self->setSliderPosition(static_cast(sliderPosition)); } int QAbstractSlider_SliderPosition(const QAbstractSlider* self) { return self->sliderPosition(); } void QAbstractSlider_SetInvertedAppearance(QAbstractSlider* self, bool invertedAppearance) { self->setInvertedAppearance(invertedAppearance); } bool QAbstractSlider_InvertedAppearance(const QAbstractSlider* self) { return self->invertedAppearance(); } void QAbstractSlider_SetInvertedControls(QAbstractSlider* self, bool invertedControls) { self->setInvertedControls(invertedControls); } bool QAbstractSlider_InvertedControls(const QAbstractSlider* self) { return self->invertedControls(); } int QAbstractSlider_Value(const QAbstractSlider* self) { return self->value(); } void QAbstractSlider_TriggerAction(QAbstractSlider* self, int action) { self->triggerAction(static_cast(action)); } void QAbstractSlider_SetValue(QAbstractSlider* self, int value) { self->setValue(static_cast(value)); } void QAbstractSlider_SetOrientation(QAbstractSlider* self, int orientation) { self->setOrientation(static_cast(orientation)); } void QAbstractSlider_SetRange(QAbstractSlider* self, int min, int max) { self->setRange(static_cast(min), static_cast(max)); } void QAbstractSlider_ValueChanged(QAbstractSlider* self, int value) { self->valueChanged(static_cast(value)); } void QAbstractSlider_connect_ValueChanged(QAbstractSlider* self, intptr_t slot) { QAbstractSlider::connect(self, static_cast(&QAbstractSlider::valueChanged), self, [=](int value) { int sigval1 = value; miqt_exec_callback_QAbstractSlider_ValueChanged(slot, sigval1); }); } void QAbstractSlider_SliderPressed(QAbstractSlider* self) { self->sliderPressed(); } void QAbstractSlider_connect_SliderPressed(QAbstractSlider* self, intptr_t slot) { QAbstractSlider::connect(self, static_cast(&QAbstractSlider::sliderPressed), self, [=]() { miqt_exec_callback_QAbstractSlider_SliderPressed(slot); }); } void QAbstractSlider_SliderMoved(QAbstractSlider* self, int position) { self->sliderMoved(static_cast(position)); } void QAbstractSlider_connect_SliderMoved(QAbstractSlider* self, intptr_t slot) { QAbstractSlider::connect(self, static_cast(&QAbstractSlider::sliderMoved), self, [=](int position) { int sigval1 = position; miqt_exec_callback_QAbstractSlider_SliderMoved(slot, sigval1); }); } void QAbstractSlider_SliderReleased(QAbstractSlider* self) { self->sliderReleased(); } void QAbstractSlider_connect_SliderReleased(QAbstractSlider* self, intptr_t slot) { QAbstractSlider::connect(self, static_cast(&QAbstractSlider::sliderReleased), self, [=]() { miqt_exec_callback_QAbstractSlider_SliderReleased(slot); }); } void QAbstractSlider_RangeChanged(QAbstractSlider* self, int min, int max) { self->rangeChanged(static_cast(min), static_cast(max)); } void QAbstractSlider_connect_RangeChanged(QAbstractSlider* self, intptr_t slot) { QAbstractSlider::connect(self, static_cast(&QAbstractSlider::rangeChanged), self, [=](int min, int max) { int sigval1 = min; int sigval2 = max; miqt_exec_callback_QAbstractSlider_RangeChanged(slot, sigval1, sigval2); }); } void QAbstractSlider_ActionTriggered(QAbstractSlider* self, int action) { self->actionTriggered(static_cast(action)); } void QAbstractSlider_connect_ActionTriggered(QAbstractSlider* self, intptr_t slot) { QAbstractSlider::connect(self, static_cast(&QAbstractSlider::actionTriggered), self, [=](int action) { int sigval1 = action; miqt_exec_callback_QAbstractSlider_ActionTriggered(slot, sigval1); }); } struct miqt_string QAbstractSlider_Tr2(const char* s, const char* c) { QString _ret = QAbstractSlider::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 QAbstractSlider_Tr3(const char* s, const char* c, int n) { QString _ret = QAbstractSlider::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; } void QAbstractSlider_Delete(QAbstractSlider* self) { delete self; }