FreeBSD Manual Pages
XmtLayoutC...zeToPixels(3) Library Functions Manual XmtLayoutC...zeToPixels(3) NAME XmtLayoutConvertSizeToPixels() - convert a resolution independent size to pixels. SYNOPSIS #include <Xmt/Layout.h> int XmtLayoutConvertSizeToPixels(Widget w, double size, XmtLayoutUnitType units) typedef enum { XmtLayoutPoints, /* 1/72 of an inch */ XmtLayoutInches, /* 25.4 millimeters */ XmtLayoutMillimeters, /* depends on display resolution */ XmtLayoutEms, /* width of `M' in widget font */ XmtLayoutEns, /* 1/2 of an em */ } XmtLayoutUnitType; ARGUMENTS INPUTS w An XmtLayout widget. size The size to be converted. units The units that size is measured in. RETURNS The pixel equivalent of the size measured in units. DESCRIPTION XmtLayoutConvertSizeToPixels() converts a floating point value measured in millimeters, inches, printer points, ems, or ens to an integral num- ber of pixels and returns that number. Conversion to millimeters, inches or points depends on the resolution of the screen of w. Conver- sion to ems and ens depends on the XmtNfont and XmtNfontList resources of w. An ``em'' is the width of the letter ``M'' in the specified font or in the default font of the font list. An ``en'' is one half of one em. SEE ALSO Chapter 19, The Layout Widget: The Details, XmtLayout Xmt Motif Tools XmtLayoutC...zeToPixels(3)
NAME | SYNOPSIS | ARGUMENTS | DESCRIPTION | SEE ALSO
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=XmtLayoutConvertSizeToPixels&sektion=3&manpath=FreeBSD+Ports+15.0>
