Tk_GetUserInactiveTime

Langue: en

Autres versions - même langue

Version: 8.5 (mandriva - 22/10/07)

Section: 3 (Bibliothèques de fonctions)


 

NAME

Tk_GetUserInactiveTime, Tk_ResetUserInactiveTime - discover user inactivity time

SYNOPSIS

 #include <tk.h>
 
 long
 Tk_GetUserInactiveTime(display)
 
 Tk_GetUserInactiveTime(display)
 
 

ARGUMENTS

Display  *display   (in)
The display on which the user inactivity timer is to be queried or reset.
 

 
 

DESCRIPTION

Tk_GetUserInactiveTime returns the number of milliseconds that have passed since the last user interaction (usually via keyboard or mouse) with the respective display. On systems and displays that don't support querying the user inactiviy time, -1 is returned. Tk_GetUserInactiveTime resets the user inactivity timer of the given display to zero. On windowing systems that don't support multiple displays display can be passed as NULL.

KEYWORDS

idle, inactive