IDLE_ACTION

IUP - Portable User Interface

IDLE_ACTION

Predefined IUP action, generated when there are no events.

Callback

int function(void); [in C]

Return: IUP_CLOSE will be processed.

Notes

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.

In GTK it sets an idle function.

It can only be set using IupSetFunction.

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

Browse for Example Files

See Also

IupSetFunction, IupTimer.