mirror of
https://github.com/bluszcz/cutego.git
synced 2024-09-28 21:25:16 +03:00
28 lines
1.1 KiB
C++
Executable file
28 lines
1.1 KiB
C++
Executable file
#include "qsgtextureprovider.h"
|
|
#include <QVariant>
|
|
#include <QUrl>
|
|
#include <QModelIndex>
|
|
#include <QObject>
|
|
#include <QSGTexture>
|
|
#include <QString>
|
|
#include <QSGTextureProvider>
|
|
#include "_cgo_export.h"
|
|
|
|
class MyQSGTextureProvider: public QSGTextureProvider {
|
|
public:
|
|
void Signal_TextureChanged(){callbackQSGTextureProviderTextureChanged(this->objectName().toUtf8().data());};
|
|
};
|
|
|
|
void* QSGTextureProvider_Texture(void* ptr){
|
|
return static_cast<QSGTextureProvider*>(ptr)->texture();
|
|
}
|
|
|
|
void QSGTextureProvider_ConnectTextureChanged(void* ptr){
|
|
QObject::connect(static_cast<QSGTextureProvider*>(ptr), static_cast<void (QSGTextureProvider::*)()>(&QSGTextureProvider::textureChanged), static_cast<MyQSGTextureProvider*>(ptr), static_cast<void (MyQSGTextureProvider::*)()>(&MyQSGTextureProvider::Signal_TextureChanged));;
|
|
}
|
|
|
|
void QSGTextureProvider_DisconnectTextureChanged(void* ptr){
|
|
QObject::disconnect(static_cast<QSGTextureProvider*>(ptr), static_cast<void (QSGTextureProvider::*)()>(&QSGTextureProvider::textureChanged), static_cast<MyQSGTextureProvider*>(ptr), static_cast<void (MyQSGTextureProvider::*)()>(&MyQSGTextureProvider::Signal_TextureChanged));;
|
|
}
|
|
|