Struct native_windows_gui::MenuT [] [src]

pub struct MenuT<S: Clone + Into<String>, ID: Hash + Clone> {
    pub text: S,
    pub parent: ID,
    pub disabled: bool,
}

A template to create menu controls

Events:
Event::Destroyed

Members:
text : The menu text
parent : ID of the parent control to add the menu to

Fields

Trait Implementations

impl<S: Clone + Clone + Into<String>, ID: Clone + Hash + Clone> Clone for MenuT<S, ID>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<S: Clone + Into<String>, ID: Hash + Clone> ControlT<ID> for MenuT<S, ID>
[src]

Should return the TypeId of the generated control. For example a WindowT struct returns the TypeId of a Window struct.

Should return the events supported by the control.

Should instance the control and return it as a Box. If an error is raised, it will be returned by ui.commit.