Type SonnerLayout

type SonnerLayout struct {
	Bounds  ui.Rect
	Painted int
}

SonnerLayout summarizes the painted stack without allocating per-toast layout storage.

Constructors

PaintSonner#

func PaintSonner(canvas *ui.Canvas, theme ui.Theme, viewport ui.Rect, toasts []SonnerToast, options SonnerOptions) SonnerLayout

PaintSonner paints a complete caller-owned stack using the official themed Toast recipe. It does not retain entries, run timers, schedule frames, or interpret swipe gestures.