blob: 0cc62529b425b6c20037c38b6cee483f70ff4d20 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include "ITrackpadGesture.hpp"
#include "../../../../desktop/DesktopTypes.hpp"
class CSpecialWorkspaceGesture : public ITrackpadGesture {
public:
CSpecialWorkspaceGesture(const std::string& workspaceName);
virtual ~CSpecialWorkspaceGesture() = default;
virtual void begin(const ITrackpadGesture::STrackpadGestureBegin& e);
virtual void update(const ITrackpadGesture::STrackpadGestureUpdate& e);
virtual void end(const ITrackpadGesture::STrackpadGestureEnd& e);
private:
std::string m_specialWorkspaceName;
PHLWORKSPACE m_specialWorkspace;
PHLMONITORREF m_monitor;
bool m_animatingOut = false;
float m_lastDelta = 0.F;
// animated properties, kinda sucks
float m_monitorDimFrom = 0.F, m_monitorDimTo = 0.F;
float m_workspaceAlphaFrom = 0.F, m_workspaceAlphaTo = 0.F;
Vector2D m_workspaceOffsetFrom = {}, m_workspaceOffsetTo = {};
};
|