类型 HoverCardState

API 文档由 Go 源码生成,内容为英文。

type HoverCardState bool

HoverCardState is caller-owned preview visibility. Its zero value is closed. Transitions are synchronous value operations and never schedule work.

方法

Close#

func (HoverCardState) Close() HoverCardState

Close returns the closed state.

Dismiss#

func (HoverCardState) Dismiss() HoverCardState

Dismiss closes the hover card after an application-owned dismiss action.

Escape#

func (HoverCardState) Escape() HoverCardState

Escape closes the hover card after the runtime routes an Escape key press.

IsOpen#

func (state HoverCardState) IsOpen() bool

IsOpen reports whether the hover card should be painted.

Open#

func (HoverCardState) Open() HoverCardState

Open returns the open state.

OutsidePress#

func (HoverCardState) OutsidePress() HoverCardState

OutsidePress closes the hover card after the runtime identifies an outside press.

Toggle#

func (state HoverCardState) Toggle() HoverCardState

Toggle returns the opposite visibility state.