Blame doc/man/man3/XmConvertStringToUnits.3

Packit b099d7
'\" t
Packit b099d7
...\" CvtSt.sgm /main/9 1996/09/08 20:37:28 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 "XmConvertStringToUnits" "library call"
Packit b099d7
.SH "NAME"
Packit b099d7
\fBXmConvertStringToUnits\fP \(em A function that converts a string specification to a unit value
Packit b099d7
.iX "XmConvertStringToUnits"
Packit b099d7
.SH "SYNOPSIS"
Packit b099d7
.PP
Packit b099d7
.nf
Packit b099d7
#include <Xm/Xm\&.h>
Packit b099d7
\fBint \fBXmConvertStringToUnits\fP\fR(
Packit b099d7
\fBScreen *\fBscreen\fR\fR,
Packit b099d7
\fBString \fBspec\fR\fR,
Packit b099d7
\fBint \fBorientation\fR\fR,
Packit b099d7
\fBint \fBto_type\fR\fR,
Packit b099d7
\fBXtEnum *\fBparse_error\fR\fR);
Packit b099d7
.fi
Packit b099d7
.SH "DESCRIPTION"
Packit b099d7
.PP
Packit b099d7
\fBXmConvertStringToUnits\fP converts a string specification value and
Packit b099d7
returns the converted value as the return value from the function\&.
Packit b099d7
This function uses the specified screen\&'s resolution to compute the
Packit b099d7
number of units for the string specification\&.
Packit b099d7
.IP "\fIscreen\fP" 10
Packit b099d7
Specifies the screen whose resolution is to be used for the computation\&.
Packit b099d7
.IP "\fIspec\fP" 10
Packit b099d7
Specifies the string, in \fI<floating value><unit>\fP format, to be
Packit b099d7
converted\&.
Packit b099d7
.IP "\fIorientation\fP" 10
Packit b099d7
Specifies whether the converter uses the horizontal or vertical screen
Packit b099d7
resolution when performing the conversion\&. The \fIorientation\fP
Packit b099d7
parameter can have values of \fBXmHORIZONTAL\fP or \fBXmVERTICAL\fP\&.
Packit b099d7
.IP "\fIto_type\fP" 10
Packit b099d7
Converts the value to the unit type specified\&.
Packit b099d7
Refer to the \fBXmNunitType\fP resource of the
Packit b099d7
\fBXmGadget\fP, \fBXmManager\fP, or \fBXmPrimitive\fP reference page\&.
Packit b099d7
This parameter can have one of
Packit b099d7
the following values:
Packit b099d7
.RS
Packit b099d7
.IP "\fBXmPIXELS\fP" 10
Packit b099d7
The returned value will be the number of pixels\&.
Packit b099d7
.IP "\fBXmMILLIMETERS\fP" 10
Packit b099d7
The returned value will be the number of millimeters\&.
Packit b099d7
.IP "\fBXm100TH_MILLIMETERS\fP" 10
Packit b099d7
The returned values will be the number of 1/100 millimeters\&.
Packit b099d7
.IP "\fBXmCENTIMETERS\fP" 10
Packit b099d7
The returned values will be the number of centimeters\&.
Packit b099d7
.IP "\fBXmINCHES\fP" 10
Packit b099d7
The returned values will be the number of inches\&.
Packit b099d7
.IP "\fBXm1000TH_INCHES\fP" 10
Packit b099d7
The returned values will be the number of 1/100 inches\&.
Packit b099d7
.IP "\fBXmPOINTS\fP" 10
Packit b099d7
The returned values will be the number of points\&.
Packit b099d7
A point is a text processing unit
Packit b099d7
defined as 1/72 of an inch\&.
Packit b099d7
.IP "\fBXm100TH_POINTS\fP" 10
Packit b099d7
The returned values will be the number of 1/100 points\&.
Packit b099d7
.IP "\fBXmFONT_UNITS\fP" 10
Packit b099d7
All values provided to the widget are treated as font
Packit b099d7
units\&. A font unit has horizontal and vertical components\&.
Packit b099d7
These are the values of the XmScreen resources \fBXmNhorizontalFontUnit\fP
Packit b099d7
and \fBXmNverticalFontUnit\fP\&.
Packit b099d7
.IP "\fBXm100TH_FONT_UNITS\fP" 10
Packit b099d7
All values provided to the widget are
Packit b099d7
treated as 1/100 of a font unit\&.
Packit b099d7
A font unit has horizontal and vertical components\&.
Packit b099d7
These are the values of the XmScreen resources \fBXmNhorizontalFontUnit\fP
Packit b099d7
and \fBXmNverticalFontUnit\fP\&.
Packit b099d7
.RE
Packit b099d7
.IP "\fIparse_error\fP" 10
Packit b099d7
Specifies if a parsing error occurred\&. This is set to a value of True
Packit b099d7
indicates that an error occurred, a value of False to indicate no error\&.
Packit b099d7
.SH "RETURN"
Packit b099d7
.PP
Packit b099d7
Returns the converted value\&.
Packit b099d7
If a NULL screen, incorrect \fIorientation\fP,
Packit b099d7
or incorrect \fIunit_type\fP
Packit b099d7
is supplied as parameter data, or if a parsing error occurred, 0
Packit b099d7
(zero) is returned\&.
Packit b099d7
.SH "RELATED"
Packit b099d7
.PP
Packit b099d7
\fBXmConvertUnits\fP(3), \fBXmSetFontUnits\fP(3), and \fBXmScreen\fP(3)\&.
Packit b099d7
...\" created by instant / docbook-to-man, Sun 22 Dec 1996, 20:21