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 Window
impl Control for Menu
impl Control for MenuItem
impl Control for Separator
impl Control for Button
impl Control for TextInput
impl Control for TextBox
impl Control for CheckBox
impl Control for RadioButton
impl Control for Label
impl<D: Clone + Display> Control for ListBox<D>
impl<D: Clone + Display> Control for ComboBox<D>
impl Control for GroupBox
impl Control for ProgressBar
impl Control for DatePicker
impl Control for FileDialog
impl Control for Timer
impl<ID: Clone + Hash> Control for Canvas<ID>