[−][src]Struct native_windows_gui::MenuSeparator
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
impl MenuSeparator
[src]
Trait Implementations
impl Debug for MenuSeparator
[src]
impl Default for MenuSeparator
[src]
fn default() -> MenuSeparator
[src]
impl Eq for MenuSeparator
[src]
impl<'_> From<&'_ MenuSeparator> for ControlHandle
[src]
fn from(control: &MenuSeparator) -> Self
[src]
impl PartialEq<ControlHandle> for MenuSeparator
[src]
fn eq(&self, other: &ControlHandle) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<MenuSeparator> for MenuSeparator
[src]
fn eq(&self, other: &MenuSeparator) -> bool
[src]
fn ne(&self, other: &MenuSeparator) -> bool
[src]
impl PartialEq<MenuSeparator> for ControlHandle
[src]
fn eq(&self, other: &MenuSeparator) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for MenuSeparator
[src]
impl StructuralPartialEq for MenuSeparator
[src]
Auto Trait Implementations
impl RefUnwindSafe for MenuSeparator
impl !Send for MenuSeparator
impl !Sync for MenuSeparator
impl Unpin for MenuSeparator
impl UnwindSafe for MenuSeparator
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,