cutego/quick/qsgtextureprovider.cpp
2015-11-09 18:23:42 +01:00

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));;
}