34 lines
1.0 KiB
C++
34 lines
1.0 KiB
C++
/*
|
|
KWin - the KDE window manager
|
|
This file is part of the KDE project.
|
|
|
|
SPDX-FileCopyrightText: 2022 Xaver Hugl <xaver.hugl@gmail.com>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
#pragma once
|
|
|
|
#include "core/backendoutput.h"
|
|
|
|
class FakeBackendOutput : public KWin::BackendOutput
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
FakeBackendOutput();
|
|
|
|
bool testPresentation(const std::shared_ptr<KWin::OutputFrame> &frame) override;
|
|
bool present(const QList<KWin::OutputLayer *> &layersToUpdate, const std::shared_ptr<KWin::OutputFrame> &frame) override;
|
|
KWin::RenderLoop *renderLoop() const override;
|
|
void setName(const QString &name);
|
|
void setManufacturer(const QString &manufacturer);
|
|
void setModel(const QString &model);
|
|
void setMode(QSize size, uint32_t refreshRate);
|
|
void setSubPixel(SubPixel subPixel);
|
|
void setDpmsSupported(bool supported);
|
|
void setPhysicalSize(QSize size);
|
|
void setTransform(KWin::OutputTransform transform);
|
|
void moveTo(const QPoint &pos);
|
|
void setScale(qreal scale);
|
|
};
|