pub fn register_toolbar_value(f: Rc<dyn Fn(&ToolbarValue)>) -> u64Expand description
Register a value callback for a search or toggle item and return its dispatch id (nonzero). The id comes from the menu action counter, so toolbar and menu ids never collide.