pub trait ToolbarOverflow {
// Required method
fn toolbar_menu_form(&self) -> ToolbarAction;
}Expand description
A widget that knows how to represent itself in a Toolbar’s overflow menu
when it is collapsed (NSToolbar menuFormRepresentation / Qt
QWidgetAction). Implement this on a widget and add it with
ToolbarItem::collapsible to make it overflow into the chevron menu as
the returned ToolbarAction (a menu row), instead of staying pinned.
For widgets that are best represented in the menu as themselves (a
ComboBox, a slider) rather than as a one-shot menu row, use
ToolbarItem::overflow_widget instead — it embeds a live widget in the
menu.
Required Methods§
The menu-form representation shown when this widget overflows.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".