2024-08-25 04:08:24 +00:00
|
|
|
#include <QMarginsF>
|
|
|
|
#include <QPageLayout>
|
|
|
|
#include <QPageSize>
|
|
|
|
#include <QPagedPaintDevice>
|
2024-08-29 07:01:51 +00:00
|
|
|
#define WORKAROUND_INNER_CLASS_DEFINITION_QPagedPaintDevice__Margins
|
2024-11-19 06:29:06 +00:00
|
|
|
#include <QPaintDevice>
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QSizeF>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qpagedpaintdevice.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qpagedpaintdevice.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
bool QPagedPaintDevice_NewPage(QPagedPaintDevice* self) {
|
|
|
|
return self->newPage();
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QPagedPaintDevice_SetPageLayout(QPagedPaintDevice* self, QPageLayout* pageLayout) {
|
|
|
|
return self->setPageLayout(*pageLayout);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QPagedPaintDevice_SetPageSize(QPagedPaintDevice* self, QPageSize* pageSize) {
|
|
|
|
return self->setPageSize(*pageSize);
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
bool QPagedPaintDevice_SetPageOrientation(QPagedPaintDevice* self, int orientation) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return self->setPageOrientation(static_cast<QPageLayout::Orientation>(orientation));
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
bool QPagedPaintDevice_SetPageMargins(QPagedPaintDevice* self, QMarginsF* margins) {
|
|
|
|
return self->setPageMargins(*margins);
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
bool QPagedPaintDevice_SetPageMargins2(QPagedPaintDevice* self, QMarginsF* margins, int units) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return self->setPageMargins(*margins, static_cast<QPageLayout::Unit>(units));
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QPageLayout* QPagedPaintDevice_PageLayout(const QPagedPaintDevice* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QPageLayout(self->pageLayout());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QPagedPaintDevice_SetPageSizeWithSize(QPagedPaintDevice* self, int size) {
|
2024-08-29 07:01:51 +00:00
|
|
|
self->setPageSize(static_cast<QPagedPaintDevice::PageSize>(size));
|
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
int QPagedPaintDevice_PageSize(const QPagedPaintDevice* self) {
|
2024-09-14 22:29:05 +00:00
|
|
|
QPagedPaintDevice::PageSize _ret = self->pageSize();
|
2024-09-18 00:12:02 +00:00
|
|
|
return static_cast<int>(_ret);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPagedPaintDevice_SetPageSizeMM(QPagedPaintDevice* self, QSizeF* size) {
|
|
|
|
self->setPageSizeMM(*size);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSizeF* QPagedPaintDevice_PageSizeMM(const QPagedPaintDevice* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSizeF(self->pageSizeMM());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QPagedPaintDevice_SetMargins(QPagedPaintDevice* self, QPagedPaintDevice__Margins* margins) {
|
|
|
|
self->setMargins(*margins);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QPagedPaintDevice__Margins* QPagedPaintDevice_Margins(const QPagedPaintDevice* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QPagedPaintDevice::Margins(self->margins());
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QPagedPaintDevice_Delete(QPagedPaintDevice* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QPagedPaintDevice*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QPagedPaintDevice__Margins_Delete(QPagedPaintDevice__Margins* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QPagedPaintDevice::Margins*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|