KWin
Loading...
Searching...
No Matches
src
core
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
9
#include "
core/graphicsbuffer.h
"
10
11
#include <QImage>
12
13
namespace
KWin
14
{
15
16
class
KWIN_EXPORT
GraphicsBufferView
17
{
18
public
:
19
explicit
GraphicsBufferView
(
GraphicsBuffer
*buffer, GraphicsBuffer::MapFlags accessFlags = GraphicsBuffer::Read);
20
~GraphicsBufferView
();
21
22
bool
isNull()
const
;
23
QImage *image();
24
const
QImage *image()
const
;
25
26
private
:
27
GraphicsBuffer
*m_buffer;
28
QImage m_image;
29
};
30
31
}
// namespace KWin
KWin::GraphicsBuffer
Definition
graphicsbuffer.h:57
KWin::GraphicsBufferView
Definition
graphicsbufferview.h:17
graphicsbuffer.h
KWin
Definition
activation_test.cpp:20
Generated on Sat Feb 17 2024 01:42:09 for KWin by
1.10.0