mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-05-19 08:30:22 -07:00
* core: change animation manager to use Hyprutils::Animation * config: move animation config to hyprutils animation tree * use g_pAnimationManager->createAnimation and the new PHLANIMVAR template * core: use CGenericAnimatedVariabled::{enabled,setConfig,getStyle} and adapt callbacks * core: adapt animated variable usage (dereference the shared pointer) * misc: bump CMakeLists to hyprutils 0.3.3
44 lines
932 B
C++
44 lines
932 B
C++
#pragma once
|
|
|
|
#include "../events/Events.hpp"
|
|
#include "../defines.hpp"
|
|
#include "../desktop/Window.hpp"
|
|
#include "../desktop/Subsurface.hpp"
|
|
#include "../desktop/Popup.hpp"
|
|
#include "../desktop/WLSurface.hpp"
|
|
#include "signal/Signal.hpp"
|
|
#include "math/Math.hpp"
|
|
|
|
class CMonitor;
|
|
class IPointer;
|
|
class IKeyboard;
|
|
class CWLSurfaceResource;
|
|
|
|
AQUAMARINE_FORWARD(ISwitch);
|
|
|
|
struct SSwipeGesture {
|
|
PHLWORKSPACE pWorkspaceBegin = nullptr;
|
|
|
|
double delta = 0;
|
|
|
|
int initialDirection = 0;
|
|
float avgSpeed = 0;
|
|
int speedPoints = 0;
|
|
int touch_id = 0;
|
|
|
|
PHLMONITORREF pMonitor;
|
|
};
|
|
|
|
struct SSwitchDevice {
|
|
WP<Aquamarine::ISwitch> pDevice;
|
|
|
|
struct {
|
|
CHyprSignalListener destroy;
|
|
CHyprSignalListener fire;
|
|
} listeners;
|
|
|
|
bool operator==(const SSwitchDevice& other) const {
|
|
return pDevice == other.pDevice;
|
|
}
|
|
};
|