DtkDeclarative
DTK Declarative module
载入中...
搜索中...
未找到
dquickblitframebuffer.h
1// SPDX-FileCopyrightText: 2021 - 2022 UnionTech Software Technology Co., Ltd.
2//
3// SPDX-License-Identifier: LGPL-3.0-or-later
4
5#ifndef DQUICKBLITFRAMEBUFFER_H
6#define DQUICKBLITFRAMEBUFFER_H
7
8#include <QQuickItem>
9#include <dtkdeclarative_global.h>
10#include <DObject>
11
12DQUICK_BEGIN_NAMESPACE
13
14class DQuickBlitFramebufferPrivate;
15class Q_DECL_EXPORT DQuickBlitFramebuffer : public QQuickItem, public DCORE_NAMESPACE::DObject
16{
17 Q_OBJECT
18 D_DECLARE_PRIVATE(DQuickBlitFramebuffer)
19#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
20 QML_NAMED_ELEMENT(BlitFramebuffer)
21#endif
22public:
23 explicit DQuickBlitFramebuffer(QQuickItem *parent = nullptr);
25
26 bool isTextureProvider() const override;
27 QSGTextureProvider *textureProvider() const override;
28
29private Q_SLOTS:
30 void invalidateSceneGraph();
31
32private:
33 QSGNode *updatePaintNode(QSGNode *, UpdatePaintNodeData *) override;
34 void itemChange(ItemChange, const ItemChangeData &) override;
35 void releaseResources() override;
36};
37
38DQUICK_END_NAMESPACE
39
40#endif // DQUICKBLITFRAMEBUFFER_H
Definition dquickblitframebuffer.h:16