Macro native_windows_gui::subclass_control [−][src]
macro_rules! subclass_control { ($ty:ident, $base_type:ident, $field: ident) => { ... }; }
Expand description
Automatically implements the functionnalities required to process an external struct as a NWG control
#[macro_use] extern crate native_windows_gui as nwg; pub struct TestControl { edit: nwg::TextInput, custom_data: String, } subclass_control!(TestControl, TextInput, edit);