'\" t
...\" ObjectAP.sgm /main/8 1996/09/08 20:54:48 rws $
.de P!
.fl
\!!1 setgray
.fl
\\&.\"
.fl
\!!0 setgray
.fl			\" force out current output buffer
\!!save /psv exch def currentpoint translate 0 0 moveto
\!!/showpage{}def
.fl			\" prolog
.sy sed -e 's/^/!/' \\$1\" bring in postscript file
\!!psv restore
.
.de pF
.ie     \\*(f1 .ds f1 \\n(.f
.el .ie \\*(f2 .ds f2 \\n(.f
.el .ie \\*(f3 .ds f3 \\n(.f
.el .ie \\*(f4 .ds f4 \\n(.f
.el .tm ? font overflow
.ft \\$1
..
.de fP
.ie     !\\*(f4 \{\
.	ft \\*(f4
.	ds f4\"
'	br \}
.el .ie !\\*(f3 \{\
.	ft \\*(f3
.	ds f3\"
'	br \}
.el .ie !\\*(f2 \{\
.	ft \\*(f2
.	ds f2\"
'	br \}
.el .ie !\\*(f1 \{\
.	ft \\*(f1
.	ds f1\"
'	br \}
.el .tm ? font underflow
..
.ds f1\"
.ds f2\"
.ds f3\"
.ds f4\"
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n 
.TH "XmObjectAtPoint" "3"
.SH "NAME"
\fBXmObjectAtPoint\fP \(em A toolkit function that determines which child intersects or comes closest to a specified point
.iX "XmObjectAtPoint"
.SH "SYNOPSIS"
.PP
.nf
#include <Xm/Xm\&.h>
\fBWidget \fBXmObjectAtPoint\fP\fR(
\fBWidget \fBwidget\fR\fR,
\fBPosition \fBx\fR\fR,
\fBPosition \fBy\fR\fR);
.fi
.SH "DESCRIPTION"
.PP
\fBXmObjectAtPoint\fP searches the child list of the specified
manager \fIwidget\fP and returns the child most closely associated
with the specified \fIx\fP,\fIy\fP coordinate pair\&.
.PP
For the typical Motif manager \fIwidget\fP, \fBXmObjectAtPoint\fP
uses the following rules to determine the returned object:
.IP "   \(bu" 6
If one child intersects \fIx,y\fP, \fBXmObjectAtPoint\fP
returns the widget ID of that child\&.
.IP "   \(bu" 6
If more than one child intersects \fIx,y\fP,
\fBXmObjectAtPoint\fP returns the widget ID of the visible child\&.
.IP "   \(bu" 6
If no child intersects \fIx\fP,\fIy\fP, \fBXmObjectAtPoint\fP
returns NULL\&.
.PP
The preceding rules are only general\&. In fact, each manager
\fIwidget\fP is free to define "most closely associated"
as it desires\&.
For example, if no child intersects \fIx,y\fP, a manager
might return the child closest to \fIx,y\fP\&.
.IP "\fIwidget\fP" 10
Specifies a manager widget\&.
.IP "\fIx\fP" 10
Specifies the x-coordinate about which you are seeking child
information\&. The x-coordinate must be specified in pixels,
relative to the left side of \fImanager\fP\&.
.IP "\fIy\fP" 10
Specifies the y-coordinate about which you are seeking child
information\&. The y-coordinate must be specified in pixels,
relative to the top side of \fImanager\fP\&.
.SH "RETURN"
.PP
Returns the child of \fImanager\fP most closely associated
with \fIx,y\fP\&.
If none of its children are sufficiently associated with \fIx,y\fP,
returns NULL\&.
.SH "RELATED"
.PP
\fBXmManager\fP(3)\&.
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:27
