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

26 lines
463 B
C
Raw Normal View History

2021-05-27 16:56:57 +08:00
#ifndef DORICSWITCHNODE_H
#define DORICSWITCHNODE_H
#include "DoricExport.h"
#include "DoricViewNode.h"
class DORIC_EXPORT DoricSwitchNode : public DoricViewNode {
2021-05-27 18:02:14 +08:00
private:
bool checkByCodeToggle = false;
2021-05-27 18:18:30 +08:00
QString onSwitchFuncId;
2021-05-27 16:56:57 +08:00
public:
using DoricViewNode::DoricViewNode;
QQuickItem *build() override;
virtual void blend(QQuickItem *view, QString name, QJsonValue prop) override;
2021-05-27 18:18:30 +08:00
void onSwitch(bool checked);
2021-05-27 16:56:57 +08:00
};
#endif // DORICSWITCHNODE_H