| Line 87... |
Line 87... |
| 87 |
}
|
87 |
}
|
| 88 |
|
88 |
|
| 89 |
The idle event handler \code{onIdle} should be a function with no
|
89 |
The idle event handler \code{onIdle} should be a function with no
|
| 90 |
arguments. If the function is undefined or \code{NULL}, then R will
|
90 |
arguments. If the function is undefined or \code{NULL}, then R will
|
| 91 |
typically call a system function which (efficiently) waits for the next
|
91 |
typically call a system function which (efficiently) waits for the next
|
| 92 |
event to appear on a filehandle. Otherwise, the idle event handler will
|
92 |
event to appear on a file handle. Otherwise, the idle event handler will
|
| 93 |
be called whenever the event queue of the graphics device was found to
|
93 |
be called whenever the event queue of the graphics device was found to
|
| 94 |
be empty, i.e. in an infinite loop. This feature is intended to allow
|
94 |
be empty, i.e. in an infinite loop. This feature is intended to allow
|
| 95 |
animations to respond to user input, and could be CPU-intensive.
|
95 |
animations to respond to user input, and could be CPU-intensive.
|
| 96 |
Currently, \code{onIdle} is only implemented for \code{X11()} devices.
|
96 |
Currently, \code{onIdle} is only implemented for \code{X11()} devices.
|
| 97 |
|
97 |
|