1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
|
'\" 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" "library call"
.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
|