[][src]Struct native_windows_gui::MenuSeparator

pub struct MenuSeparator {
    pub handle: ControlHandle,
}

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]

pub fn builder() -> MenuSeparatorBuilder[src]

Trait Implementations

impl Debug for MenuSeparator[src]

impl Default for MenuSeparator[src]

impl Eq for MenuSeparator[src]

impl<'_> From<&'_ MenuSeparator> for ControlHandle[src]

impl PartialEq<ControlHandle> for MenuSeparator[src]

impl PartialEq<MenuSeparator> for MenuSeparator[src]

impl PartialEq<MenuSeparator> for ControlHandle[src]

impl StructuralEq for MenuSeparator[src]

impl StructuralPartialEq for MenuSeparator[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.