#include <WLength>
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. | |
| enum Wt::WLength::Unit |
| Wt::WLength::WLength | ( | ) |
Automatic length.
Specifies an 'auto' length.
1.4.7