Wt::WLength Class Reference

Class specifying a length with a unit. More...

#include <WLength>

List of all members.

Public Types

 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).
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

Class specifying a length with a unit.


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 Sun Jul 1 19:37:18 2007 for Wt by doxygen 1.4.7