mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 18:35:34 +00:00
ui/input,ui/layout: update comments
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -8,11 +8,15 @@ import (
|
||||
"gioui.org/ui"
|
||||
)
|
||||
|
||||
// Constraints represent a set of acceptable ranges for
|
||||
// a widget's width and height.
|
||||
type Constraints struct {
|
||||
Width Constraint
|
||||
Height Constraint
|
||||
}
|
||||
|
||||
// Constraint is a range of acceptable sizes in a single
|
||||
// dimension.
|
||||
type Constraint struct {
|
||||
Min, Max int
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user