Documentation
¶
Overview ¶
Package sheet is the sheet base's dialogs, menus and docks come up as: a panel from an edge of the window over a fading backdrop.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Layer ¶
type Layer struct {
Motion *Motion
Side core.Placement
Backdrop parts.Part
BackdropPress func()
Panel parts.Part
Starting parts.Part
Ending parts.Part
// Swipe lets a finger drag the panel down, and Swiped hears a release
// that asks it to close.
Swipe bool
Swiped func()
Cancel func()
// Confirm, when set, is what Return does while the sheet is shown.
Confirm func()
Role core.Role
Label string
LabelFunc func() string
AccessibilityDescription string
AccessibilityDescriptionFunc func() string
TestID string
Content []core.Node
// Layer styles the overlay holding the backdrop and the panel.
Layer parts.Part
}
Layer is what a sheet shows while its motion is shown: a backdrop over the whole root view whose presses backdropPress hears, fading with the motion, and the panel on side.
type Motion ¶
type Motion struct {
// contains filtered or unexported fields
}
Motion moves a panel in from an edge over a fading backdrop and back out, as NSH's SheetMotion: the platform runs both on animated values, and the parts stay in the tree until the motion out is over.