Defines a procedure to call when an event needs to be converted from the host format to the wire format.
Enhanced X-Windows Library (libX11.a)
int (*XESetEventToWire(DisplayPtr, EventNumber, Procedure))() Display *DisplayPtr; Int EventNumber; Int (*Procedure)();
The XESetEventToWire extension function defines a procedure to call when an event needs to be converted from the host format (the XEvent structure found in the <X11/Xlib.h> file) to the wire format (the xEvent structure found in the <X11/Xproto.h> header file). This extension returns any previously defined procedure.
Note: The host event structure size cannot be larger than the size of the XEvent union of structures.
When the Xlib library needs to convert an event from the host format to the wire format, the routine is called with the following syntax:
(*Procedure)(DisplayPtr, Re, Event); Display *DisplayPtr; XEvent *Re; xEvent *Event;
In the XEvent structure, the type field should be the first element and the window field should be the second element. The type field should be copied from the xEvent structure. The other elements should be copied from the host format to the XEvent structure.
DisplayPtr | Specifies a display device. |
EventNumber | Specifies a protocol event number to replace with the conversion routine. |
Procedure | Specifies a routine to call when converting an event. |
Using Extensions in AIXwindows in AIX Version 4.3 AIXwindows Programming Guide.
AIXwindows Overview for Programmers in AIX Version 4.3 AIXwindows Programming Guide.