2024-10-20 18:21:03 +13:00
|
|
|
#include <QPaintDevice>
|
|
|
|
#include <QPaintEngine>
|
2024-11-19 19:29:06 +13:00
|
|
|
#include <QPainter>
|
|
|
|
#include <QPoint>
|
2024-10-20 18:21:03 +13:00
|
|
|
#include <qpaintdevice.h>
|
|
|
|
#include "gen_qpaintdevice.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
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QPaintDevice_devType(const QPaintDevice* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->devType();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
bool QPaintDevice_paintingActive(const QPaintDevice* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->paintingActive();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
QPaintEngine* QPaintDevice_paintEngine(const QPaintDevice* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->paintEngine();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QPaintDevice_width(const QPaintDevice* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->width();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QPaintDevice_height(const QPaintDevice* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->height();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QPaintDevice_widthMM(const QPaintDevice* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->widthMM();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QPaintDevice_heightMM(const QPaintDevice* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->heightMM();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QPaintDevice_logicalDpiX(const QPaintDevice* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->logicalDpiX();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QPaintDevice_logicalDpiY(const QPaintDevice* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->logicalDpiY();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QPaintDevice_physicalDpiX(const QPaintDevice* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->physicalDpiX();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QPaintDevice_physicalDpiY(const QPaintDevice* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->physicalDpiY();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
double QPaintDevice_devicePixelRatio(const QPaintDevice* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
qreal _ret = self->devicePixelRatio();
|
|
|
|
return static_cast<double>(_ret);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
double QPaintDevice_devicePixelRatioF(const QPaintDevice* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
qreal _ret = self->devicePixelRatioF();
|
|
|
|
return static_cast<double>(_ret);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QPaintDevice_colorCount(const QPaintDevice* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->colorCount();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
int QPaintDevice_depth(const QPaintDevice* self) {
|
2024-10-20 18:21:03 +13:00
|
|
|
return self->depth();
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
double QPaintDevice_devicePixelRatioFScale() {
|
2024-10-20 18:21:03 +13:00
|
|
|
qreal _ret = QPaintDevice::devicePixelRatioFScale();
|
|
|
|
return static_cast<double>(_ret);
|
|
|
|
}
|
|
|
|
|
2025-02-01 13:45:16 +13:00
|
|
|
void QPaintDevice_delete(QPaintDevice* self) {
|
2025-01-18 17:42:41 +13:00
|
|
|
delete self;
|
2024-10-20 18:21:03 +13:00
|
|
|
}
|
|
|
|
|