2024-08-25 04:08:24 +00:00
|
|
|
#include <QPaintDevice>
|
|
|
|
#include <QPaintEngine>
|
2024-11-19 06:29:06 +00:00
|
|
|
#include <QPainter>
|
|
|
|
#include <QPoint>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qpaintdevice.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qpaintdevice.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QPaintDevice_DevType(const QPaintDevice* self) {
|
|
|
|
return self->devType();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QPaintDevice_PaintingActive(const QPaintDevice* self) {
|
|
|
|
return self->paintingActive();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QPaintEngine* QPaintDevice_PaintEngine(const QPaintDevice* self) {
|
|
|
|
return self->paintEngine();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QPaintDevice_Width(const QPaintDevice* self) {
|
|
|
|
return self->width();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QPaintDevice_Height(const QPaintDevice* self) {
|
|
|
|
return self->height();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QPaintDevice_WidthMM(const QPaintDevice* self) {
|
|
|
|
return self->widthMM();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QPaintDevice_HeightMM(const QPaintDevice* self) {
|
|
|
|
return self->heightMM();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QPaintDevice_LogicalDpiX(const QPaintDevice* self) {
|
|
|
|
return self->logicalDpiX();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QPaintDevice_LogicalDpiY(const QPaintDevice* self) {
|
|
|
|
return self->logicalDpiY();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QPaintDevice_PhysicalDpiX(const QPaintDevice* self) {
|
|
|
|
return self->physicalDpiX();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QPaintDevice_PhysicalDpiY(const QPaintDevice* self) {
|
|
|
|
return self->physicalDpiY();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QPaintDevice_DevicePixelRatio(const QPaintDevice* self) {
|
|
|
|
return self->devicePixelRatio();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
double QPaintDevice_DevicePixelRatioF(const QPaintDevice* self) {
|
2024-09-18 00:12:02 +00:00
|
|
|
qreal _ret = self->devicePixelRatioF();
|
|
|
|
return static_cast<double>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QPaintDevice_ColorCount(const QPaintDevice* self) {
|
|
|
|
return self->colorCount();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
int QPaintDevice_Depth(const QPaintDevice* self) {
|
|
|
|
return self->depth();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
double QPaintDevice_DevicePixelRatioFScale() {
|
2024-09-18 00:12:02 +00:00
|
|
|
qreal _ret = QPaintDevice::devicePixelRatioFScale();
|
|
|
|
return static_cast<double>(_ret);
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QPaintDevice_Delete(QPaintDevice* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QPaintDevice*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|