kwin/autotests/mock_abstract_client.h
Vlad Zahorodnii edb7867ee9 Prepend "Interactive" to interactive move resize methods
This is to improve code readability and make it easier to differentiate
between methods that are used during interactive move-resize and normal
move-resize methods in the future.
2021-05-16 13:50:25 +03:00

59 lines
1.2 KiB
C++

/*
KWin - the KDE window manager
This file is part of the KDE project.
SPDX-FileCopyrightText: 2014 Martin Gräßlin <mgraesslin@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef KWIN_MOCK_ABSTRACT_CLIENT_H
#define KWIN_MOCK_ABSTRACT_CLIENT_H
#include <QObject>
#include <QRect>
namespace KWin
{
class AbstractClient : public QObject
{
Q_OBJECT
public:
explicit AbstractClient(QObject *parent);
~AbstractClient() override;
int screen() const;
bool isOnScreen(int screen) const;
bool isActive() const;
bool isFullScreen() const;
bool isHiddenInternal() const;
QRect frameGeometry() const;
bool keepBelow() const;
void setActive(bool active);
void setScreen(int screen);
void setFullScreen(bool set);
void setHiddenInternal(bool set);
void setFrameGeometry(const QRect &rect);
void setKeepBelow(bool);
bool isInteractiveResize() const;
void setInteractiveResize(bool set);
virtual void showOnScreenEdge() = 0;
Q_SIGNALS:
void geometryChanged();
void keepBelowChanged();
private:
bool m_active;
int m_screen;
bool m_fullscreen;
bool m_hiddenInternal;
bool m_keepBelow;
QRect m_frameGeometry;
bool m_resize;
};
}
#endif