diff options
| author | vaxerski <vaxry@vaxry.net> | 2024-12-29 19:21:20 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2024-12-29 19:21:20 +0100 |
| commit | deb077c34653eab251bfe71970bb5987913e7c6d (patch) | |
| tree | 2258d060dff1a1fa252bf6a1e92ca5c58049a5bf /src/protocols/CTMControl.hpp | |
| parent | 3f40d6d9361d0c5fec558b7549e58203fbe5cbd7 (diff) | |
ctm: add an internal fade animation to ctm transitions
Diffstat (limited to 'src/protocols/CTMControl.hpp')
| -rw-r--r-- | src/protocols/CTMControl.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/protocols/CTMControl.hpp b/src/protocols/CTMControl.hpp index 70bc79bc..51820f20 100644 --- a/src/protocols/CTMControl.hpp +++ b/src/protocols/CTMControl.hpp @@ -6,6 +6,8 @@ #include "WaylandProtocol.hpp" #include "hyprland-ctm-control-v1.hpp" #include <unordered_map> +#include <map> +#include "../helpers/AnimatedVariable.hpp" class CMonitor; @@ -36,6 +38,14 @@ class CHyprlandCTMControlProtocol : public IWaylandProtocol { // std::vector<SP<CHyprlandCTMControlResource>> m_vManagers; + // + struct SCTMData { + SCTMData(); + Mat3x3 ctmFrom = Mat3x3::identity(), ctmTo = Mat3x3::identity(); + CAnimatedVariable<float> progress; + }; + std::map<PHLMONITORREF, std::unique_ptr<SCTMData>> m_mCTMDatas; + friend class CHyprlandCTMControlResource; }; |
