Trait native_windows_gui::custom::Control
[−]
[src]
pub trait Control {
fn handle(&self) -> AnyHandle;
fn control_type(&self) -> ControlType { ... }
fn free(&mut self) { ... }
}Structures implementing this trait are controls that can be stored in a Ui
Required Methods
Provided Methods
fn control_type(&self) -> ControlType
Should return the type of the control. For custom controls, the return value should be Undefined (the default).
fn free(&mut self)
If specified, should free any ressource allocated in the template build function. This includes functions like DestroyWindow.
Implementors
impl Control for Windowimpl Control for Menuimpl Control for MenuItemimpl Control for Separatorimpl Control for Buttonimpl Control for TextInputimpl Control for TextBoximpl Control for CheckBoximpl Control for RadioButtonimpl Control for Labelimpl<D: Clone + Display> Control for ListBox<D>impl<D: Clone + Display> Control for ComboBox<D>impl Control for GroupBoximpl Control for ProgressBarimpl Control for DatePickerimpl Control for FileDialogimpl Control for Timerimpl<ID: Clone + Hash> Control for Canvas<ID>