NativeMenuItemProps
trait · ferroui-view · v0.5.0
trait NativeMenuItemProps: ElementBuilder
The properties and routed events of NativeMenuItem.
Members
menuiconheadertool_tipgestureis_checkedtoggle_typecommandcommand_parameteris_enabledis_visible
menu
fn menu<M>(self: Self, value: impl IntoProp<Option<ferroui_base::Ref<ferroui_controls::NativeMenu>>, M>) -> Self
Sets NativeMenuItem::menu_property.
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.
header
fn header<M>(self: Self, value: impl IntoProp<Option<String>, M>) -> Self
Sets NativeMenuItem::header_property.
tool_tip
fn tool_tip<M>(self: Self, value: impl IntoProp<Option<String>, M>) -> Self
Sets NativeMenuItem::tool_tip_property.
gesture
fn gesture<M>(self: Self, value: impl IntoProp<Option<ferroui_base::input::KeyGesture>, M>) -> Self
Sets NativeMenuItem::gesture_property.
is_checked
fn is_checked<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
Sets NativeMenuItem::is_checked_property.
toggle_type
fn toggle_type<M>(self: Self, value: impl IntoProp<ferroui_controls::MenuItemToggleType, M>) -> Self
Sets NativeMenuItem::toggle_type_property.
command
fn command<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::input::ICommand>>, M>) -> Self
Sets NativeMenuItem::command_property.
command_parameter
fn command_parameter<M>(self: Self, value: impl IntoProp<Option<ferroui_base::BoxedValue>, M>) -> Self
Sets NativeMenuItem::command_parameter_property.
is_enabled
fn is_enabled<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
Sets NativeMenuItem::is_enabled_property.
is_visible
fn is_visible<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
Sets NativeMenuItem::is_visible_property.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.