miqt/qt6/printsupport/gen_qprintengine.cpp

47 lines
1.1 KiB
C++
Raw Normal View History

2024-10-16 18:08:07 +13:00
#include <QPrintEngine>
#include <QVariant>
#include <qprintengine.h>
#include "gen_qprintengine.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
2024-10-16 18:08:07 +13:00
2025-02-01 13:45:16 +13:00
void QPrintEngine_setProperty(QPrintEngine* self, int key, QVariant* value) {
2024-10-16 18:08:07 +13:00
self->setProperty(static_cast<QPrintEngine::PrintEnginePropertyKey>(key), *value);
}
2025-02-01 13:45:16 +13:00
QVariant* QPrintEngine_property(const QPrintEngine* self, int key) {
2024-10-16 18:08:07 +13:00
return new QVariant(self->property(static_cast<QPrintEngine::PrintEnginePropertyKey>(key)));
}
2025-02-01 13:45:16 +13:00
bool QPrintEngine_newPage(QPrintEngine* self) {
2024-10-16 18:08:07 +13:00
return self->newPage();
}
2025-02-01 13:45:16 +13:00
bool QPrintEngine_abort(QPrintEngine* self) {
2024-10-16 18:08:07 +13:00
return self->abort();
}
2025-02-01 13:45:16 +13:00
int QPrintEngine_metric(const QPrintEngine* self, int param1) {
2024-10-16 18:08:07 +13:00
return self->metric(static_cast<QPaintDevice::PaintDeviceMetric>(param1));
}
2025-02-01 13:45:16 +13:00
int QPrintEngine_printerState(const QPrintEngine* self) {
2024-10-16 18:08:07 +13:00
QPrinter::PrinterState _ret = self->printerState();
return static_cast<int>(_ret);
}
2025-02-01 13:45:16 +13:00
void QPrintEngine_operatorAssign(QPrintEngine* self, QPrintEngine* param1) {
2024-10-16 18:08:07 +13:00
self->operator=(*param1);
}
2025-02-01 13:45:16 +13:00
void QPrintEngine_delete(QPrintEngine* self) {
delete self;
2024-10-16 18:08:07 +13:00
}