KWin
Loading...
Searching...
No Matches
src
plugins
qpa
offscreensurface.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: 2019 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
6
7
SPDX-License-Identifier: GPL-2.0-or-later
8
*/
9
10
#pragma once
11
12
#include <epoxy/egl.h>
13
14
#include <qpa/qplatformoffscreensurface.h>
15
16
namespace
KWin
17
{
18
19
class
EglDisplay;
20
21
namespace
QPA
22
{
23
24
class
OffscreenSurface
:
public
QPlatformOffscreenSurface
25
{
26
public
:
27
explicit
OffscreenSurface
(QOffscreenSurface *surface);
28
29
QSurfaceFormat
format
()
const override
;
30
bool
isValid
()
const override
;
31
32
private
:
33
QSurfaceFormat m_format;
34
};
35
36
}
// namespace QPA
37
}
// namespace KWin
KWin::QPA::OffscreenSurface
Definition
offscreensurface.h:25
KWin::QPA::OffscreenSurface::format
QSurfaceFormat format() const override
Definition
offscreensurface.cpp:29
KWin::QPA::OffscreenSurface::OffscreenSurface
OffscreenSurface(QOffscreenSurface *surface)
Definition
offscreensurface.cpp:23
KWin::QPA::OffscreenSurface::isValid
bool isValid() const override
Definition
offscreensurface.cpp:34
KWin
Definition
activation_test.cpp:20
Generated on Sat Feb 17 2024 01:42:10 for KWin by
1.10.0