Hyprland/src/helpers/WLClasses.hpp

44 lines
937 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"
#include "macros.hpp"
#include "desktop/DesktopTypes.hpp"
#include "helpers/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-07-07 11:52:12 +02:00
struct SSwipeGesture {
PHLWORKSPACE pWorkspaceBegin = nullptr;
2022-07-07 11:52:12 +02:00
double delta = 0;
2022-07-07 11:52:12 +02:00
int initialDirection = 0;
float avgSpeed = 0;
int speedPoints = 0;
int touch_id = 0;
2022-07-07 11:52:12 +02:00
PHLMONITORREF pMonitor;
2022-08-05 13:03:37 +02:00
};
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
}
};