Struct native_windows_gui::ComboBoxT [] [src]

pub struct ComboBoxT<D: Clone + Display + 'static, ID: Hash + Clone, S: Clone + Into<String>> {
    pub collection: Vec<D>,
    pub position: (i32, i32),
    pub size: (u32, u32),
    pub visible: bool,
    pub disabled: bool,
    pub placeholder: Option<S>,
    pub parent: ID,
    pub font: Option<ID>,
}

Template that creates a combobox control

Available events:
Event::Destroyed, Event::SelectionChanged, Event::DoubleClick, Event::Focus, Event::Moved, Event::Resized, Event::Raw

Members:
collection: Item collection of the combobox. The item type must implement Display
position: The start position of the combobox
size: The start size of the combobox
visible: If the combobox should be visible to the user
disabled: If the user can or can't use the combobox
parent: The combobox parent
font: The combobox font. If None, use the system default

Fields

Trait Implementations

impl<D: Clone + Clone + Display + 'static, ID: Clone + Hash + Clone, S: Clone + Clone + Into<String>> Clone for ComboBoxT<D, ID, S>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<D: Clone + Display + 'static, ID: Hash + Clone, S: Clone + Into<String>> ControlT<ID> for ComboBoxT<D, ID, S>
[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.