diff options
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 |
