253 lines
4.0 KiB
HTML
253 lines
4.0 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of XIWARPPOINTER</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>XIWARPPOINTER</H1>
|
|
Section: (3)<BR>Updated: 06/19/2019<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
XIWarpPointer - move a device's pointer.
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
<P>
|
|
<PRE>
|
|
#include <<A HREF="file:///usr/include/X11/extensions/XInput2.h">X11/extensions/XInput2.h</A>>
|
|
</PRE>
|
|
|
|
<P>
|
|
<PRE>
|
|
Bool XIWarpPointer( Display *display,
|
|
int deviceid,
|
|
Window src_w,
|
|
Window dest_w,
|
|
double src_x,
|
|
double src_y,
|
|
int src_width,
|
|
int src_height,
|
|
double dest_x,
|
|
double dest_y);
|
|
</PRE>
|
|
|
|
<P>
|
|
<PRE>
|
|
dest_w
|
|
Specifies the destination window or None.
|
|
</PRE>
|
|
|
|
<P>
|
|
<PRE>
|
|
dest_x, dest_y
|
|
Specify the x and y coordinates within the destination
|
|
window.
|
|
</PRE>
|
|
|
|
<P>
|
|
<PRE>
|
|
deviceid
|
|
Specifies the master pointer device or floating slave
|
|
device to move.
|
|
</PRE>
|
|
|
|
<P>
|
|
<PRE>
|
|
display
|
|
Specifies the connection to the X server.
|
|
</PRE>
|
|
|
|
<P>
|
|
<PRE>
|
|
src_x, src_y, src_width, src_height
|
|
Specify a rectangle in the source window.
|
|
</PRE>
|
|
|
|
<P>
|
|
<PRE>
|
|
src_w
|
|
Specifies the source window or None.
|
|
</PRE>
|
|
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="1"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
If dest_w is None, XIWarpPointer moves the pointer by the
|
|
offsets (dest_x, dest_y) relative to the current position of
|
|
the pointer. If dest_w is a window, XIWarpPointer moves the
|
|
pointer to the offsets (dest_x, dest_y) relative to the origin
|
|
of dest_w. However, if src_w is a window, the move only takes
|
|
place if the window src_w contains the pointer and if the
|
|
specified rectangle of src_w contains the pointer.
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="2"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
The src_x and src_y coordinates are relative to the origin of
|
|
src_w. If src_height is zero, it is replaced with the current
|
|
height of src_w minus src_y. If src_width is zero, it is
|
|
replaced with the current width of src_w minus src_x.
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="3"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
There is seldom any reason for calling this function. The
|
|
pointer should normally be left to the user. If you do use this
|
|
function, however, it generates events just as if the user had
|
|
instantaneously moved the pointer from one position to another.
|
|
Note that you cannot use XIWarpPointer to move the pointer
|
|
outside the confine_to window of an active pointer grab. An
|
|
attempt to do so will only move the pointer as far as the
|
|
closest edge of the confine_to window.
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="4"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
XIWarpPointer is identical to XWarpPointer but specifies the
|
|
device explicitly.
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="5"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
XIWarpPointer can generate a BadDevice and a BadWindow error.
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAE"> </A>
|
|
<H2>DIAGNOSTICS</H2>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="6"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
BadDevice
|
|
An invalid device was specified. The device does not
|
|
exist or is not a pointer device.
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="7"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
BadWindow
|
|
A value for a Window argument does not name a defined
|
|
window.
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<A NAME="lbAF"> </A>
|
|
<H2>SEE ALSO</H2>
|
|
|
|
<P>
|
|
<DL COMPACT><DT id="8"><DD>
|
|
|
|
|
|
|
|
<PRE>
|
|
<A HREF="/cgi-bin/man/man2html?3+XWarpPointer">XWarpPointer</A>(3)
|
|
</PRE>
|
|
|
|
</DL>
|
|
|
|
|
|
|
|
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="9"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="10"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="11"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
<DT id="12"><A HREF="#lbAE">DIAGNOSTICS</A><DD>
|
|
<DT id="13"><A HREF="#lbAF">SEE ALSO</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:06:01 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|