bd689ef76c
With RenderTarget, CursorView and CursorDelegate can be merged.
31 lines
596 B
C++
31 lines
596 B
C++
/*
|
|
SPDX-FileCopyrightText: 2022 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "renderlayerdelegate.h"
|
|
|
|
namespace KWin
|
|
{
|
|
|
|
class GLTexture;
|
|
|
|
class CursorDelegateOpenGL final : public RenderLayerDelegate
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CursorDelegateOpenGL(QObject *parent = nullptr);
|
|
~CursorDelegateOpenGL() override;
|
|
|
|
void paint(RenderTarget *renderTarget, const QRegion ®ion) override;
|
|
|
|
private:
|
|
QScopedPointer<GLTexture> m_cursorTexture;
|
|
bool m_cursorTextureDirty = false;
|
|
};
|
|
|
|
} // namespace KWin
|