pub trait NativeMenuItemProps: ElementBuilder {
// Provided methods
fn menu<M>(self, value: impl IntoProp<Option<Ref<NativeMenu>>, M>) -> Self { ... }
fn icon<M>(self, value: impl IntoProp<Option<Rc<dyn IBitmap>>, M>) -> Self { ... }
fn header<M>(self, value: impl IntoProp<Option<String>, M>) -> Self { ... }
fn tool_tip<M>(self, value: impl IntoProp<Option<String>, M>) -> Self { ... }
fn gesture<M>(self, value: impl IntoProp<Option<KeyGesture>, M>) -> Self { ... }
fn is_checked<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
fn toggle_type<M>(self, value: impl IntoProp<MenuItemToggleType, M>) -> Self { ... }
fn command<M>(
self,
value: impl IntoProp<Option<Rc<dyn ICommand>>, M>,
) -> Self { ... }
fn command_parameter<M>(
self,
value: impl IntoProp<Option<BoxedValue>, M>,
) -> Self { ... }
fn is_enabled<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
fn is_visible<M>(self, value: impl IntoProp<bool, M>) -> Self { ... }
}Expand description
The properties and routed events of NativeMenuItem.
Provided Methods§
Sourcefn gesture<M>(self, value: impl IntoProp<Option<KeyGesture>, M>) -> Self
fn gesture<M>(self, value: impl IntoProp<Option<KeyGesture>, M>) -> Self
Sourcefn is_checked<M>(self, value: impl IntoProp<bool, M>) -> Self
fn is_checked<M>(self, value: impl IntoProp<bool, M>) -> Self
Sourcefn toggle_type<M>(self, value: impl IntoProp<MenuItemToggleType, M>) -> Self
fn toggle_type<M>(self, value: impl IntoProp<MenuItemToggleType, M>) -> Self
Sourcefn command_parameter<M>(
self,
value: impl IntoProp<Option<BoxedValue>, M>,
) -> Self
fn command_parameter<M>( self, value: impl IntoProp<Option<BoxedValue>, M>, ) -> Self
Sourcefn is_enabled<M>(self, value: impl IntoProp<bool, M>) -> Self
fn is_enabled<M>(self, value: impl IntoProp<bool, M>) -> Self
Sourcefn is_visible<M>(self, value: impl IntoProp<bool, M>) -> Self
fn is_visible<M>(self, value: impl IntoProp<bool, M>) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".