Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmconvertunits(3x) [osf1 man page]

XmConvertUnits(3X)														XmConvertUnits(3X)

NAME
XmConvertUnits - A function that converts a value in one unit type to another unit type SYNOPSIS
#include <Xm/Xm.h> int XmConvertUnits (widget, orientation, from_unit_type, from_value, to_unit_type) Widget widget; int orientation; int from_unit_type; int from_value; int to_unit_type; DESCRIPTION
XmConvertUnits converts the value and returns it as the return value from the function. Specifies the widget for which the data is to be converted Specifies whether the converter uses the horizontal or vertical screen resolution when performing the conversions. orientation can have values of XmHORIZONTAL or XmVERTICAL. Specifies the current unit type of the supplied value Specifies the value to be converted Converts the value to the unit type specified The parameters from_unit_type and to_unit_type can have the following values: XmPIXELS--all values provided to the widget are treated as normal pixel values. This is the default for the resource. Xm100TH_MILLIMETERS--all values provided to the widget are treated as 1/100 millimeter. Xm1000TH_INCHES--all values provided to the widget are treated as 1/1000 inch. Xm100TH_POINTS--all values provided to the widget are treated as 1/100 point. A point is a unit typically used in text processing applications and is defined as 1/72 inch. Xm100TH_FONT_UNITS--all values provided to the widget are treated as 1/100 of a font unit. A font unit has horizontal and vertical compo- nents. These are the values of the XmScreen resources XmNhorizontalFontUnit and XmNverticalFontUnit. RETURN VALUE
Returns the converted value. If a NULL widget, incorrect orientation, or incorrect unit_type is supplied as parameter data, 0 is returned. SEE ALSO
XmSetFontUnits(3X), XmScreen(3X) XmConvertUnits(3X)

Check Out this Related Man Page

XmSetFontUnits(library call)											      XmSetFontUnits(library call)

NAME
XmSetFontUnits -- A function that sets the font unit value for a display SYNOPSIS
#include <Xm/Xm.h> void XmSetFontUnits( Display * display, int h_value, int v_value); DESCRIPTION
XmSetFontUnits provides an external function to initialize font unit values. Applications may want to specify resolution-independent data based on a global font size. This function must be called before any widgets with resolution-independent data are created. See the XmNunit- Type resource description in the reference pages for XmGadget, XmManager, and XmPrimitive for more information on resolution independence. This function sets the font units for all screens on the display. NOTE: XmSetFontUnits is obsolete and exists for compatibility with previous releases. Instead of using this function, provide initial val- ues or call XtSetValues for the XmScreen resources XmNhorizontalFontUnit and XmNverticalFontUnit. display Defines the display for which this font unit value is to be applied. h_value Specifies the value to be used for horizontal units in the conversion calculations. h_value Specifies the value to be used for vertical units in the conversion calculations. RELATED
XmConvertUnits(3), XmSetFontUnit(3), XmGadget(3), XmManager(3), XmPrimitive(3), and XmScreen(3). XmSetFontUnits(library call)
Man Page