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/DoricScrollerNode.h

35 lines
766 B
C
Raw Permalink Normal View History

2021-04-08 19:50:39 +08:00
#ifndef DORICSCROLLERNODE_H
#define DORICSCROLLERNODE_H
2021-05-18 16:15:28 +08:00
#include "DoricExport.h"
2021-04-08 19:50:39 +08:00
#include "DoricSuperNode.h"
2021-05-18 16:15:28 +08:00
class DORIC_EXPORT DoricScrollerNode : public DoricSuperNode {
2021-04-08 19:50:39 +08:00
private:
DoricViewNode *mChildNode = nullptr;
QString mChildViewId;
QString onScrollFuncId;
QString onScrollEndFuncId;
public:
using DoricSuperNode::DoricSuperNode;
QQuickItem *build() override;
virtual void blend(QQuickItem *view, QString name, QJsonValue prop) override;
virtual void blendSubNode(QJsonValue subProperties) override;
2021-04-16 10:06:15 +08:00
virtual void afterBlended(QJsonValue jsValue) override;
virtual void requestLayout() override;
2021-04-19 21:17:40 +08:00
QSizeF sizeThatFits(QSizeF size);
2021-05-07 18:17:07 +08:00
virtual DoricViewNode *getSubNodeById(QString id) override;
2021-04-08 19:50:39 +08:00
};
#endif // DORICSCROLLERNODE_H