Macro native_windows_gui::nwg_combobox [] [src]

macro_rules! nwg_combobox {
    (data=$t:ty, parent=$p:expr; $( $i:ident=$v:expr );* ) => { ... };
    (parent=$p:expr; $( $i:ident=$v:expr );* ) => { ... };
}

Sane defaults for the Combobox control. Requires a parent.

Data parameter can be ommited if a default collection is passed.

Defaults:
• collection: []
• position: (0, 0)
• size: (100, 30)
• visible: true
• disabled: false
• placeholder: None
• font: None

Usage:
nwg_combobox!(data=String; parent="MyParent";)
nwg_combobox!(parent="MyParent"; visible=false; collection=vec!["TEST", "TEST2"])
nwg_combobox!(data=&'static str; parent="MyParent"; \* Any combinations of the template properties*\)