miqt/qt6/gen_qpagedpaintdevice.cpp

58 lines
1.5 KiB
C++
Raw Normal View History

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"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#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);
}
2025-02-01 13:45:16 +13:00
bool QPagedPaintDevice_newPage(QPagedPaintDevice* self) {
2024-10-20 18:21:03 +13:00
return self->newPage();
}
2025-02-01 13:45:16 +13:00
bool QPagedPaintDevice_setPageLayout(QPagedPaintDevice* self, QPageLayout* pageLayout) {
2024-10-20 18:21:03 +13:00
return self->setPageLayout(*pageLayout);
}
2025-02-01 13:45:16 +13:00
bool QPagedPaintDevice_setPageSize(QPagedPaintDevice* self, QPageSize* pageSize) {
2024-10-20 18:21:03 +13:00
return self->setPageSize(*pageSize);
}
2025-02-01 13:45:16 +13:00
bool QPagedPaintDevice_setPageOrientation(QPagedPaintDevice* self, int orientation) {
2024-10-20 18:21:03 +13:00
return self->setPageOrientation(static_cast<QPageLayout::Orientation>(orientation));
}
2025-02-01 13:45:16 +13:00
bool QPagedPaintDevice_setPageMargins(QPagedPaintDevice* self, QMarginsF* margins, int units) {
2024-11-19 19:29:06 +13:00
return self->setPageMargins(*margins, static_cast<QPageLayout::Unit>(units));
2024-10-20 18:21:03 +13:00
}
2025-02-01 13:45:16 +13:00
QPageLayout* QPagedPaintDevice_pageLayout(const QPagedPaintDevice* self) {
2024-10-20 18:21:03 +13:00
return new QPageLayout(self->pageLayout());
}
2025-02-01 13:45:16 +13:00
void QPagedPaintDevice_setPageRanges(QPagedPaintDevice* self, QPageRanges* ranges) {
2024-10-20 18:21:03 +13:00
self->setPageRanges(*ranges);
}
2025-02-01 13:45:16 +13:00
QPageRanges* QPagedPaintDevice_pageRanges(const QPagedPaintDevice* self) {
2024-10-20 18:21:03 +13:00
return new QPageRanges(self->pageRanges());
}
2025-02-01 13:45:16 +13:00
void QPagedPaintDevice_delete(QPagedPaintDevice* self) {
delete self;
2024-10-20 18:21:03 +13:00
}