2024-10-16 05:08:07 +00:00
|
|
|
#include <QPrintEngine>
|
|
|
|
#include <QVariant>
|
|
|
|
#include <qprintengine.h>
|
|
|
|
#include "gen_qprintengine.h"
|
2024-12-11 06:55:47 +00:00
|
|
|
|
|
|
|
#ifndef _Bool
|
|
|
|
#define _Bool bool
|
|
|
|
#endif
|
2024-10-16 05:08:07 +00:00
|
|
|
#include "_cgo_export.h"
|
|
|
|
|
|
|
|
void QPrintEngine_SetProperty(QPrintEngine* self, int key, QVariant* value) {
|
|
|
|
self->setProperty(static_cast<QPrintEngine::PrintEnginePropertyKey>(key), *value);
|
|
|
|
}
|
|
|
|
|
|
|
|
QVariant* QPrintEngine_Property(const QPrintEngine* self, int key) {
|
|
|
|
return new QVariant(self->property(static_cast<QPrintEngine::PrintEnginePropertyKey>(key)));
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QPrintEngine_NewPage(QPrintEngine* self) {
|
|
|
|
return self->newPage();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QPrintEngine_Abort(QPrintEngine* self) {
|
|
|
|
return self->abort();
|
|
|
|
}
|
|
|
|
|
|
|
|
int QPrintEngine_Metric(const QPrintEngine* self, int param1) {
|
|
|
|
return self->metric(static_cast<QPaintDevice::PaintDeviceMetric>(param1));
|
|
|
|
}
|
|
|
|
|
|
|
|
int QPrintEngine_PrinterState(const QPrintEngine* self) {
|
|
|
|
QPrinter::PrinterState _ret = self->printerState();
|
|
|
|
return static_cast<int>(_ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QPrintEngine_OperatorAssign(QPrintEngine* self, QPrintEngine* param1) {
|
|
|
|
self->operator=(*param1);
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QPrintEngine_Delete(QPrintEngine* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QPrintEngine*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-10-16 05:08:07 +00:00
|
|
|
}
|
|
|
|
|