From 931927de29256a46004cd6f71fdf45ed76470b73 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 4 Nov 2023 21:45:34 +0000 Subject: dwindle: move to CBox for expressing nodes --- src/helpers/Box.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/helpers/Box.cpp') diff --git a/src/helpers/Box.cpp b/src/helpers/Box.cpp index 450871cb..e71ed622 100644 --- a/src/helpers/Box.cpp +++ b/src/helpers/Box.cpp @@ -101,4 +101,12 @@ CBox CBox::roundInternal() { float newH = y + h - std::floor(y); return CBox{std::floor(x), std::floor(y), std::floor(newW), std::floor(newH)}; -} \ No newline at end of file +} + +Vector2D CBox::pos() const { + return {x, y}; +} + +Vector2D CBox::size() const { + return {w, h}; +} -- cgit v1.2.3