miqt/qt6/gen_qpaintdevice.cpp

87 lines
1.8 KiB
C++
Raw Normal View History

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"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#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) {
delete self;
2024-10-20 18:21:03 +13:00
}