XwinDisplayEvent
Syntax | ||
int XwinDisplayEvent(struct XwinDisplay *dp,int wnum, struct XwinWindow **win,int mode,struct timeval *tmout); | ||
Header | ||
base/xwin.h | ||
Library | ||
xwin | ||
Description | ||
The The argument dp points the control structure of the X terminal display to process events from. The function will process events directed to a list of X windows. The argument win is an array containing the window pointer and the argument wnum is the number of window pointers contained in the array. The function will block waiting for certain X events to occur. The type of events accepted is controlled by the argument mode. A value of zero will block until a close window or terminate event occurs. A non-zero value will block until a close window, terminate or button press event occurs. The final argument tout defines the length of time that the function should block waiting for an event. If this is a | ||
Returns | ||
Returns zero if the function timed out, (1) if a close window or terminate event occurs and (2) if a button is pressed. On error, (-1) is returned. | ||
Errors | ||
On error, (-1) is returned. | ||
Example | ||
|