FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IMainMenu

    trait · ferroui-base · v0.5.0

    trait IMainMenu
    

    Defines the interface for a top-level menu.

    View source

    Members

    is_open

    fn is_open(self: &Self) -> bool
    

    Whether the menu is open.

    Source

    close

    fn close(self: &Self)
    

    Closes the menu.

    Source

    open

    fn open(self: &Self)
    

    Opens the menu in response to the Alt/F10 key.

    Source

    closed

    fn closed(self: &Self, handler: Rc<dyn Fn(&RoutedEventArgs) -> ()>) -> Rc<dyn IDisposable>
    

    Occurs when the main menu closes. Disposing the returned handle unsubscribes.

    Source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.