Skip to main content

install_tooltip_registry

Function install_tooltip_registry 

Source
pub fn install_tooltip_registry(contents: Vec<TooltipContent>)
Expand description

Install the tooltip registry for the current thread. Called once by TeksiloAppBuilder::register_tooltips before the first frame builds. Panics in debug builds on double-install; logs and keeps the first installation in release.

contents may hold several registrations for one key, because register_tooltips accumulates across calls so that plugins, extensions and sibling crates can each contribute a catalogue. The first registration of a key wins, matching I18nConfig::compile_in: the application registers first, and a later contributor cannot silently shadow one of its tooltips. Contributors should namespace their keys (myext-panel-title).