Struct native_windows_gui::MenuSeparator [−][src]
pub struct MenuSeparator { pub handle: ControlHandle, }
Expand description
A menu separator. Can be added between two menu item to separte them. Cannot be added to a menubar.
Requires the menu
feature.
Builder parameters:
- parent: A top level window or a menu. With a top level window, the menu item is added to the menu bar.
Control events:
- OnMenuHover: When the user hovers the menu
use native_windows_gui as nwg; fn separator(sep: &mut nwg::MenuSeparator, menu: &nwg::Menu) -> Result<(), nwg::NwgError> { nwg::MenuSeparator::builder() .parent(menu) .build(sep) }
Fields
handle: ControlHandle
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for MenuSeparator
impl !Send for MenuSeparator
impl !Sync for MenuSeparator
impl Unpin for MenuSeparator
impl UnwindSafe for MenuSeparator