6.18. Data Definitions for libXtst

This section defines global identifiers and their values that are associated with interfaces contained in libXtst. These definitions are organized into groups that correspond to system headers. This convention is used as a convenience for the reader, and does not imply the existence of these headers, or their content. Where an interface is defined as requiring a particular system header file all of the data definitions for that system header file presented here shall be in effect.

This section gives data definitions to promote binary application portability, not to repeat source interface definitions available elsewhere. System providers and application developers should use this ABI to supplement - not to replace - source interface definition specifications.

This specification uses the ISO C (1999) C Language as the reference programming language, and data definitions are specified in ISO C format. The C language is used here as a convenient notation. Using a C language description of these data objects does not preclude their use by other programming languages.

6.18.1. X11/extensions/XTest.h


#define XTestNumberErrors	0
#define XTestNumberEvents	0
#define X_XTestGetVersion	0
#define X_XTestCompareCursor	1
#define XTestMajorVersion	2
#define XTestMinorVersion	2
#define X_XTestFakeInput	2
#define X_XTestGrabControl	3
#define XTestExtensionName	"XTEST"

extern int XTestCompareCurrentCursorWithWindow(Display *, Window);
extern int XTestCompareCursorWithWindow(Display *, Window, Cursor);
extern int XTestDiscard(Display *);
extern int XTestFakeButtonEvent(Display *, unsigned int, int,
				unsigned long int);
extern int XTestFakeDeviceButtonEvent(Display *, XDevice *, unsigned int,
				      int, int *, int, unsigned long int);
extern int XTestFakeDeviceKeyEvent(Display *, XDevice *, unsigned int, int,
				   int *, int, unsigned long int);
extern int XTestFakeDeviceMotionEvent(Display *, XDevice *, int, int,
				      int *, int, unsigned long int);
extern int XTestFakeKeyEvent(Display *, unsigned int, int,
			     unsigned long int);
extern int XTestFakeMotionEvent(Display *, int, int, int,
				unsigned long int);
extern int XTestFakeProximityEvent(Display *, XDevice *, int, int *, int,
				   unsigned long int);
extern int XTestFakeRelativeMotionEvent(Display *, int, int,
					unsigned long int);
extern int XTestGrabControl(Display *, int);
extern int XTestQueryExtension(Display *, int *, int *, int *, int *);
extern void XTestSetGContextOfGC(GC, GContext);
extern void XTestSetVisualIDOfVisual(Visual *, VisualID);