Files
RedBear-OS/local/recipes/kde/kwin/source/src/wayland/screenedge_v1.h
T
2026-04-14 10:51:06 +01:00

60 lines
1.3 KiB
C++

/*
SPDX-FileCopyrightText: 2023 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
*/
#pragma once
#include "effect/globals.h"
#include <QObject>
#include <memory>
struct wl_resource;
namespace KWin
{
class Display;
class ScreenEdgeManagerV1InterfacePrivate;
class AutoHideScreenEdgeV1Interface;
class AutoHideScreenEdgeV1InterfacePrivate;
class SurfaceInterface;
class KWIN_EXPORT ScreenEdgeManagerV1Interface : public QObject
{
Q_OBJECT
public:
explicit ScreenEdgeManagerV1Interface(Display *display, QObject *parent = nullptr);
~ScreenEdgeManagerV1Interface() override;
Q_SIGNALS:
void edgeRequested(AutoHideScreenEdgeV1Interface *edge);
private:
std::unique_ptr<ScreenEdgeManagerV1InterfacePrivate> d;
};
class KWIN_EXPORT AutoHideScreenEdgeV1Interface : public QObject
{
Q_OBJECT
public:
AutoHideScreenEdgeV1Interface(SurfaceInterface *surface, ElectricBorder border, wl_resource *resource);
~AutoHideScreenEdgeV1Interface() override;
SurfaceInterface *surface() const;
ElectricBorder border() const;
Q_SIGNALS:
void deactivateRequested();
void activateRequested();
private:
std::unique_ptr<AutoHideScreenEdgeV1InterfacePrivate> d;
};
} // namespace KWin