Motif provides four Xme functions that govern resolution independence. (See Chapter 6 for information about resolution independence.)
The four functions shown in Table 8-3 are typically called from a synthetic
resource table rather than from a widget method.
Table 13. Xme Resolution Independence Functions
Xme Function | What It Does: |
XmeFromHorizontalPixels | Converts from pixels to real-world dimensions based on horizontal resolution of the screen |
XmeFromVerticalPixels | Converts from pixels to real-world dimensions based on vertical resolution of the screen |
XmeToHorizontalPixels | Converts from real-world dimensions to pixels based on horizontal resolution of the screen |
XmeToVerticalPixels | Converts from real-world dimensions to pixels based on vertical resolution of the screen |