Timer

A repeating or one-shot timer bound to an owner widget's window.

Constructors

this
this(Widget owner)

Create a timer owned by owner.

Members

Functions

isRunning
bool isRunning()

Whether the timer is currently running.

start
void start(int intervalMs, bool oneShot)

Start (or restart) the timer.

stop
void stop()

Stop the timer. Safe to call when not running.

Variables

onTick
Event!() onTick;

Fired on every tick.

Meta