new widgets
This commit is contained in:
parent
3dce41ea39
commit
8f62c8f387
18 changed files with 373 additions and 43 deletions
|
|
@ -159,6 +159,10 @@ namespace tp {
|
|||
size = p3 - pos;
|
||||
}
|
||||
|
||||
Rect<Type> shrink(Type val) const {
|
||||
return { pos + val, size - val * 2 };
|
||||
}
|
||||
|
||||
// if only one point isInside
|
||||
bool clampOutside(Vec2<Type>& v1, Vec2<Type>& v2) {
|
||||
bool const in1 = isInside(v1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue