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/doric/shader/DoricSuperNode.h

31 lines
610 B
C
Raw Normal View History

2021-02-09 15:54:22 +08:00
#ifndef DORICSUPERNODE_H
#define DORICSUPERNODE_H
#include "DoricViewNode.h"
class DoricSuperNode : public DoricViewNode {
2021-02-20 16:20:18 +08:00
private:
QMap<QString, QJSValue> subNodes;
2021-02-09 15:54:22 +08:00
protected:
2021-02-19 19:01:31 +08:00
virtual void blend(QQuickItem *view, QString name, QJSValue prop) override;
2021-02-09 15:54:22 +08:00
void blendSubLayoutConfig(DoricViewNode *viewNode);
2021-02-20 16:20:18 +08:00
virtual void blendSubNode(QJSValue subProperties) = 0;
2021-02-09 15:54:22 +08:00
public:
using DoricViewNode::DoricViewNode;
bool mReusable = false;
2021-02-20 16:20:18 +08:00
QJSValue getSubModel(QString id);
private:
void mixinSubNode(QJSValue subNode);
void mixin(QJSValue src, QJSValue target);
2021-02-09 15:54:22 +08:00
};
#endif // DORICSUPERNODE_H