mozsync/vendor/github.com/mappu/miqt/qt6/gen_qbackingstore.cpp
Philip Peterson 3dbad35769 Initial commit: mozsync, a CLI to export bookmarks from Firefox Sync
Authenticates via the FxA OAuth flow (borrowing Firefox for Android's
public client id) in an embedded, off-the-record Qt6 WebEngine view,
decrypts the Sync 1.5 crypto/keys envelope, and dumps bookmarks as JSON.
Packaged as a flatpak (org.mozsync.App.yml) against io.qt.qtwebengine.BaseApp.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-30 02:16:21 -08:00

77 lines
1.8 KiB
C++

#include <QBackingStore>
#include <QPaintDevice>
#include <QPoint>
#include <QRegion>
#include <QSize>
#include <QWindow>
#include <qbackingstore.h>
#include "gen_qbackingstore.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
} /* extern C */
#endif
QBackingStore* QBackingStore_new(QWindow* window) {
return new (std::nothrow) QBackingStore(window);
}
QWindow* QBackingStore_window(const QBackingStore* self) {
return self->window();
}
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);
}
QSize* QBackingStore_size(const QBackingStore* self) {
return new QSize(self->size());
}
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);
}
QRegion* QBackingStore_staticContents(const QBackingStore* self) {
return new QRegion(self->staticContents());
}
bool QBackingStore_hasStaticContents(const QBackingStore* self) {
return self->hasStaticContents();
}
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;
}