dwindle: move to CBox for expressing nodes

This commit is contained in:
Vaxry
2023-11-04 21:45:34 +00:00
parent 74cf2281dd
commit 931927de29
4 changed files with 94 additions and 89 deletions

View File

@@ -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)};
}
}
Vector2D CBox::pos() const {
return {x, y};
}
Vector2D CBox::size() const {
return {w, h};
}