DtkDeclarative
DTK Declarative module
载入中...
搜索中...
未找到
dcoloroverlaynode.h
1
// SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
2
//
3
// SPDX-License-Identifier: LGPL-3.0-or-later
4
5
#ifndef DSOFTWARECOLOROVERLAYNODE_H
6
#define DSOFTWARECOLOROVERLAYNODE_H
7
8
#include "dsoftwareeffectrendernode.h"
9
10
#include <dtkdeclarative_global.h>
11
12
DQUICK_BEGIN_NAMESPACE
13
14
class
DSoftwareColorOverlayNode
:
public
DSoftwareEffectRenderNode
15
{
16
public
:
17
explicit
DSoftwareColorOverlayNode
(QSGTextureProvider *sourceProvider);
18
void
setColor(QColor color);
19
20
void
sync(QQuickItem *item)
override
;
21
QRectF rect()
const override
{
return
QRect(0, 0,
static_cast<
int
>
(m_width),
static_cast<
int
>
(m_height)); }
22
QImage process(
const
QImage &sourceImage, QPainter::RenderHints hints)
override
;
23
24
private
:
25
QColor m_color = Qt::transparent;
26
qreal m_width = 0;
27
qreal m_height = 0;
28
QQuickItem *m_item =
nullptr
;
29
};
30
31
DQUICK_END_NAMESPACE
32
33
#endif
// DSOFTWARECOLOROVERLAYNODE_H
Dtk::Quick::DSoftwareColorOverlayNode
Definition
dcoloroverlaynode.h:15
Dtk::Quick::DSoftwareEffectRenderNode
Definition
dsoftwareeffectrendernode.h:27
src
private
dcoloroverlaynode.h
文档生成时间:2024-02-02-06:50 +00
Doxygen Version
1.9.8
制作者:deepin doc doc go SIG
文档使用CC-BY-4.0共享