Hyprland/src/render/decorations
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
..
CHyprBorderDecoration.cpp animations: Refactor AnimatedVariable (#4911) 2024-03-02 00:35:17 +00:00
CHyprBorderDecoration.hpp hyprctl: add decorations (#4275) 2023-12-28 16:38:16 +01:00
CHyprDropShadowDecoration.cpp animations: Refactor AnimatedVariable (#4911) 2024-03-02 00:35:17 +00:00
CHyprDropShadowDecoration.hpp hyprctl: add decorations (#4275) 2023-12-28 16:38:16 +01:00
CHyprGroupBarDecoration.cpp animations: Refactor AnimatedVariable (#4911) 2024-03-02 00:35:17 +00:00
CHyprGroupBarDecoration.hpp internal: Unify input handling on decorations (#4280) 2023-12-28 23:54:41 +01:00
DecorationPositioner.cpp animations: Refactor AnimatedVariable (#4911) 2024-03-02 00:35:17 +00:00
DecorationPositioner.hpp style/ci: apply clang-format and verify it in ci (#4039) 2023-12-06 22:54:56 +00:00
IHyprWindowDecoration.cpp internal: Unify input handling on decorations (#4280) 2023-12-28 23:54:41 +01:00
IHyprWindowDecoration.hpp internal: minor include fixes and missed format 2023-12-29 10:27:09 +01:00