/* KWin - the KDE window manager This file is part of the KDE project. SPDX-FileCopyrightText: 2014 Martin Gräßlin SPDX-License-Identifier: GPL-2.0-or-later */ #include "mock_abstract_client.h" namespace KWin { AbstractClient::AbstractClient(QObject *parent) : QObject(parent) , m_active(false) , m_screen(0) , m_fullscreen(false) , m_hiddenInternal(false) , m_keepBelow(false) , m_frameGeometry() , m_resize(false) { } AbstractClient::~AbstractClient() = default; bool AbstractClient::isActive() const { return m_active; } void AbstractClient::setActive(bool active) { m_active = active; } void AbstractClient::setScreen(int screen) { m_screen = screen; } bool AbstractClient::isOnScreen(int screen) const { // TODO: mock checking client geometry return screen == m_screen; } int AbstractClient::screen() const { return m_screen; } void AbstractClient::setFullScreen(bool set) { m_fullscreen = set; } bool AbstractClient::isFullScreen() const { return m_fullscreen; } bool AbstractClient::isHiddenInternal() const { return m_hiddenInternal; } void AbstractClient::setHiddenInternal(bool set) { m_hiddenInternal = set; } void AbstractClient::moveResize(const QRect &rect) { m_frameGeometry = rect; emit geometryChanged(); } QRect AbstractClient::frameGeometry() const { return m_frameGeometry; } bool AbstractClient::keepBelow() const { return m_keepBelow; } void AbstractClient::setKeepBelow(bool keepBelow) { m_keepBelow = keepBelow; emit keepBelowChanged(); } bool AbstractClient::isInteractiveResize() const { return m_resize; } void AbstractClient::setInteractiveResize(bool set) { m_resize = set; } }