XmtLayoutConvertSizeToPixels(3) FreeBSD Library Functions Manual
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
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 ALSO
Chapter 19, The Layout Widget: The Details, XmtLayout
Xmt Motif Tools XmtLayoutConvertSizeToPixels(3)
permalink to the XmtLayoutConvertSizeToPixels command:
https://manpage.me/?XmtLayoutConvertSizeToPixels
link by Name, Section, and OS version of this man page:
/?q=XmtLayoutConvertSizeToPixels&manpath=FreeBSD+11.1-RELEASE+and+Ports