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

Formats the value using the given formatter. Read more

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 !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.