#include #include #include #include "gen_qprintengine.h" #ifndef _Bool #define _Bool bool #endif #include "_cgo_export.h" void QPrintEngine_SetProperty(QPrintEngine* self, int key, QVariant* value) { self->setProperty(static_cast(key), *value); } QVariant* QPrintEngine_Property(const QPrintEngine* self, int key) { return new QVariant(self->property(static_cast(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(param1)); } int QPrintEngine_PrinterState(const QPrintEngine* self) { QPrinter::PrinterState _ret = self->printerState(); return static_cast(_ret); } void QPrintEngine_OperatorAssign(QPrintEngine* self, QPrintEngine* param1) { self->operator=(*param1); } void QPrintEngine_Delete(QPrintEngine* self, bool isSubclass) { if (isSubclass) { delete dynamic_cast( self ); } else { delete self; } }