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