mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-01 07:35:40 +00:00
layout: document how Inset modifies constraints
Signed-off-by: Chris Waldon <christopher.waldon.dev@gmail.com>
This commit is contained in:
+3
-1
@@ -109,7 +109,9 @@ func (c Constraints) Constrain(size image.Point) image.Point {
|
||||
return size
|
||||
}
|
||||
|
||||
// Inset adds space around a widget.
|
||||
// Inset adds space around a widget by decreasing its maximum
|
||||
// constraints. The minimum constraints will be adjusted to ensure
|
||||
// they do not exceed the maximum.
|
||||
type Inset struct {
|
||||
Top, Right, Bottom, Left unit.Value
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user