类型 Popover

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) Popover

BeginPopover creates one source-owned popover declaration.

方法

Begin#

func (popover Popover) Begin(title, description string) PopoverLayout

Begin paints the popup and keeps its layer/scope active for custom content.

Disabled#

func (popover Popover) Disabled() Popover

Disabled 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) PopoverLayout

Paint paints the standard title/description content and closes its layer.