|
NAMEXmtLayoutConvertSizeToPixels() - 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; ARGUMENTSINPUTS
RETURNS The pixel equivalent of the size measured in units. DESCRIPTIONXmtLayoutConvertSizeToPixels() converts a floating point value measured in millimeters, inches, printer points, ems, or ens to an integral number of pixels and returns that number. Conversion to millimeters, inches or points depends on the resolution of the screen of w. Conversion 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 ALSOChapter 19, The Layout Widget: The Details, XmtLayout
Visit the GSP FreeBSD Man Page Interface. |