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

29 lines
638 B
C
Raw Normal View History

2021-06-02 16:34:38 +08:00
#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