Blame doc/man/man3/XmTextPosToXY.3

Packit b099d7
'\" t
Packit b099d7
...\" TxtPosTo.sgm /main/11 1996/09/08 21:18:46 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 "XmTextPosToXY" "library call"
Packit b099d7
.SH "NAME"
Packit b099d7
\fBXmTextPosToXY\fP \(em A Text function that accesses the x and y position of a character position
Packit b099d7
.iX "XmTextPosToXY"
Packit b099d7
.iX "Text functions" "XmTextPosToXY"
Packit b099d7
.SH "SYNOPSIS"
Packit b099d7
.PP
Packit b099d7
.nf
Packit b099d7
#include <Xm/Text\&.h>
Packit b099d7
\fBBoolean \fBXmTextPosToXY\fP\fR(
Packit b099d7
\fBWidget \fBwidget\fR\fR,
Packit b099d7
\fBXmTextPosition \fBposition\fR\fR,
Packit b099d7
\fBPosition \fB*x\fR\fR,
Packit b099d7
\fBPosition \fB*y\fR\fR);
Packit b099d7
.fi
Packit b099d7
.SH "DESCRIPTION"
Packit b099d7
.PP
Packit b099d7
\fBXmTextPosToXY\fP accesses the \fIx\fP and \fIy\fP position,
Packit b099d7
relative to the upper
Packit b099d7
left corner of the Text widget, of a given character position in the
Packit b099d7
text buffer\&.
Packit b099d7
.PP
Packit b099d7
In the case of horizontal writing, the position is the origin of the
Packit b099d7
character\&. In the case of vertical writing, the position is the vertical
Packit b099d7
origin of the character\&.
Packit b099d7
.IP "\fIwidget\fP" 10
Packit b099d7
Specifies the Text widget ID
Packit b099d7
.IP "\fIposition\fP" 10
Packit b099d7
Specifies the character position in the text for which the \fIx\fP and \fIy\fP
Packit b099d7
position is accessed\&. This is an integer number of characters
Packit b099d7
from the beginning of the buffer\&. The first character position is 0 (zero)\&.
Packit b099d7
.IP "\fIx\fP" 10
Packit b099d7
Specifies the pointer in which the \fIx\fP position is returned\&.
Packit b099d7
The returned position is the distance from the left side of the widget
Packit b099d7
to the left border of the character\&.
Packit b099d7
This value is meaningful only if the function returns True\&.
Packit b099d7
.IP "\fIy\fP" 10
Packit b099d7
Specifies the pointer in which the \fIy\fP position is returned\&.
Packit b099d7
The returned position is the distance from the top of the widget
Packit b099d7
to the character\&'s baseline\&.
Packit b099d7
This value is meaningful only if the function returns True\&.
Packit b099d7
.PP
Packit b099d7
For a complete definition of Text and its associated resources, see
Packit b099d7
\fBXmText\fP(3)\&.
Packit b099d7
.SH "RETURN"
Packit b099d7
.PP
Packit b099d7
This function returns True if the character position is displayed in the
Packit b099d7
Text widget; otherwise, it returns False, and no \fIx\fP or \fIy\fP
Packit b099d7
value is returned\&.
Packit b099d7
.SH "RELATED"
Packit b099d7
.PP
Packit b099d7
\fBXmText\fP(3)\&.
Packit b099d7
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:35