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
text: S
parent: ID
disabled: bool
Trait Implementations
impl<S: Clone + Clone + Into<String>, ID: Clone + Hash + Clone> Clone for MenuT<S, ID>[src]
fn clone(&self) -> MenuT<S, ID>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl<S: Clone + Into<String>, ID: Hash + Clone> ControlT<ID> for MenuT<S, ID>[src]
fn type_id(&self) -> TypeId
Should return the TypeId of the generated control. For example a WindowT struct returns the TypeId of a Window struct.
fn events(&self) -> Vec<Event>
Should return the events supported by the control.
fn build(&self, ui: &Ui<ID>) -> Result<Box<Control>, Error>
Should instance the control and return it as a Box. If an error is raised, it will be returned by ui.commit.