New Page 1

IUP - Portable User Interface

IupTimer

Creates a timer which periodicaly invokes a callback when the time is up. Each timer should be destroyed using IupDestroy.

Creation

Ihandle* IupTimer(); [in C]
iup.timer() -> (elem: ihandle) [in Lua] 
timer() [in LED]

The function returns the identifier of the created handle, or NULL if an error occurs.

Attributes

TIME: The time interval in miliseconds.

RUN: Starts and stops the timer. Possible values: "YES" or "NO".

Callbacks

ACTION_CB: Called when the time is up.

int function(Ihandle *self); [in C]
elem:action_cb() -> (ret: number) [in Lua]

   self: Timer handle.

Examples