2024-08-25 04:08:24 +00:00
|
|
|
#include <QPaintDevice>
|
|
|
|
#include <QPaintEngine>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "qpaintdevice.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qpaintdevice.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
extern void miqt_exec_callback(void* cb, int argc, void* argv);
|
|
|
|
}
|
|
|
|
|
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) {
|
|
|
|
return self->devicePixelRatioF();
|
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() {
|
|
|
|
return QPaintDevice::devicePixelRatioFScale();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QPaintDevice_Delete(QPaintDevice* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|