forked from joejulian/gio
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user