BeginPopover#
func BeginPopover(canvas *ui.Canvas, theme ui.Theme, viewport, anchor ui.Rect, options PopoverOptions) PopoverBeginPopover creates one source-owned popover declaration.
API 文档由 Go 源码生成,内容为英文。
type Popover struct {
// contains filtered or unexported fields
}Popover is a nonmodal anchored surface. It never schedules delayed work.
BeginPopover#func BeginPopover(canvas *ui.Canvas, theme ui.Theme, viewport, anchor ui.Rect, options PopoverOptions) PopoverBeginPopover creates one source-owned popover declaration.
Begin#func (popover Popover) Begin(title, description string) PopoverLayoutBegin paints the popup and keeps its layer/scope active for custom content.
Disabled#func (popover Popover) Disabled() PopoverDisabled prevents a disabled trigger from producing popup content.
End#func (popover Popover) End()End closes the nonmodal scope and layer and routes Escape when requested. It also ends what the popover animates in and out.
Paint#func (popover Popover) Paint(title, description string) PopoverLayoutPaint paints the standard title/description content and closes its layer.