Hyprland/src/helpers/WLClasses.hpp

31 lines
643 B
C++
Raw Normal View History

2022-03-17 18:25:16 +01:00
#pragma once
#include "../defines.hpp"
#include "../desktop/Subsurface.hpp"
#include "../desktop/Popup.hpp"
#include "../desktop/WLSurface.hpp"
2025-01-17 19:14:55 +01:00
#include "../macros.hpp"
#include "../desktop/DesktopTypes.hpp"
#include "memory/Memory.hpp"
#include "signal/Signal.hpp"
2022-03-17 18:25:16 +01:00
class CMonitor;
class IPointer;
class IKeyboard;
class CWLSurfaceResource;
AQUAMARINE_FORWARD(ISwitch);
2022-10-04 20:07:21 +01:00
struct SSwitchDevice {
WP<Aquamarine::ISwitch> pDevice;
struct {
CHyprSignalListener destroy;
CHyprSignalListener fire;
} listeners;
2022-10-04 20:07:21 +01:00
2023-01-31 00:03:23 +00:00
bool operator==(const SSwitchDevice& other) const {
return pDevice == other.pDevice;
2022-10-04 20:07:21 +01:00
}
};