2024-08-25 04:08:24 +00:00
|
|
|
#include <QPixmap>
|
|
|
|
#include <QPixmapCache>
|
2024-08-29 07:01:51 +00:00
|
|
|
#define WORKAROUND_INNER_CLASS_DEFINITION_QPixmapCache__Key
|
2024-08-25 04:08:24 +00:00
|
|
|
#include <QString>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include <QByteArray>
|
|
|
|
#include <cstring>
|
2024-10-16 05:07:56 +00:00
|
|
|
#include <qpixmapcache.h>
|
2024-08-29 07:01:51 +00:00
|
|
|
#include "gen_qpixmapcache.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "_cgo_export.h"
|
2024-08-25 04:08:24 +00:00
|
|
|
|
|
|
|
int QPixmapCache_CacheLimit() {
|
|
|
|
return QPixmapCache::cacheLimit();
|
|
|
|
}
|
|
|
|
|
|
|
|
void QPixmapCache_SetCacheLimit(int cacheLimit) {
|
|
|
|
QPixmapCache::setCacheLimit(static_cast<int>(cacheLimit));
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
QPixmap* QPixmapCache_Find(struct miqt_string key) {
|
|
|
|
QString key_QString = QString::fromUtf8(key.data, key.len);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QPixmapCache::find(key_QString);
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
bool QPixmapCache_Find2(struct miqt_string key, QPixmap* pixmap) {
|
|
|
|
QString key_QString = QString::fromUtf8(key.data, key.len);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QPixmapCache::find(key_QString, *pixmap);
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
bool QPixmapCache_Find3(struct miqt_string key, QPixmap* pixmap) {
|
|
|
|
QString key_QString = QString::fromUtf8(key.data, key.len);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QPixmapCache::find(key_QString, pixmap);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
bool QPixmapCache_Find4(QPixmapCache__Key* key, QPixmap* pixmap) {
|
|
|
|
return QPixmapCache::find(*key, pixmap);
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
bool QPixmapCache_Insert(struct miqt_string key, QPixmap* pixmap) {
|
|
|
|
QString key_QString = QString::fromUtf8(key.data, key.len);
|
2024-08-25 04:08:24 +00:00
|
|
|
return QPixmapCache::insert(key_QString, *pixmap);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QPixmapCache__Key* QPixmapCache_InsertWithPixmap(QPixmap* pixmap) {
|
2024-09-17 06:29:11 +00:00
|
|
|
return new QPixmapCache::Key(QPixmapCache::insert(*pixmap));
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
bool QPixmapCache_Replace(QPixmapCache__Key* key, QPixmap* pixmap) {
|
|
|
|
return QPixmapCache::replace(*key, *pixmap);
|
|
|
|
}
|
|
|
|
|
2024-10-18 23:53:33 +00:00
|
|
|
void QPixmapCache_Remove(struct miqt_string key) {
|
|
|
|
QString key_QString = QString::fromUtf8(key.data, key.len);
|
2024-08-25 04:08:24 +00:00
|
|
|
QPixmapCache::remove(key_QString);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QPixmapCache_RemoveWithKey(QPixmapCache__Key* key) {
|
|
|
|
QPixmapCache::remove(*key);
|
|
|
|
}
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
void QPixmapCache_Clear() {
|
|
|
|
QPixmapCache::clear();
|
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QPixmapCache_Delete(QPixmapCache* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QPixmapCache*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-25 04:08:24 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QPixmapCache__Key_new(QPixmapCache__Key** outptr_QPixmapCache__Key) {
|
|
|
|
QPixmapCache::Key* ret = new QPixmapCache::Key();
|
|
|
|
*outptr_QPixmapCache__Key = ret;
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QPixmapCache__Key_new2(QPixmapCache__Key* other, QPixmapCache__Key** outptr_QPixmapCache__Key) {
|
|
|
|
QPixmapCache::Key* ret = new QPixmapCache::Key(*other);
|
|
|
|
*outptr_QPixmapCache__Key = ret;
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QPixmapCache__Key_OperatorEqual(const QPixmapCache__Key* self, QPixmapCache__Key* key) {
|
|
|
|
return self->operator==(*key);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QPixmapCache__Key_OperatorNotEqual(const QPixmapCache__Key* self, QPixmapCache__Key* key) {
|
|
|
|
return self->operator!=(*key);
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-09-18 00:12:02 +00:00
|
|
|
void QPixmapCache__Key_OperatorAssign(QPixmapCache__Key* self, QPixmapCache__Key* other) {
|
|
|
|
self->operator=(*other);
|
|
|
|
}
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
void QPixmapCache__Key_Swap(QPixmapCache__Key* self, QPixmapCache__Key* other) {
|
|
|
|
self->swap(*other);
|
|
|
|
}
|
|
|
|
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QPixmapCache__Key_IsValid(const QPixmapCache__Key* self) {
|
|
|
|
return self->isValid();
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|
2024-11-19 06:29:06 +00:00
|
|
|
void QPixmapCache__Key_Delete(QPixmapCache__Key* self, bool isSubclass) {
|
|
|
|
if (isSubclass) {
|
|
|
|
delete dynamic_cast<QPixmapCache::Key*>( self );
|
|
|
|
} else {
|
|
|
|
delete self;
|
|
|
|
}
|
2024-08-29 07:01:51 +00:00
|
|
|
}
|
|
|
|
|