FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    NativeMenuItemProps

    trait · ferroui-view · v0.5.0

    trait NativeMenuItemProps: ElementBuilder
    

    The properties and routed events of NativeMenuItem.

    View source

    Members

    menu

    fn menu<M>(self: Self, value: impl IntoProp<Option<ferroui_base::Ref<ferroui_controls::NativeMenu>>, M>) -> Self
    

    Sets NativeMenuItem::menu_property.

    Source

    icon

    fn icon<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::media::imaging::IBitmap>>, M>) -> Self
    

    Sets NativeMenuItem::icon_property.

    Source

    header

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

    Sets NativeMenuItem::header_property.

    Source

    tool_tip

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

    Sets NativeMenuItem::tool_tip_property.

    Source

    gesture

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

    Sets NativeMenuItem::gesture_property.

    Source

    is_checked

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

    Sets NativeMenuItem::is_checked_property.

    Source

    toggle_type

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

    Sets NativeMenuItem::toggle_type_property.

    Source

    command

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

    Sets NativeMenuItem::command_property.

    Source

    command_parameter

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

    Sets NativeMenuItem::command_parameter_property.

    Source

    is_enabled

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

    Sets NativeMenuItem::is_enabled_property.

    Source

    is_visible

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

    Sets NativeMenuItem::is_visible_property.

    Source

    Trait implementations

    Availability

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