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);
|
|
|
|
}
|
|
|
|
|
|
|
|
int QPaintDevice_DevType(QPaintDevice* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPaintDevice*>(self)->devType();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QPaintDevice_PaintingActive(QPaintDevice* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPaintDevice*>(self)->paintingActive();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QPaintEngine* QPaintDevice_PaintEngine(QPaintDevice* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPaintDevice*>(self)->paintEngine();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int QPaintDevice_Width(QPaintDevice* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPaintDevice*>(self)->width();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int QPaintDevice_Height(QPaintDevice* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPaintDevice*>(self)->height();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int QPaintDevice_WidthMM(QPaintDevice* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPaintDevice*>(self)->widthMM();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int QPaintDevice_HeightMM(QPaintDevice* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPaintDevice*>(self)->heightMM();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int QPaintDevice_LogicalDpiX(QPaintDevice* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPaintDevice*>(self)->logicalDpiX();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int QPaintDevice_LogicalDpiY(QPaintDevice* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPaintDevice*>(self)->logicalDpiY();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int QPaintDevice_PhysicalDpiX(QPaintDevice* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPaintDevice*>(self)->physicalDpiX();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int QPaintDevice_PhysicalDpiY(QPaintDevice* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPaintDevice*>(self)->physicalDpiY();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int QPaintDevice_DevicePixelRatio(QPaintDevice* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPaintDevice*>(self)->devicePixelRatio();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
double QPaintDevice_DevicePixelRatioF(QPaintDevice* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPaintDevice*>(self)->devicePixelRatioF();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int QPaintDevice_ColorCount(QPaintDevice* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPaintDevice*>(self)->colorCount();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int QPaintDevice_Depth(QPaintDevice* self) {
|
2024-08-29 07:01:51 +00:00
|
|
|
return const_cast<const QPaintDevice*>(self)->depth();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
double QPaintDevice_DevicePixelRatioFScale() {
|
|
|
|
return QPaintDevice::devicePixelRatioFScale();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QPaintDevice_Delete(QPaintDevice* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|