2024-08-25 04:08:24 +00:00
|
|
|
#include <QBackingStore>
|
|
|
|
#include <QPaintDevice>
|
|
|
|
#include <QPoint>
|
|
|
|
#include <QRegion>
|
|
|
|
#include <QSize>
|
|
|
|
#include <QWindow>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qbackingstore.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qbackingstore.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
QBackingStore* QBackingStore_new(QWindow* window) {
|
|
|
|
return new QBackingStore(window);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QWindow* QBackingStore_Window(const QBackingStore* self) {
|
|
|
|
return self->window();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
QPaintDevice* QBackingStore_PaintDevice(QBackingStore* self) {
|
|
|
|
return self->paintDevice();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QBackingStore_Flush(QBackingStore* self, QRegion* region) {
|
|
|
|
self->flush(*region);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QBackingStore_Resize(QBackingStore* self, QSize* size) {
|
|
|
|
self->resize(*size);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QSize* QBackingStore_Size(const QBackingStore* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QSize(self->size());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QBackingStore_Scroll(QBackingStore* self, QRegion* area, int dx, int dy) {
|
|
|
|
return self->scroll(*area, static_cast<int>(dx), static_cast<int>(dy));
|
|
|
|
}
|
|
|
|
|
|
|
|
void QBackingStore_BeginPaint(QBackingStore* self, QRegion* param1) {
|
|
|
|
self->beginPaint(*param1);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QBackingStore_EndPaint(QBackingStore* self) {
|
|
|
|
self->endPaint();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QBackingStore_SetStaticContents(QBackingStore* self, QRegion* region) {
|
|
|
|
self->setStaticContents(*region);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
QRegion* QBackingStore_StaticContents(const QBackingStore* self) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QRegion(self->staticContents());
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QBackingStore_HasStaticContents(const QBackingStore* self) {
|
|
|
|
return self->hasStaticContents();
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void QBackingStore_Flush2(QBackingStore* self, QRegion* region, QWindow* window) {
|
|
|
|
self->flush(*region, window);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QBackingStore_Flush3(QBackingStore* self, QRegion* region, QWindow* window, QPoint* offset) {
|
|
|
|
self->flush(*region, window, *offset);
|
|
|
|
}
|
|
|
|
|
|
|
|
void QBackingStore_Delete(QBackingStore* self) {
|
|
|
|
delete self;
|
|
|
|
}
|
|
|
|
|