Type TooltipState

type TooltipState bool

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

Methods

Close#

func (TooltipState) Close() TooltipState

Close returns the closed state.

Dismiss#

func (TooltipState) Dismiss() TooltipState

Dismiss closes the tooltip after an application-owned dismiss action.

Escape#

func (TooltipState) Escape() TooltipState

Escape closes the tooltip after the runtime routes an Escape key press.

IsOpen#

func (state TooltipState) IsOpen() bool

IsOpen reports whether the tooltip should be painted.

Open#

func (TooltipState) Open() TooltipState

Open returns the open state.

OutsidePress#

func (TooltipState) OutsidePress() TooltipState

OutsidePress closes the tooltip after the runtime identifies an outside press.

Toggle#

func (state TooltipState) Toggle() TooltipState

Toggle returns the opposite visibility state.