This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-Qt/example/doric/shader/DoricImageNode.h

33 lines
564 B
C
Raw Normal View History

2021-04-23 17:56:08 +08:00
#ifndef DORICIMAGENODE_H
#define DORICIMAGENODE_H
2021-05-18 16:15:28 +08:00
#include "DoricExport.h"
2021-04-23 17:56:08 +08:00
#include "DoricViewNode.h"
2021-05-18 16:15:28 +08:00
class DORIC_EXPORT DoricImageNode : public DoricViewNode {
2021-04-23 17:56:08 +08:00
public:
using DoricViewNode::DoricViewNode;
QQuickItem *build() override;
virtual void blend(QJsonValue jsValue) override;
virtual void blend(QQuickItem *view, QString name, QJsonValue prop) override;
void onReady();
void onError();
private:
QString loadCallbackId = "";
int contentMode = 0;
int placeHolderColor = -1;
int errorColor = -1;
};
#endif // DORICIMAGENODE_H