idle: Control a background/idle function

Description Usage Arguments Value Note Author(s) See Also

Description

DEPRECATED!! (compatibility wrappers for RGtk 1!)

These functions allow one to register and remove a function that is called whenever Gtk has nothing else to do. In other words, these are background tasks that have less priority than timers and user interface events.

Usage

1
2

Arguments

f

the function should take one or zero arguments depending on whether the argument data is given. The function should return a logical value. If it returns FALSE, the timer is removed. If it returns TRUE, the timer is re-registered and will be called after interval milliseconds.

data

a value, which if specified, will be passed to the function f when it is invoked. This can be used to parameterize the function to have different functions. The same effect can be obtained using closures.

id

the object identifying the idle function in Gtk that was returned by a call to gtkAddTimeout.

Value

gtkAddTimeout returns an object of class "GtkIdleId". This is an integer giving the identifier returned by the low-level Gtk interface.

Note

THIS STUFF IS VERY OLD AND DEPRECATED (compatibility wrappers for RGtk 1)

This does not currently work when running directly in R. However, when running R inside another application such as GGobi, Gnumeric, etc. it and other event-loop facilities will work.

Author(s)

Duncan Temple Lang <duncan@research.bell-labs.com>

See Also

gtkAddTimeout gtkRemoveTimeout gtkAddCallback


RGtk2 documentation built on Oct. 14, 2021, 5:08 p.m.

Related to idle in RGtk2...