Struct native_windows_gui::Timer [] [src]

pub struct Timer { /* fields omitted */ }

A timer control

Methods

impl Timer
[src]

Start the timer. If the timer was already running, it is restarted.

Stop the timer. If the timer was not started, this do nothing

Check if the timer is running. Return true if it is or false otherwise

Return the time elapsed since the timer started. If the timer was never started or was stopped, the returned value is 0.

Set the interval of the timer. If the timer is running, it will be applied when the timer is restarted

Return the interval of the timer

Trait Implementations

impl Control for Timer
[src]

Should return the underlying handle to the object

Should return the type of the control. For custom controls, the return value should be Undefined (the default).

If specified, should free any ressource allocated in the template build function. This includes functions like DestroyWindow.