Skip to main content

MenuBaseImpl

Trait MenuBaseImpl 

Source
pub trait MenuBaseImpl: SelectingItemsControlImpl + Upcast<MenuBase> {
    // Provided methods
    fn close(this: &Self) { ... }
    fn open(this: &Self) { ... }
    fn on_submenu_opened(this: &Self, e: &RoutedEventArgs) { ... }
}
Expand description

The overridable members introduced by the class.

Provided Methods§

Source

fn close(this: &Self)

Closes the menu.

Source

fn open(this: &Self)

Opens the menu.

Source

fn on_submenu_opened(this: &Self, e: &RoutedEventArgs)

Called when a submenu opens somewhere in the menu.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§