Struct native_windows_gui::SeparatorT
[−]
[src]
pub struct SeparatorT<ID: Hash + Clone> {
pub parent: ID,
}A menu item separator.
Member:
- parent: The parent. Must point to a
Menucontrol
Fields
parent: ID
Trait Implementations
impl<ID: Clone + Hash + Clone> Clone for SeparatorT<ID>[src]
fn clone(&self) -> SeparatorT<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<ID: Hash + Clone> ControlT<ID> for SeparatorT<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.