Skip to main content

Module surface

Module surface 

Source
Expand description

ToastSurface — the rendered chrome of one toast.

Built by ToastHost for each live entry. Owns the severity glyph, title + body column, action row, close button, and the Role::Alert / Role::Status AccessKit node mapping. The visual chrome (background, padding, layout) is delegated to the active ToastStyle via make_body.

Structs§

ToastSurface
One rendered toast — chrome owned by ToastStyle::make_body, functional pieces (glyph, body, action row, close button) owned by this widget. Built fresh for each entry — there is no internal Signal<Option<…>> slot binding (the host rebuilds on changes).
ToastSurfaceData
Snapshot data passed to a ToastSurface for one live entry. Owned by the host’s LiveEntry and cloned into the surface at build time. Rc<...> fields keep callbacks cheap to copy.