[ Previous | Next | Contents | Glossary | Home | Search ]
x11 R6 Technical Reference

XESetEventToWire Extension Function

Purpose

Defines a procedure to call when an event needs to be converted from the host format to the wire format.

Library

Enhanced X-Windows Library (libX11.a)

C Syntax

int (*XESetEventToWire(DisplayPtr, EventNumber, Procedure))()
Display *DisplayPtr;
Int EventNumber;
Int (*Procedure)();

Description

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;

where:

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.

Parameters

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.

Related Information

Using Extensions in AIXwindows in AIX Version 4.3 AIXwindows Programming Guide.

The XEvent data structure.

AIXwindows Overview for Programmers in AIX Version 4.3 AIXwindows Programming Guide.


[ Previous | Next | Contents | Glossary | Home | Search ]