summaryrefslogtreecommitdiff
path: root/src/helpers/AnimatedVariable.cpp
Commit message (Collapse)AuthorAgeFilesLines
* core: move parts of the animation system to hyprutils (#8868)Maximilian Seidler2025-01-071-87/+0
| | | | | | | | | | | | | * core: change animation manager to use Hyprutils::Animation * config: move animation config to hyprutils animation tree * use g_pAnimationManager->createAnimation and the new PHLANIMVAR template * core: use CGenericAnimatedVariabled::{enabled,setConfig,getStyle} and adapt callbacks * core: adapt animated variable usage (dereference the shared pointer) * misc: bump CMakeLists to hyprutils 0.3.3
* internal: remove dead code (#8748)Ikalco2024-12-171-5/+0
|
* core: Add clang-tidy (#8664)Vaxry2024-12-071-5/+5
| | | | | This adds a .clang-tidy file for us. It's not a strict requirement to be compliant, but I tuned it to be alright.
* core: move to steady_clock where applicableVaxry2024-06-251-2/+2
| | | | avoid issues when system clock gets desynchronized or changed
* layerSurface: refactor/move to a memory-safe implVaxry2024-04-301-1/+1
| | | | | Makes all the pointers smart to avoid memory issues Refactors layerSurface code to live inside desktop/layersurface
* internal: Window storage rework - part 1 (#5762)Vaxry2024-04-271-1/+1
| | | | | | | | | | | | | | | | | * Window storage rework - part 1 * format * remove useless include * fix pch * format * fix crash in dwindle * fix vram leak * prefer .expired() for bool checks
* Workspace/core: Refactor workspace storage (#5380)Vaxry2024-04-021-1/+1
| | | | | * refactor workspaces to use ptrs * clang-format
* animvar: fixup update callbacks and cleanupVaxry2024-03-291-1/+24
|
* animations: Refactor AnimatedVariable (#4911)GartoxFR2024-03-021-43/+11
| | | | | | | | | | | | | | | | | | | | | | | * 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
* avar: return curve value of 1 when not animatedVaxry2024-02-271-0/+3
| | | | fixes #4862
* refactor: manually resets singletons (#3395)memchr2023-09-221-0/+2
|
* internal: Formatter rework (#3186)Vaxry2023-09-061-2/+2
|
* animationmgr: avoid redundant ticksvaxerski2023-08-051-0/+3
|
* animationmgr: avoid looping over all avars in favor of only active onesvaxerski2023-07-201-2/+14
|
* use curves for special dim animvaxerski2022-12-291-0/+9
|
* Added clang format (#1239)Vaxry2022-12-161-13/+12
| | | * clang-format stuff and format files
* Added resize transitionsvaxerski2022-11-061-0/+5
|
* prevent double-registering of avarsvaxerski2022-11-051-1/+4
|
* Multiple animation optimization and xwayland wine fixesvaxerski2022-11-041-2/+4
|
* Replace clamp with max if there is no upper bound.Felix Dick2022-09-261-1/+1
|
* Animation config reworkvaxerski2022-07-281-7/+10
|
* Added workspace animationsvaxerski2022-05-121-0/+4
|
* optimization: dont damage entire window on border animvaxerski2022-05-051-3/+4
|
* Added bezier curvesvaxerski2022-04-231-3/+4
|
* New animation systemvaxerski2022-04-231-0/+54