Hyprland/src/helpers
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
..
AnimatedVariable.cpp animations: Refactor AnimatedVariable (#4911) 2024-03-02 00:35:17 +00:00
AnimatedVariable.hpp animations: Refactor AnimatedVariable (#4911) 2024-03-02 00:35:17 +00:00
BezierCurve.cpp bezier: Optimize CBezierCurve::getYForPoint (#3321) 2023-09-16 18:32:33 +01:00
BezierCurve.hpp bezier: Remove Todo about N-Point bezier curves. (#3352) 2023-09-17 18:48:11 +01:00
Box.cpp box: add missing include 2024-02-03 01:31:52 +00:00
Box.hpp dwindle: avoid sending negative sizes to wlr 2024-02-02 15:04:04 +00:00
Color.cpp internal: cleanup headers in helpers/ 2023-08-07 13:36:14 +02:00
Color.hpp shadow: alpha treatment improvements 2023-11-11 00:52:40 +00:00
MiscFunctions.cpp core: improve cleanup logic 2024-01-19 16:20:30 +01:00
MiscFunctions.hpp core: improve cleanup logic 2024-01-19 16:20:30 +01:00
Monitor.cpp animations: Refactor AnimatedVariable (#4911) 2024-03-02 00:35:17 +00:00
Monitor.hpp input: Map touch devices and tablets bound to an output (#3544) 2024-02-27 22:11:59 +00:00
Region.cpp surface: fix invalid damage tracking in damageSurface 2024-02-19 11:24:54 +00:00
Region.hpp format: fix formatting 2024-02-19 17:20:39 +00:00
Splashes.hpp internal: minor header cleanup 2024-01-23 01:32:34 +00:00
Timer.cpp animationmgr: avoid redundant ticks 2023-08-05 23:29:33 +02:00
Timer.hpp internal: cleanup headers in helpers/ 2023-08-07 13:36:14 +02:00
VarList.cpp build: Unbreak build without precompiled headers (#3400) 2023-09-23 13:31:37 +01:00
VarList.hpp dispatchers: add tiled/floating to cyclenext 2023-12-24 15:08:48 +01:00
Vector2D.cpp Migrate the config to hyprlang (#4656) 2024-02-18 15:00:34 +00:00
Vector2D.hpp Migrate the config to hyprlang (#4656) 2024-02-18 15:00:34 +00:00
Watchdog.cpp Migrate the config to hyprlang (#4656) 2024-02-18 15:00:34 +00:00
Watchdog.hpp watchdog: don't hang on exit 2023-09-29 20:05:43 +01:00
WLClasses.cpp animations: Refactor AnimatedVariable (#4911) 2024-03-02 00:35:17 +00:00
WLClasses.hpp animations: Refactor AnimatedVariable (#4911) 2024-03-02 00:35:17 +00:00
WLListener.cpp core: improve cleanup logic 2024-01-19 16:20:30 +01:00
WLListener.hpp internal: cleanup headers in helpers/ 2023-08-07 13:36:14 +02:00
X11Stubs.hpp Allow to disable X11 backend separately from Xwayland after 5a750b485a (#1445) 2023-01-29 12:43:18 +00:00
XWaylandStubs.hpp style/ci: apply clang-format and verify it in ci (#4039) 2023-12-06 22:54:56 +00:00