~eliasnaur/gio

5a8e1c5acfa84c3bb95fe7ecf8a208853b1143d3 — Elias Naur 8 days ago 013ea39
layout: expand Constraints documentation

Signed-off-by: Elias Naur <mail@eliasnaur.com>
1 files changed, 7 insertions(+), 0 deletions(-)

M layout/layout.go
M layout/layout.go => layout/layout.go +7 -0
@@ 11,6 11,13 @@ import (
)

// Constraints represent the minimum and maximum size of a widget.
//
// A widget does not have to treat its constraints as "hard". For
// example, if it's passed a constraint with a minimum size that's
// smaller than its actual minimum size, it should return its minimum
// size dimensions instead. Parent widgets should deal appropriately
// with child widgets that return dimensions that do not fit their
// constraints (for example, by clipping).
type Constraints struct {
	Min, Max image.Point
}