2024-08-25 04:08:24 +00:00
|
|
|
#include <QScrollerProperties>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QVariant>
|
|
|
|
#include "qscrollerproperties.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qscrollerproperties.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
extern void miqt_exec_callback(void* cb, int argc, void* argv);
|
|
|
|
}
|
|
|
|
|
|
|
|
QScrollerProperties* QScrollerProperties_new() {
|
|
|
|
return new QScrollerProperties();
|
|
|
|
}
|
|
|
|
|
|
|
|
QScrollerProperties* QScrollerProperties_new2(QScrollerProperties* sp) {
|
|
|
|
return new QScrollerProperties(*sp);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QScrollerProperties_OperatorAssign(QScrollerProperties* self, QScrollerProperties* sp) {
|
|
|
|
self->operator=(*sp);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QScrollerProperties_OperatorEqual(QScrollerProperties* self, QScrollerProperties* sp) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QScrollerProperties*>(self)->operator==(*sp);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QScrollerProperties_OperatorNotEqual(QScrollerProperties* self, QScrollerProperties* sp) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QScrollerProperties*>(self)->operator!=(*sp);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QScrollerProperties_SetDefaultScrollerProperties(QScrollerProperties* sp) {
|
|
|
|
QScrollerProperties::setDefaultScrollerProperties(*sp);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QScrollerProperties_UnsetDefaultScrollerProperties() {
|
|
|
|
QScrollerProperties::unsetDefaultScrollerProperties();
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QVariant* QScrollerProperties_ScrollMetric(QScrollerProperties* self, uintptr_t metric) {
|
|
|
|
QVariant ret = const_cast<const QScrollerProperties*>(self)->scrollMetric(static_cast<QScrollerProperties::ScrollMetric>(metric));
|
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QVariant*>(new QVariant(ret));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QScrollerProperties_SetScrollMetric(QScrollerProperties* self, uintptr_t metric, QVariant* value) {
|
|
|
|
self->setScrollMetric(static_cast<QScrollerProperties::ScrollMetric>(metric), *value);
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QScrollerProperties_Delete(QScrollerProperties* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|