Establish a callback when a condition becomes true on a file descriptor.
source : a file descriptor.
condition : the condition.
function : the callback function.
data : callback data passed to function.
destroy : callback function to call with data when the input handler is removed.
Returns : a tag that can later be used as an argument to gdk_input_remove().
enum GdkInputCondition
|
A set of bit flags used to specify conditions for which an input callback will be triggered. The three members of this enumeration correspond to the readfds, writefds, and exceptfds arguments to the select system call.
GDK_INPUT_READ the file descriptor has become available for reading. (Or, as is standard in Unix, a socket or pipe was closed at the other end; this is the case if a subsequent read on the file descriptor returns a count of zero.)
GDK_INPUT_WRITE the file descriptor has become available for writing.
GDK_INPUT_EXCEPTION an exception was raised on the file descriptor.
|
A callback function that will be called when some condition occurs.
data : the user data passed to gdk_input_add() or gdk_input_add_full().
source : the source where the condition occurred.
condition : the triggering condition.
|
A callback function called when a piece of user data is no longer being stored by GDK. Will typically free the structure or object that data points to.
data : the user data.
|
Establish a callback when a condition becomes true on a file descriptor.
source : a file descriptor.
condition : the condition.
function : the callback function.
data : callback data passed to function.
Returns : a tag that can later be used as an argument to gdk_input_remove().
|
Remove a callback added with gdk_input_add() or gdk_input_add_full().
tag : the tag returned when the callback was set up.
See Also
GLib Main Loop
The main loop in which input callbacks run.
IO Channels
A newer and more flexible way of doing IO callbacks.
Input Devices
Name
Input Devices -- Functions for handling extended input devices.
Synopsis
|
Description
In addition to the normal keyboard and mouse input devices, GTK+ also contains support for extended input devices. In particular, this support is targeted at graphics tablets. Graphics tablets typically return sub-pixel positioning information and possibly information about the pressure and tilt of the stylus. Under X, the support for extended devices is done through the XInput extension.