Struct native_windows_gui::ListBoxT [] [src]

pub struct ListBoxT<D: Clone + Display + 'static, ID: Hash + Clone> {
    pub collection: Vec<D>,
    pub position: (i32, i32),
    pub size: (u32, u32),
    pub visible: bool,
    pub disabled: bool,
    pub readonly: bool,
    pub multi_select: bool,
    pub parent: ID,
    pub font: Option<ID>,
}

Template that creates a listbox control

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

Members:
collection: Item collection of the listbox. The item type must implement Display
position: The start position of the listbox
size: The start size of the listbox
visible: If the listbox should be visible to the user
disabled: If the user can or can't use the listbox
readonly : If true, the user won't be able to select items in the listbox
multi_select: If true, allow the user to select more than one item
parent: The listbox parent
font: The listbox font. If None, use the system default

Fields

Trait Implementations

impl<D: Clone + Clone + Display + 'static, ID: Clone + Hash + Clone> Clone for ListBoxT<D, ID>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<D: Clone + Display + 'static, ID: Hash + Clone> ControlT<ID> for ListBoxT<D, 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.