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

29 lines
638 B
C++

#ifndef DORICFLEXNODE_H
#define DORICFLEXNODE_H
#include "DoricExport.h"
#include "shader/DoricStackNode.h"
#include "yoga/YGLayout.h"
class DORIC_EXPORT DoricFlexNode : public DoricGroupNode {
public:
using DoricGroupNode::DoricGroupNode;
QQuickItem *build() override;
virtual void blend(QQuickItem *view, QString name, QJsonValue prop) override;
virtual void blendSubNode(DoricViewNode *subNode,
QJsonValue flexConfig) override;
private:
void blendYoga(YGLayout *yoga, QJsonValue flexConfig);
void blendYoga(YGLayout *yoga, QString name, QJsonValue prop);
};
#endif // DORICFLEXNODE_H