IMainMenu
trait · ferroui-base · v0.5.0
trait IMainMenu
Defines the interface for a top-level menu.
Members
is_open
fn is_open(self: &Self) -> bool
Whether the menu is open.
close
fn close(self: &Self)
Closes the menu.
open
fn open(self: &Self)
Opens the menu in response to the Alt/F10 key.
closed
fn closed(self: &Self, handler: Rc<dyn Fn(&RoutedEventArgs) -> ()>) -> Rc<dyn IDisposable>
Occurs when the main menu closes. Disposing the returned handle unsubscribes.
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.