Struct native_windows_gui::TimerT
[−]
[src]
pub struct TimerT { pub interval: u32, }
A template that creates a timer. Note that because the timer callbacks must be added AFTER its creation, it cannot start automatically.
Events:
Event::Destroyed, Event::Tick
Members:
• interval
: The timer interval in milliseconds
Fields
interval: u32
Trait Implementations
impl Clone for TimerT
[src]
fn clone(&self) -> TimerT
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<ID: Hash + Clone> ControlT<ID> for TimerT
[src]
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 events(&self) -> Vec<Event>
Should return the events supported by the control.
fn build(&self, ui: &Ui<ID>) -> Result<Box<Control>, Error>
Should instance the control and return it as a Box. If an error is raised, it will be returned by ui.commit
.