Type HoverCard

type HoverCard struct {
	// contains filtered or unexported fields
}

HoverCard is a nonmodal preview card with no timers or background work.

Constructors

BeginHoverCard#

func BeginHoverCard(canvas *ui.Canvas, theme ui.Theme, viewport, anchor ui.Rect, options HoverCardOptions) HoverCard

BeginHoverCard creates one preview declaration.

Methods

Begin#

func (card HoverCard) Begin(title, description string) HoverCardLayout

Begin paints the preview and leaves its layer active for custom content.

Disabled#

func (card HoverCard) Disabled() HoverCard

Disabled suppresses a preview opened from a disabled trigger.

End#

func (card HoverCard) End()

End closes the preview layer opened by Begin. It also ends what the card animates in and out.

Paint#

func (card HoverCard) Paint(title, description string) HoverCardLayout

Paint paints standard title and description content.