xtd 0.2.0
Loading...
Searching...
No Matches
xtd::forms::native::timer Class Referencefinal
Inheritance diagram for xtd::forms::native::timer:
xtd::static_object

Definition

Contains timer native API.

Namespace
xtd::forms::native
Library
xtd.forms.native
Warning
Internal use only

Protected Static Methods

static intptr create (int32 interval, const delegate< void(const event_args &)> &tick)
 Create and start timer.
 
static void destroy (intptr timer)
 Stop and destroy timer.
 

Member Function Documentation

◆ create()

static intptr xtd::forms::native::timer::create ( int32  interval,
const delegate< void(const event_args &)> &  tick 
)
staticprotected

Create and start timer.

Parameters
intervalAn int32 specifying the number of milliseconds before the tick event is raised relative to the last occurrence of the tick event. The value cannot be less than one.
tickThe delegate called at each elapsed interval until the destroy call.
Returns
New created timer handle.
Warning
Internal use only

◆ destroy()

static void xtd::forms::native::timer::destroy ( intptr  timer)
staticprotected

Stop and destroy timer.

Parameters
timertimer handle.
Warning
Internal use only

The documentation for this class was generated from the following file: