KWin
Loading...
Searching...
No Matches
graphicsbufferview.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2023 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
10
11#include <QImage>
12
13namespace KWin
14{
15
16class KWIN_EXPORT GraphicsBufferView
17{
18public:
19 explicit GraphicsBufferView(GraphicsBuffer *buffer, GraphicsBuffer::MapFlags accessFlags = GraphicsBuffer::Read);
21
22 bool isNull() const;
23 QImage *image();
24 const QImage *image() const;
25
26private:
27 GraphicsBuffer *m_buffer;
28 QImage m_image;
29};
30
31} // namespace KWin