'\" t .\" TxtXYToP.sgm /main/11 1996/09/08 21:20:46 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 "XmTextXYToPos" 3 .SH "NAME" \fBXmTextXYToPos\fP \(em A Text function that accesses the character position nearest an x and y position "XmTextXYToPos" "Text functions" "XmTextXYToPos" .SH "SYNOPSIS" .PP .nf #include \fBXmTextPosition \fBXmTextXYToPos\fP\fR( \fBWidget \fBwidget\fR\fR, \fBPosition \fBx\fR\fR, \fBPosition \fBy\fR\fR); .fi .SH "DESCRIPTION" .PP \fBXmTextXYToPos\fP accesses the character position nearest to the specified \fIx\fP and \fIy\fP position, relative to the upper left corner of the Text widget\&. .PP In the case of horizontal writing, the position is the origin of the character\&. In the case of vertical writing, the position is the vertical origin of the character\&. .IP "\fIwidget\fP" 10 Specifies the Text widget ID .IP "\fIx\fP" 10 Specifies the \fIx\fP position, relative to the upper left corner of the widget .IP "\fIy\fP" 10 Specifies the \fIy\fP position, relative to the upper left corner of the widget .PP For a complete definition of Text and its associated resources, see \fBXmText\fP(3)\&. .SH "RETURN" .PP Returns the character position in the text nearest the \fIx\fP and \fIy\fP position specified\&. This is an integer number of characters from the beginning of the buffer\&. The first character position is 0 (zero)\&. .SH "RELATED" .PP \fBXmText\fP(3)\&. .\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:36