Skip to main content

with_tooltip_registry

Function with_tooltip_registry 

Source
pub fn with_tooltip_registry<R>(
    f: impl FnOnce(&TooltipRegistry) -> R,
) -> Option<R>
Expand description

Read-side helper used by the tooltip widget. Runs f with a borrowed reference to the installed registry. Returns None if no registry has been installed yet (early bootstrap, headless tests).