miqt/qt/gen_qscrollerproperties.cpp

55 lines
1.5 KiB
C++
Raw Normal View History

#include <QScrollerProperties>
2024-08-29 07:01:51 +00:00
#include <QVariant>
#include <qscrollerproperties.h>
2024-08-29 07:01:51 +00:00
#include "gen_qscrollerproperties.h"
#ifndef _Bool
#define _Bool bool
#endif
#include "_cgo_export.h"
2024-12-07 04:15:57 +00:00
QScrollerProperties* QScrollerProperties_new() {
return new QScrollerProperties();
}
2024-12-07 04:15:57 +00:00
QScrollerProperties* QScrollerProperties_new2(QScrollerProperties* sp) {
return new QScrollerProperties(*sp);
}
void QScrollerProperties_OperatorAssign(QScrollerProperties* self, QScrollerProperties* sp) {
self->operator=(*sp);
}
bool QScrollerProperties_OperatorEqual(const QScrollerProperties* self, QScrollerProperties* sp) {
return (*self == *sp);
}
bool QScrollerProperties_OperatorNotEqual(const QScrollerProperties* self, QScrollerProperties* sp) {
return (*self != *sp);
}
void QScrollerProperties_SetDefaultScrollerProperties(QScrollerProperties* sp) {
QScrollerProperties::setDefaultScrollerProperties(*sp);
}
void QScrollerProperties_UnsetDefaultScrollerProperties() {
QScrollerProperties::unsetDefaultScrollerProperties();
}
QVariant* QScrollerProperties_ScrollMetric(const QScrollerProperties* self, int metric) {
return new QVariant(self->scrollMetric(static_cast<QScrollerProperties::ScrollMetric>(metric)));
2024-08-29 07:01:51 +00:00
}
void QScrollerProperties_SetScrollMetric(QScrollerProperties* self, int metric, QVariant* value) {
2024-08-29 07:01:51 +00:00
self->setScrollMetric(static_cast<QScrollerProperties::ScrollMetric>(metric), *value);
}
2024-11-19 06:29:06 +00:00
void QScrollerProperties_Delete(QScrollerProperties* self, bool isSubclass) {
if (isSubclass) {
delete dynamic_cast<QScrollerProperties*>( self );
} else {
delete self;
}
}