188 lines
4.1 KiB
Groff
188 lines
4.1 KiB
Groff
.ds xT X Toolkit Intrinsics \- C Language Interface
|
|
.ds xW Athena X Widgets \- C Language X Toolkit Interface
|
|
.ds xL Xlib \- C Language X Interface
|
|
.ds xC Inter-Client Communication Conventions Manual
|
|
.na
|
|
.de Ds
|
|
.nf
|
|
.\\$1D \\$2 \\$1
|
|
.ft 1
|
|
.\".ps \\n(PS
|
|
.\".if \\n(VS>=40 .vs \\n(VSu
|
|
.\".if \\n(VS<=39 .vs \\n(VSp
|
|
..
|
|
.de De
|
|
.ce 0
|
|
.if \\n(BD .DF
|
|
.nr BD 0
|
|
.in \\n(OIu
|
|
.if \\n(TM .ls 2
|
|
.sp \\n(DDu
|
|
.fi
|
|
..
|
|
.de FD
|
|
.LP
|
|
.KS
|
|
.TA .5i 3i
|
|
.ta .5i 3i
|
|
.nf
|
|
..
|
|
.de FN
|
|
.fi
|
|
.KE
|
|
.LP
|
|
..
|
|
.de IN \" send an index entry to the stderr
|
|
..
|
|
.de C{
|
|
.KS
|
|
.nf
|
|
.D
|
|
.\"
|
|
.\" choose appropriate monospace font
|
|
.\" the imagen conditional, 480,
|
|
.\" may be changed to L if LB is too
|
|
.\" heavy for your eyes...
|
|
.\"
|
|
.ie "\\*(.T"480" .ft L
|
|
.el .ie "\\*(.T"300" .ft L
|
|
.el .ie "\\*(.T"202" .ft PO
|
|
.el .ie "\\*(.T"aps" .ft CW
|
|
.el .ft R
|
|
.ps \\n(PS
|
|
.ie \\n(VS>40 .vs \\n(VSu
|
|
.el .vs \\n(VSp
|
|
..
|
|
.de C}
|
|
.DE
|
|
.R
|
|
..
|
|
.de Pn
|
|
.ie t \\$1\fB\^\\$2\^\fR\\$3
|
|
.el \\$1\fI\^\\$2\^\fP\\$3
|
|
..
|
|
.de ZN
|
|
.ie t \fB\^\\$1\^\fR\\$2
|
|
.el \fI\^\\$1\^\fP\\$2
|
|
..
|
|
.de NT
|
|
.ne 7
|
|
.ds NO Note
|
|
.if \\n(.$>$1 .if !'\\$2'C' .ds NO \\$2
|
|
.if \\n(.$ .if !'\\$1'C' .ds NO \\$1
|
|
.ie n .sp
|
|
.el .sp 10p
|
|
.TB
|
|
.ce
|
|
\\*(NO
|
|
.ie n .sp
|
|
.el .sp 5p
|
|
.if '\\$1'C' .ce 99
|
|
.if '\\$2'C' .ce 99
|
|
.in +5n
|
|
.ll -5n
|
|
.R
|
|
..
|
|
. \" Note End -- doug kraft 3/85
|
|
.de NE
|
|
.ce 0
|
|
.in -5n
|
|
.ll +5n
|
|
.ie n .sp
|
|
.el .sp 10p
|
|
..
|
|
.ny0
|
|
.TH XWarpPointer 3X11 "Release 5" "X Version 11" "XLIB FUNCTIONS"
|
|
.SH NAME
|
|
XWarpPointer \- move pointer
|
|
.SH SYNTAX
|
|
.\" $Header: XWarpPointer.f,v 1.1 88/02/26 10:04:13 mento Exp $
|
|
.\" $Header: XWarpPointer.f,v 1.1 88/02/26 10:04:13 mento Exp $
|
|
XWarpPointer\^(\^\fIdisplay\fP, \fIsrc_w\fP\^, \fIdest_w\fP\^, \fIsrc_x\fP\^, \fIsrc_y\fP\^, \fIsrc_width\fP\^, \fIsrc_height\fP\^, \fIdest_x\fP\^,
|
|
.br
|
|
\fIdest_y\fP\^)
|
|
.br
|
|
Display *\fIdisplay\fP\^;
|
|
.br
|
|
Window \fIsrc_w\fP\^, \fIdest_w\fP\^;
|
|
.br
|
|
int \fIsrc_x\fP\^, \fIsrc_y\fP\^;
|
|
.br
|
|
unsigned int \fIsrc_width\fP\^, \fIsrc_height\fP\^;
|
|
.br
|
|
int \fIdest_x\fP\^, \fIdest_y\fP\^;
|
|
.SH ARGUMENTS
|
|
.\" $Header: dw1.a,v 1.1 88/05/14 08:44:37 mento Exp $
|
|
.IP \fIdest_w\fP 1i
|
|
Specifies the destination window or
|
|
.ZN None .
|
|
.\" $Header: destxy2.a,v 1.1 88/02/26 10:06:50 mento Exp $
|
|
.IP \fIdest_x\fP 1i
|
|
.br
|
|
.ns
|
|
.IP \fIdest_y\fP 1i
|
|
Specify the x and y coordinates within the destination window.
|
|
.\" $Header: display.a,v 1.1 88/02/26 10:26:29 mento Exp $
|
|
.IP \fIdisplay\fP 1i
|
|
Specifies the connection to the X server.
|
|
.\" $Header: srcwdht.a,v 1.2 88/04/28 06:03:00 mento Exp $
|
|
.IP \fIsrc_x\fP 1i
|
|
.br
|
|
.ns
|
|
.IP \fIsrc_y\fP 1i
|
|
.br
|
|
.ns
|
|
.IP \fIsrc_width\fP 1i
|
|
.br
|
|
.ns
|
|
.IP \fIsrc_height\fP 1i
|
|
Specify a rectangle in the source window.
|
|
.\" $Header: sw1.a,v 1.1 88/05/14 08:43:03 mento Exp $
|
|
.IP \fIsrc_w\fP 1i
|
|
Specifies the source window or
|
|
.ZN None .
|
|
.SH DESCRIPTION
|
|
.\" $Header: XWarpPointer.d,v 1.3 88/06/11 07:54:36 mento Exp $
|
|
If dest_w is
|
|
.ZN None ,
|
|
.ZN XWarpPointer
|
|
moves the pointer by the offsets (dest_x, dest_y) relative to the current
|
|
position of the pointer.
|
|
If dest_w is a window,
|
|
.ZN XWarpPointer
|
|
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.
|
|
.LP
|
|
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.
|
|
.LP
|
|
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
|
|
.ZN XWarpPointer
|
|
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.
|
|
.LP
|
|
.ZN XWarpPointer
|
|
can generate a
|
|
.ZN BadWindow
|
|
error.
|
|
.SH DIAGNOSTICS
|
|
.\" $Header: badwindow.e,v 1.1 87/09/04 08:23:20 mento Exp $
|
|
.TP 1i
|
|
.ZN BadWindow
|
|
A value for a Window argument does not name a defined Window.
|
|
.SH "SEE ALSO"
|
|
XSetInputFocus(3X11)
|
|
.br
|
|
\fI\*(xL\fP
|