FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    IAccessKeyHandler

    trait · ferroui-base · v0.5.0

    trait IAccessKeyHandler
    

    Defines the interface for classes that handle access keys for a window.

    View source

    Members

    main_menu

    fn main_menu(self: &Self) -> Option<Rc<dyn IMainMenu>>
    

    The window's main menu.

    Source

    set_main_menu

    fn set_main_menu(self: &Self, value: Option<Rc<dyn IMainMenu>>)
    

    Sets the window's main menu.

    Source

    set_owner

    fn set_owner(self: &Self, owner: &Ref<InputElement>)
    

    Sets the owner of the access key handler.

    This method can only be called once, typically by the owner itself on creation.

    Source

    register

    fn register(self: &Self, access_key: &str, element: &Ref<InputElement>)
    

    Registers an input element to be associated with an access key.

    Source

    unregister

    fn unregister(self: &Self, element: &InputElement)
    

    Unregisters the access keys associated with the input element.

    Source

    Trait implementations

    Availability

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