FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MenuItemProps

    trait · ferroui-view · v0.5.0

    trait MenuItemProps: ElementBuilder
    

    The properties and routed events of MenuItem.

    View source

    Members

    command

    fn command<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::input::ICommand>>, M>) -> Self
    

    Sets MenuItem::command_property.

    Source

    hot_key

    fn hot_key<M>(self: Self, value: impl IntoProp<Option<ferroui_base::input::KeyGesture>, M>) -> Self
    

    Sets MenuItem::hot_key_property.

    Source

    command_parameter

    fn command_parameter<M>(self: Self, value: impl IntoProp<Option<ferroui_base::BoxedValue>, M>) -> Self
    

    Sets MenuItem::command_parameter_property.

    Source

    icon

    fn icon<M>(self: Self, value: impl IntoProp<Option<ferroui_base::BoxedValue>, M>) -> Self
    

    Sets MenuItem::icon_property.

    Source

    input_gesture

    fn input_gesture<M>(self: Self, value: impl IntoProp<Option<ferroui_base::input::KeyGesture>, M>) -> Self
    

    Sets MenuItem::input_gesture_property.

    Source

    is_sub_menu_open

    fn is_sub_menu_open<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
    

    Sets MenuItem::is_sub_menu_open_property.

    Source

    stays_open_on_click

    fn stays_open_on_click<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
    

    Sets MenuItem::stays_open_on_click_property.

    Source

    toggle_type

    fn toggle_type<M>(self: Self, value: impl IntoProp<ferroui_controls::MenuItemToggleType, M>) -> Self
    

    Sets MenuItem::toggle_type_property.

    Source

    is_checked

    fn is_checked<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
    

    Sets MenuItem::is_checked_property.

    Source

    group_name

    fn group_name<M>(self: Self, value: impl IntoProp<Option<String>, M>) -> Self
    

    Sets MenuItem::group_name_property.

    Source

    on_click

    fn on_click(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
    

    Handles MenuItem::click_event.

    Source

    on_pointer_entered_item

    fn on_pointer_entered_item(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
    

    Handles MenuItem::pointer_entered_item_event.

    Source

    on_pointer_exited_item

    fn on_pointer_exited_item(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
    

    Handles MenuItem::pointer_exited_item_event.

    Source

    on_submenu_opened

    fn on_submenu_opened(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
    

    Handles MenuItem::submenu_opened_event.

    Source

    Trait implementations

    Availability

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