Wt::WLength Class Reference

A class that specifies a length. More...

#include <Wt/WLength>

List of all members.

Public Types

enum  Unit {
  FontEm, FontEx, Pixel, Inch,
  Centimeter, Millimeter, Point, Pica,
  Percentage
}
 The unit. More...

Public Member Functions

 WLength ()
 Automatic length.
 WLength (double value, Unit unit=Pixel)
 Length with value and unit.
bool isAuto () const
 Length is unspecified, hence automatic ?
double value () const
 Get te value.
Unit unit () const
 Get te unit.


Detailed Description

A class that specifies a length.

Member Enumeration Documentation

The unit.

Enumerator:
FontEm  The relative font size.
FontEx  The height of an 'x' in the font.
Pixel  Pixel, relative to canvas resolution.
Inch  Inche.
Centimeter  Centimeter.
Millimeter  Millimeter.
Point  Point (1/72 Inch).
Pica  Pica (12 Point).
Percentage  Percentage (meaning context-sensitive).


Constructor & Destructor Documentation

Wt::WLength::WLength (  ) 

Automatic length.

Specifies an 'auto' length.


Generated on Mon Nov 3 15:01:00 2008 for Wt by doxygen 1.5.6