layout: [API] remove FRect

We're about to unexport f32.Rectangle, this change removes the only
public API for it.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2022-04-26 10:46:20 +02:00
parent 3d37491342
commit fc79ec5c94
4 changed files with 224 additions and 13 deletions
-7
View File
@@ -85,13 +85,6 @@ func FPt(p image.Point) f32.Point {
}
}
// FRect converts a rectangle to a f32.Rectangle.
func FRect(r image.Rectangle) f32.Rectangle {
return f32.Rectangle{
Min: FPt(r.Min), Max: FPt(r.Max),
}
}
// Constrain a size so each dimension is in the range [min;max].
func (c Constraints) Constrain(size image.Point) image.Point {
if min := c.Min.X; size.X < min {