IUP_IDLE_ACTION

IUP - Portable User Interface

IDLE_ACTION

Predefined IUP action, generated when there are no events.

Callback

int function(void); [in C]

Note

In Windows this callback changes the message loop to a more CPU consuming one. Set to NULL when not using.

In Motif it register a background processing procedure.

Often used to perform background operations. For example, a time-consuming drawing operation may allow the user to take a decision before the operation is over. But it is safer to use a timer for this purpose.

Lua BindingĀ 

To modify this action use the function iup.SetIdle(myfunction) in Lua. Using nil as a parameter to remove the association.

Examples

See Also

IupSetFunction, IupTimer.