Refactor layout and size policies - dirty

This commit is contained in:
IlyaShurupov 2024-10-11 16:48:44 +03:00
parent e71b8a5230
commit 89cca1b90e
8 changed files with 284 additions and 96 deletions

View file

@ -253,7 +253,7 @@ namespace tp {
return out;
}
Vec2<Type> center() { return pos + size / 2.f; }
Vec2<Type> center() const { return pos + size / 2.f; }
// splits by Factor Horizontally returning Left rect
Rect<Type> splitByFactorHL(halnf factor) {