[][src]Macro native_windows_gui::nwg_checkbox

macro_rules! nwg_checkbox {
    (parent=$p:expr; $( $i:ident=$v:expr );* ) => { ... };
}

Sane defaults for the CheckBox control. Requires a parent.

Defaults:
• text: ""
• position: (0, 0)
• size: (100, 30)
• visible: true
• disabled: false
• checkstate: CheckState::Unchecked
• tristate: false
• font: None

Usage:
nwg_checkbox!(parent="MyParent";)
nwg_checkbox!(parent="MyParent"; visible=false; size=(10, 10))
nwg_checkbox!(parent="MyParent"; \* Any combinations of the template properties*\)