Converts from pixels to real-world dimensions based on horizontal resolution of the screen
Format
#include <Xm/XmP.h> void XmeFromHorizontalPixelsWidget widgetint offsetXtArgVal *value
DESCRIPTION
XmeFromHorizontalPixels converts a horizontal pixel value to a real-world dimensional unit. The real-world dimensional unit depends on the value of the XmNunitType resource associated with the widget. For example, suppose widget has an XmNunitType resource value of Xm1000TH_INCHES. If the input value were 200 pixels, the output value might be 2500 (2.5 inches) on one screen and 2000 (2.0 inches) on another screen.
XmeFromHorizontalPixels is an XmExportProc.
Typically, your widgets will call this function in a synthetic resource record.
RELATED
XmeToHorizontalPixels(3), XmeFromVerticalPixels(3), and XmeToVerticalPixels(3).