2024-10-20 18:21:03 +13:00
|
|
|
#include <QMarginsF>
|
|
|
|
#include <QPageLayout>
|
|
|
|
#include <QPageRanges>
|
|
|
|
#include <QPageSize>
|
|
|
|
#include <QPagedPaintDevice>
|
2024-11-19 19:29:06 +13:00
|
|
|
#include <QPaintDevice>
|
2024-10-20 18:21:03 +13:00
|
|
|
#include <qpagedpaintdevice.h>
|
|
|
|
#include "gen_qpagedpaintdevice.h"
|
2024-12-11 19:55:47 +13:00
|
|
|
|
2025-01-07 11:30:33 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
2024-12-11 19:55:47 +13:00
|
|
|
#endif
|
2024-10-20 18:21:03 +13:00
|
|
|
|
2024-12-07 17:15:57 +13:00
|
|
|
void QPagedPaintDevice_virtbase(QPagedPaintDevice* src, QPaintDevice** outptr_QPaintDevice) {
|
|
|
|
*outptr_QPaintDevice = static_cast<QPaintDevice*>(src);
|
|
|
|
}
|
|
|
|
|
2024-10-20 18:21:03 +13: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);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool QPagedPaintDevice_SetPageOrientation(QPagedPaintDevice* self, int orientation) {
|
|
|
|
return self->setPageOrientation(static_cast<QPageLayout::Orientation>(orientation));
|
|
|
|
}
|
|
|
|
|
2024-11-19 19:29:06 +13:00
|
|
|
bool QPagedPaintDevice_SetPageMargins(QPagedPaintDevice* self, QMarginsF* margins, int units) {
|
|
|
|
return self->setPageMargins(*margins, static_cast<QPageLayout::Unit>(units));
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|
|
|
|
QPageLayout* QPagedPaintDevice_PageLayout(const QPagedPaintDevice* self) {
|
|
|
|
return new QPageLayout(self->pageLayout());
|
|
|
|
}
|
|
|
|
|
|
|
|
void QPagedPaintDevice_SetPageRanges(QPagedPaintDevice* self, QPageRanges* ranges) {
|
|
|
|
self->setPageRanges(*ranges);
|
|
|
|
}
|
|
|
|
|
|
|
|
QPageRanges* QPagedPaintDevice_PageRanges(const QPagedPaintDevice* self) {
|
|
|
|
return new QPageRanges(self->pageRanges());
|
|
|
|
}
|
|
|
|
|
2025-01-18 17:42:41 +13:00
|
|
|
void QPagedPaintDevice_Delete(QPagedPaintDevice* self) {
|
|
|
|
delete self;
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|