mirror of
https://github.com/mappu/miqt.git
synced 2025-01-20 21:50:38 +00:00
a0c6344ecd
The expected type of the callback is already known from the AST - this change reduces dependency on cgo specifics and makes the generated C ABI entirely cgo-independent - in particular, there is no need to include `_cgo_export.h` any more.
91 lines
1.9 KiB
C++
91 lines
1.9 KiB
C++
#include <QPaintDevice>
|
|
#include <QPaintEngine>
|
|
#include <QPainter>
|
|
#include <QPoint>
|
|
#include <qpaintdevice.h>
|
|
#include "gen_qpaintdevice.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
int QPaintDevice_DevType(const QPaintDevice* self) {
|
|
return self->devType();
|
|
}
|
|
|
|
bool QPaintDevice_PaintingActive(const QPaintDevice* self) {
|
|
return self->paintingActive();
|
|
}
|
|
|
|
QPaintEngine* QPaintDevice_PaintEngine(const QPaintDevice* self) {
|
|
return self->paintEngine();
|
|
}
|
|
|
|
int QPaintDevice_Width(const QPaintDevice* self) {
|
|
return self->width();
|
|
}
|
|
|
|
int QPaintDevice_Height(const QPaintDevice* self) {
|
|
return self->height();
|
|
}
|
|
|
|
int QPaintDevice_WidthMM(const QPaintDevice* self) {
|
|
return self->widthMM();
|
|
}
|
|
|
|
int QPaintDevice_HeightMM(const QPaintDevice* self) {
|
|
return self->heightMM();
|
|
}
|
|
|
|
int QPaintDevice_LogicalDpiX(const QPaintDevice* self) {
|
|
return self->logicalDpiX();
|
|
}
|
|
|
|
int QPaintDevice_LogicalDpiY(const QPaintDevice* self) {
|
|
return self->logicalDpiY();
|
|
}
|
|
|
|
int QPaintDevice_PhysicalDpiX(const QPaintDevice* self) {
|
|
return self->physicalDpiX();
|
|
}
|
|
|
|
int QPaintDevice_PhysicalDpiY(const QPaintDevice* self) {
|
|
return self->physicalDpiY();
|
|
}
|
|
|
|
double QPaintDevice_DevicePixelRatio(const QPaintDevice* self) {
|
|
qreal _ret = self->devicePixelRatio();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
double QPaintDevice_DevicePixelRatioF(const QPaintDevice* self) {
|
|
qreal _ret = self->devicePixelRatioF();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
int QPaintDevice_ColorCount(const QPaintDevice* self) {
|
|
return self->colorCount();
|
|
}
|
|
|
|
int QPaintDevice_Depth(const QPaintDevice* self) {
|
|
return self->depth();
|
|
}
|
|
|
|
double QPaintDevice_DevicePixelRatioFScale() {
|
|
qreal _ret = QPaintDevice::devicePixelRatioFScale();
|
|
return static_cast<double>(_ret);
|
|
}
|
|
|
|
void QPaintDevice_Delete(QPaintDevice* self, bool isSubclass) {
|
|
if (isSubclass) {
|
|
delete dynamic_cast<QPaintDevice*>( self );
|
|
} else {
|
|
delete self;
|
|
}
|
|
}
|
|
|