mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-07 10:25:37 +00:00
ui/input,ui/layout: update comments
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+2
-2
@@ -10,8 +10,8 @@ type Queue interface {
|
|||||||
Events(k Key) []Event
|
Events(k Key) []Event
|
||||||
}
|
}
|
||||||
|
|
||||||
// Key is the stable identifier for an event handler. For a handler h, the
|
// Key is the stable identifier for an event handler.
|
||||||
// key is typically &h.
|
// For a handler h, the key is typically &h.
|
||||||
type Key interface{}
|
type Key interface{}
|
||||||
|
|
||||||
// Event is the marker interface for input events.
|
// Event is the marker interface for input events.
|
||||||
|
|||||||
@@ -8,11 +8,15 @@ import (
|
|||||||
"gioui.org/ui"
|
"gioui.org/ui"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
// Constraints represent a set of acceptable ranges for
|
||||||
|
// a widget's width and height.
|
||||||
type Constraints struct {
|
type Constraints struct {
|
||||||
Width Constraint
|
Width Constraint
|
||||||
Height Constraint
|
Height Constraint
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Constraint is a range of acceptable sizes in a single
|
||||||
|
// dimension.
|
||||||
type Constraint struct {
|
type Constraint struct {
|
||||||
Min, Max int
|
Min, Max int
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user