diff options
author | Vaxry <[email protected]> | 2023-11-04 17:03:05 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2023-11-04 17:03:05 +0000 |
commit | 55b4f84fea33adee3ec4b0a69c2bca6e7a1f5754 (patch) | |
tree | be7db4f841b4ac049527daae01e683701bf92b92 /src/SharedDefs.hpp | |
parent | 73e78f05ad5cafa20ac5bf177c94ac9ecca37097 (diff) | |
download | Hyprland-55b4f84fea33adee3ec4b0a69c2bca6e7a1f5754.tar.gz Hyprland-55b4f84fea33adee3ec4b0a69c2bca6e7a1f5754.zip |
Internal: Hyprland box implementation (#3755)
* box impl
* remove unused operators
* missed applyfromwlr
Diffstat (limited to 'src/SharedDefs.hpp')
-rw-r--r-- | src/SharedDefs.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/SharedDefs.hpp b/src/SharedDefs.hpp index 068d61f6..c060ac26 100644 --- a/src/SharedDefs.hpp +++ b/src/SharedDefs.hpp @@ -26,4 +26,18 @@ enum eRenderStage struct SCallbackInfo { bool cancelled = false; /* on cancellable events, will cancel the event. */ +}; + +struct SWindowDecorationExtents { + Vector2D topLeft; + Vector2D bottomRight; + + // + SWindowDecorationExtents operator*(const double& scale) const { + return SWindowDecorationExtents{topLeft * scale, bottomRight * scale}; + } + + SWindowDecorationExtents floor() { + return {topLeft.floor(), bottomRight.floor()}; + } };
\ No newline at end of file |