2022-04-12 13:14:23 +00:00
|
|
|
/*
|
|
|
|
SPDX-FileCopyrightText: 2022 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2022-08-29 07:55:49 +00:00
|
|
|
#include "core/renderlayerdelegate.h"
|
2022-04-12 13:14:23 +00:00
|
|
|
|
2022-12-19 08:45:29 +00:00
|
|
|
#include <QImage>
|
|
|
|
|
2022-04-12 13:14:23 +00:00
|
|
|
namespace KWin
|
|
|
|
{
|
|
|
|
|
|
|
|
class CursorDelegateQPainter final : public RenderLayerDelegate
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
void paint(RenderTarget *renderTarget, const QRegion ®ion) override;
|
2022-12-19 08:45:29 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
QImage m_buffer;
|
2022-04-12 13:14:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace KWin
|