Trait native_windows_gui::ControlT
[−]
[src]
pub trait ControlT<ID: Clone + Hash> { fn type_id(&self) -> TypeId; fn build(&self, ui: &Ui<ID>) -> Result<Box<Control>, Error>; fn events(&self) -> Vec<Event> { ... } }
Structures implementing this trait can be used by a Ui to build a Control
Required Methods
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 build(&self, ui: &Ui<ID>) -> Result<Box<Control>, Error>
Should instance the control and return it as a Boxui.commit
.