KWin
Loading...
Searching...
No Matches
qpainterbackend.h
Go to the documentation of this file.
1/*
2 KWin - the KDE window manager
3 This file is part of the KDE project.
4
5 SPDX-FileCopyrightText: 2013 Martin Gräßlin <mgraesslin@kde.org>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9#pragma once
10
11#include "core/renderbackend.h"
12
13#include <memory>
14
15class QImage;
16class QRegion;
17class QSize;
18class QString;
19
20namespace KWin
21{
22
23class Output;
24
25class KWIN_EXPORT QPainterBackend : public RenderBackend
26{
27 Q_OBJECT
28
29public:
30 virtual ~QPainterBackend();
31
32 CompositingType compositingType() const override final;
33
34 std::unique_ptr<SurfaceTexture> createSurfaceTextureWayland(SurfacePixmap *pixmap) override;
35
44 bool isFailed() const
45 {
46 return m_failed;
47 }
48
49protected:
59 void setFailed(const QString &reason);
60
61private:
62 bool m_failed;
63};
64
65} // KWin
bool isFailed() const
Whether the creation of the Backend failed.
CompositingType
Definition globals.h:28