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-08-25 04:08:24 +00:00
|
|
|
#include <QSizeF>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "qpagedpaintdevice.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qpagedpaintdevice.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
extern void miqt_exec_callback(void* cb, int argc, void* argv);
|
|
|
|
}
|
|
|
|
|
|
|
|
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-08-29 07:01:51 +00:00
|
|
|
bool QPagedPaintDevice_SetPageOrientation(QPagedPaintDevice* self, uintptr_t orientation) {
|
|
|
|
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-08-29 07:01:51 +00:00
|
|
|
bool QPagedPaintDevice_SetPageMargins2(QPagedPaintDevice* self, QMarginsF* margins, uintptr_t units) {
|
|
|
|
return self->setPageMargins(*margins, static_cast<QPageLayout::Unit>(units));
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
QPageLayout* QPagedPaintDevice_PageLayout(QPagedPaintDevice* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QPageLayout ret = const_cast<const QPagedPaintDevice*>(self)->pageLayout();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QPageLayout*>(new QPageLayout(ret));
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QPagedPaintDevice_SetPageSizeWithSize(QPagedPaintDevice* self, uintptr_t size) {
|
|
|
|
self->setPageSize(static_cast<QPagedPaintDevice::PageSize>(size));
|
|
|
|
}
|
|
|
|
|
|
|
|
uintptr_t QPagedPaintDevice_PageSize(QPagedPaintDevice* self) {
|
|
|
|
QPagedPaintDevice::PageSize ret = const_cast<const QPagedPaintDevice*>(self)->pageSize();
|
|
|
|
return static_cast<uintptr_t>(ret);
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPagedPaintDevice_SetPageSizeMM(QPagedPaintDevice* self, QSizeF* size) {
|
|
|
|
self->setPageSizeMM(*size);
|
|
|
|
}
|
|
|
|
|
|
|
|
QSizeF* QPagedPaintDevice_PageSizeMM(QPagedPaintDevice* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
QSizeF ret = const_cast<const QPagedPaintDevice*>(self)->pageSizeMM();
|
2024-08-25 04:08:24 +00:00
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QSizeF*>(new QSizeF(ret));
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QPagedPaintDevice_SetMargins(QPagedPaintDevice* self, QPagedPaintDevice__Margins* margins) {
|
|
|
|
self->setMargins(*margins);
|
|
|
|
}
|
|
|
|
|
|
|
|
QPagedPaintDevice__Margins* QPagedPaintDevice_Margins(QPagedPaintDevice* self) {
|
|
|
|
QPagedPaintDevice::Margins ret = const_cast<const QPagedPaintDevice*>(self)->margins();
|
|
|
|
// Copy-construct value returned type into heap-allocated copy
|
|
|
|
return static_cast<QPagedPaintDevice::Margins*>(new QPagedPaintDevice::Margins(ret));
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPagedPaintDevice_Delete(QPagedPaintDevice* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QPagedPaintDevice__Margins_Delete(QPagedPaintDevice__Margins* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|