GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  XMTLAYOUTCONVERTSIZETOPIXELS (3)

NAME

XmtLayoutConvertSizeToPixels() - convert a resolution independent size to pixels.

CONTENTS

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
Search for    or go to Top of page |  Section 3 |  Main Index


Xmt XMTLAYOUTCONVERTSIZETOPIXELS (3) Motif Tools

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.