IAccessKeyHandler
trait · ferroui-base · v0.5.0
trait IAccessKeyHandler
Defines the interface for classes that handle access keys for a window.
Members
main_menu
fn main_menu(self: &Self) -> Option<Rc<dyn IMainMenu>>
The window's main menu.
set_main_menu
fn set_main_menu(self: &Self, value: Option<Rc<dyn IMainMenu>>)
Sets the window's main menu.
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.
register
fn register(self: &Self, access_key: &str, element: &Ref<InputElement>)
Registers an input element to be associated with an access key.
unregister
fn unregister(self: &Self, element: &InputElement)
Unregisters the access keys associated with the input element.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.