Wt::WLength Class Reference

A class that specifies a length. More...

#include <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

enum Wt::WLength::Unit

The unit.

Enumerator:
FontEm  The height of the font.
FontEx  The widht 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.


The documentation for this class was generated from the following files:
Generated on Mon Apr 14 15:15:01 2008 for Wt by doxygen 1.5.3