summaryrefslogtreecommitdiff
path: root/src/helpers/WLClasses.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-02-28 15:00:34 +0000
committerVaxry <vaxry@vaxry.net>2024-02-28 15:00:40 +0000
commit4bc669f9331bb66ab30bd705d09f1239bc3e83ed (patch)
tree0ffdfa24b039b601080c6a49699a8d73b779ed8a /src/helpers/WLClasses.hpp
parentf4f3aa2e505ca1b22688fb4a32f31c4bfb851dd0 (diff)
layers: add fully featured animations
Adds configs and layerrules to handle them alas fixes #981 I have cooked
Diffstat (limited to 'src/helpers/WLClasses.hpp')
-rw-r--r--src/helpers/WLClasses.hpp37
1 files changed, 22 insertions, 15 deletions
diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp
index 6cc9b5d5..b62a6489 100644
--- a/src/helpers/WLClasses.hpp
+++ b/src/helpers/WLClasses.hpp
@@ -19,6 +19,11 @@ struct SLayerSurface {
~SLayerSurface();
void applyRules();
+ void startAnimation(bool in, bool instant = false);
+ bool isFadedOut();
+
+ CAnimatedVariable realPosition;
+ CAnimatedVariable realSize;
wlr_layer_surface_v1* layerSurface;
wl_list link;
@@ -34,26 +39,28 @@ struct SLayerSurface {
DYNLISTENER(commitLayerSurface);
DYNLISTENER(newPopup);
- CBox geometry = {0, 0, 0, 0};
- Vector2D position;
- zwlr_layer_shell_v1_layer layer;
+ CBox geometry = {0, 0, 0, 0};
+ Vector2D position;
+ zwlr_layer_shell_v1_layer layer;
+
+ bool mapped = false;
- bool mapped = false;
+ int monitorID = -1;
- int monitorID = -1;
+ std::string szNamespace = "";
- std::string szNamespace = "";
+ CAnimatedVariable alpha;
+ bool fadingOut = false;
+ bool readyToDelete = false;
+ bool noProcess = false;
+ bool noAnimations = false;
- CAnimatedVariable alpha;
- bool fadingOut = false;
- bool readyToDelete = false;
- bool noProcess = false;
- bool noAnimations = false;
+ bool forceBlur = false;
+ int xray = -1;
+ bool ignoreAlpha = false;
+ float ignoreAlphaValue = 0.f;
- bool forceBlur = false;
- int xray = -1;
- bool ignoreAlpha = false;
- float ignoreAlphaValue = 0.f;
+ std::optional<std::string> animationStyle;
// For the list lookup
bool operator==(const SLayerSurface& rhs) const {