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/DoricSwitchNode.h
2021-07-21 19:03:29 +08:00

26 lines
463 B
C++

#ifndef DORICSWITCHNODE_H
#define DORICSWITCHNODE_H
#include "DoricExport.h"
#include "DoricViewNode.h"
class DORIC_EXPORT DoricSwitchNode : public DoricViewNode {
private:
bool checkByCodeToggle = false;
QString onSwitchFuncId;
public:
using DoricViewNode::DoricViewNode;
QQuickItem *build() override;
virtual void blend(QQuickItem *view, QString name, QJsonValue prop) override;
void onSwitch(bool checked);
};
#endif // DORICSWITCHNODE_H