[][src]Macro native_windows_gui::nwg_get

macro_rules! nwg_get {
    ( $ui:ident; ($n:expr, $t:ty) ) => { ... };
    ( $ui:ident; [ $( ($n:expr, $t:ty) ),* ] ) => { ... };
}

Return controls from the Ui. Panics if one of the controls could not be retrieved.
To avoid the panic, use ui.get directly.

Usage:
let control = nwg_get!(ui; (control ID, control type))
let (control1, control2) = nwg_get!(ui; [(control1_ID, control1 type), (control2_ID, control2_type)])