KWin
Loading...
Searching...
No Matches
src
platformsupport
scenes
qpainter
qpaintersurfacetexture.cpp
Go to the documentation of this file.
1
/*
2
SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4
SPDX-License-Identifier: GPL-2.0-or-later
5
*/
6
7
#include "
qpaintersurfacetexture.h
"
8
9
namespace
KWin
10
{
11
12
QPainterSurfaceTexture::QPainterSurfaceTexture
(
QPainterBackend
*backend)
13
: m_backend(backend)
14
{
15
}
16
17
bool
QPainterSurfaceTexture::isValid
()
const
18
{
19
return
!
m_image
.isNull();
20
}
21
22
QPainterBackend
*
QPainterSurfaceTexture::backend
()
const
23
{
24
return
m_backend
;
25
}
26
27
QImage
QPainterSurfaceTexture::image
()
const
28
{
29
return
m_image
;
30
}
31
32
}
// namespace KWin
KWin::QPainterBackend
Definition
qpainterbackend.h:26
KWin::QPainterSurfaceTexture::isValid
bool isValid() const override
Definition
qpaintersurfacetexture.cpp:17
KWin::QPainterSurfaceTexture::m_image
QImage m_image
Definition
qpaintersurfacetexture.h:33
KWin::QPainterSurfaceTexture::image
QImage image() const
Definition
qpaintersurfacetexture.cpp:27
KWin::QPainterSurfaceTexture::QPainterSurfaceTexture
QPainterSurfaceTexture(QPainterBackend *backend)
Definition
qpaintersurfacetexture.cpp:12
KWin::QPainterSurfaceTexture::m_backend
QPainterBackend * m_backend
Definition
qpaintersurfacetexture.h:32
KWin::QPainterSurfaceTexture::backend
QPainterBackend * backend() const
Definition
qpaintersurfacetexture.cpp:22
KWin
Definition
activation_test.cpp:20
qpaintersurfacetexture.h
Generated on Sat Feb 17 2024 01:42:09 for KWin by
1.10.0