2024-08-25 04:08:24 +00:00
|
|
|
#include <QScrollerProperties>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QVariant>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qscrollerproperties.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qscrollerproperties.h"
|
2024-12-11 06:55:47 +00:00
|
|
|
|
|
|
|
#ifndef _Bool
|
|
|
|
#define _Bool bool
|
|
|
|
#endif
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QScrollerProperties* QScrollerProperties_new() {
|
|
|
|
return new QScrollerProperties();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-12-07 04:15:57 +00:00
|
|
|
QScrollerProperties* QScrollerProperties_new2(QScrollerProperties* sp) {
|
|
|
|
return new QScrollerProperties(*sp);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QScrollerProperties_OperatorAssign(QScrollerProperties* self, QScrollerProperties* sp) {
|
|
|
|
self->operator=(*sp);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QScrollerProperties_OperatorEqual(const QScrollerProperties* self, QScrollerProperties* sp) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self == *sp);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QScrollerProperties_OperatorNotEqual(const QScrollerProperties* self, QScrollerProperties* sp) {
|
2024-11-22 06:06:01 +00:00
|
|
|
return (*self != *sp);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QScrollerProperties_SetDefaultScrollerProperties(QScrollerProperties* sp) {
|
|
|
|
QScrollerProperties::setDefaultScrollerProperties(*sp);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QScrollerProperties_UnsetDefaultScrollerProperties() {
|
|
|
|
QScrollerProperties::unsetDefaultScrollerProperties();
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
QVariant* QScrollerProperties_ScrollMetric(const QScrollerProperties* self, int metric) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QVariant(self->scrollMetric(static_cast<QScrollerProperties::ScrollMetric>(metric)));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +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;
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|