MenuItemProps
trait · ferroui-view · v0.5.0
trait MenuItemProps: ElementBuilder
The properties and routed events of MenuItem.
Members
commandhot_keycommand_parametericoninput_gestureis_sub_menu_openstays_open_on_clicktoggle_typeis_checkedgroup_nameon_clickon_pointer_entered_itemon_pointer_exited_itemon_submenu_opened
command
fn command<M>(self: Self, value: impl IntoProp<Option<std::rc::Rc<dyn ferroui_base::input::ICommand>>, M>) -> Self
Sets MenuItem::command_property.
hot_key
fn hot_key<M>(self: Self, value: impl IntoProp<Option<ferroui_base::input::KeyGesture>, M>) -> Self
Sets MenuItem::hot_key_property.
command_parameter
fn command_parameter<M>(self: Self, value: impl IntoProp<Option<ferroui_base::BoxedValue>, M>) -> Self
Sets MenuItem::command_parameter_property.
icon
fn icon<M>(self: Self, value: impl IntoProp<Option<ferroui_base::BoxedValue>, M>) -> Self
Sets MenuItem::icon_property.
input_gesture
fn input_gesture<M>(self: Self, value: impl IntoProp<Option<ferroui_base::input::KeyGesture>, M>) -> Self
Sets MenuItem::input_gesture_property.
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.
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.
toggle_type
fn toggle_type<M>(self: Self, value: impl IntoProp<ferroui_controls::MenuItemToggleType, M>) -> Self
Sets MenuItem::toggle_type_property.
is_checked
fn is_checked<M>(self: Self, value: impl IntoProp<bool, M>) -> Self
Sets MenuItem::is_checked_property.
group_name
fn group_name<M>(self: Self, value: impl IntoProp<Option<String>, M>) -> Self
Sets MenuItem::group_name_property.
on_click
fn on_click(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
Handles MenuItem::click_event.
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.
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.
on_submenu_opened
fn on_submenu_opened(self: Self, handler: impl Fn(&ferroui_base::interactivity::RoutedEventArgs) -> () + 'static) -> Self
Handles MenuItem::submenu_opened_event.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.