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
collection: Vec<D>
position: (i32, i32)
size: (u32, u32)
visible: bool
disabled: bool
readonly: bool
multi_select: bool
parent: ID
font: Option<ID>
Trait Implementations
impl<D: Clone + Clone + Display + 'static, ID: Clone + Hash + Clone> Clone for ListBoxT<D, ID>[src]
fn clone(&self) -> ListBoxT<D, 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<D: Clone + Display + 'static, ID: Hash + Clone> ControlT<ID> for ListBoxT<D, 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.