Hyprland/src/managers
GartoxFR b2c3440477
animations: Refactor AnimatedVariable (#4911)
* animation: Refactor AnimatedVariable

This commit decomposes the AnimatedVariable class into a base class
with the common attribute to all variable types and a templated derived
type containing strongly typed info on the type being animated.

Access to the typed version is perfomed using the visitor pattern. A
utility is provided to build a visitor on the fly using lambdas.

Adding a new type to be animated should just be a matter of adding the
typed in the list defined by the ANIMABLE_TYPES macro

The size of the commit is justified by the API change in the
AnimatedVariable class. No more vec(), fl() or col() method but a unified
value() method.

* animation: Remove visitor pattern

* animation: Fix coding style

* animation: Fix coding style
2024-03-02 00:35:17 +00:00
..
input animations: Refactor AnimatedVariable (#4911) 2024-03-02 00:35:17 +00:00
AnimationManager.cpp animations: Refactor AnimatedVariable (#4911) 2024-03-02 00:35:17 +00:00
AnimationManager.hpp animations: Refactor AnimatedVariable (#4911) 2024-03-02 00:35:17 +00:00
EventManager.cpp socket2: move to the wayland event loop 2024-02-26 17:20:51 +00:00
EventManager.hpp socket2: move to the wayland event loop 2024-02-26 17:20:51 +00:00
HookSystemManager.cpp hooksystem: add callbackinfo struct and cancellable events 2023-10-21 14:52:43 +01:00
HookSystemManager.hpp hooksystem: add callbackinfo struct and cancellable events 2023-10-21 14:52:43 +01:00
KeybindManager.cpp animations: Refactor AnimatedVariable (#4911) 2024-03-02 00:35:17 +00:00
KeybindManager.hpp wayland: implement keyboard_shortcuts_inhibit_v1 2024-02-27 23:15:24 +00:00
LayoutManager.cpp hyprctl: Add 'layouts' command (#3895) 2023-11-21 18:43:38 +00:00
LayoutManager.hpp hyprctl: Add 'layouts' command (#3895) 2023-11-21 18:43:38 +00:00
ProtocolManager.cpp internal: Protocol C++ Wraps + XDGOutput impl (#2733) 2023-07-18 15:30:28 +02:00
ProtocolManager.hpp internal: Protocol C++ Wraps + XDGOutput impl (#2733) 2023-07-18 15:30:28 +02:00
SessionLockManager.cpp sessionLock: send preferred fractional scale 2024-02-20 16:13:01 +00:00
SessionLockManager.hpp Implement ext-session-lock-v1 2023-02-03 11:58:55 +00:00
ThreadManager.cpp Migrate the config to hyprlang (#4656) 2024-02-18 15:00:34 +00:00
ThreadManager.hpp Added clang format (#1239) 2022-12-16 17:17:31 +00:00
XWaylandManager.cpp animations: Refactor AnimatedVariable (#4911) 2024-03-02 00:35:17 +00:00
XWaylandManager.hpp xdg: check for floating conditions before sending tiled size hint 2024-02-28 23:14:50 +00:00