mirror of
https://github.com/mappu/miqt.git
synced 2025-01-20 21:50:38 +00:00
a0c6344ecd
The expected type of the callback is already known from the AST - this change reduces dependency on cgo specifics and makes the generated C ABI entirely cgo-independent - in particular, there is no need to include `_cgo_export.h` any more.
58 lines
1.6 KiB
C++
58 lines
1.6 KiB
C++
#include <QScrollerProperties>
|
|
#include <QVariant>
|
|
#include <qscrollerproperties.h>
|
|
#include "gen_qscrollerproperties.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
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(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)));
|
|
}
|
|
|
|
void QScrollerProperties_SetScrollMetric(QScrollerProperties* self, int metric, QVariant* value) {
|
|
self->setScrollMetric(static_cast<QScrollerProperties::ScrollMetric>(metric), *value);
|
|
}
|
|
|
|
void QScrollerProperties_Delete(QScrollerProperties* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QScrollerProperties*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|