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