CSS::AbsoluteLength Struct Reference

#include <CSSUnit.hpp>

Inheritance diagram for CSS::AbsoluteLength:

CSS::Length List of all members.

Detailed Description

The absolute lengths.


Public Types

enum  AbsoluteUnit {
  px, in, cm, mm,
  pt, pc
}
 The absolute units. More...

Public Member Functions

 AbsoluteLength (const AbsoluteLength &other)
 Copy constructor.
 AbsoluteLength (const float value, const AbsoluteUnit &relUnit)
 Constructor.
virtual int32 getAsPixels (const uint32 currentIteration=0) const
 Get this length in pixels.
virtual const int32 getComputedValue () const
 Get the computed value.
virtual bool isAbsolute () const
 Is this length absolute (for performance reason) ?
virtual bool isAuto () const
 Is this length auto ?
virtual void setComputedValue (const int32 _value, const uint32 _iter)
 Set the computed value.
void setValue (const float val)
 Set the declared value.
virtual void setZero ()
 Zero this object.

Protected Attributes

int32 computedValue
 The last computed value (in pixels).
uint32 iteration
 The current rendering iteration (can only increase).
AbsoluteUnit unit
 The absolute unit.
float value
 The value.

Static Protected Attributes

static float millimeterInPixels
 The pixel size in millimeter (should be set once).


Member Enumeration Documentation

enum CSS::AbsoluteLength::AbsoluteUnit

The absolute units.

Enumerator:
px  Relative unit : px is defined as a square pixel height or width (we will consider it as absolute here).
in  Absolute unit : in is an inch (25.4 mm).
cm  Absolute unit : cm is a centimeter (10 mm).
mm  Absolute unit : cm is a centimeter (10 mm).
pt  Absolute unit : pt is a point (~0.353 mm).
pc  Absolute unit : pc is a pica ie 12 points (4.233 mm).


Constructor & Destructor Documentation

CSS::AbsoluteLength::AbsoluteLength ( const float  value,
const AbsoluteUnit relUnit 
) [inline]

Constructor.

CSS::AbsoluteLength::AbsoluteLength ( const AbsoluteLength other  )  [inline]

Copy constructor.


Member Function Documentation

virtual int32 CSS::AbsoluteLength::getAsPixels ( const uint32  currentIteration = 0  )  const [inline, virtual]

Get this length in pixels.

Reimplemented from CSS::Length.

virtual const int32 CSS::Length::getComputedValue (  )  const [inline, virtual, inherited]

Get the computed value.

Reimplemented in CSS::LineHeight.

virtual bool CSS::AbsoluteLength::isAbsolute (  )  const [inline, virtual]

Is this length absolute (for performance reason) ?

Reimplemented from CSS::Length.

virtual bool CSS::Length::isAuto (  )  const [inline, virtual, inherited]

Is this length auto ?

Reimplemented in CSS::AutoLength, and CSS::LineHeight.

virtual void CSS::Length::setComputedValue ( const int32  _value,
const uint32  _iter 
) [inline, virtual, inherited]

Set the computed value.

Reimplemented in CSS::LineHeight.

void CSS::Length::setValue ( const float  val  )  [inline, inherited]

Set the declared value.

virtual void CSS::Length::setZero (  )  [inline, virtual, inherited]

Zero this object.

Reimplemented in CSS::LineHeight.


Member Data Documentation

int32 CSS::Length::computedValue [mutable, protected, inherited]

The last computed value (in pixels).

uint32 CSS::Length::iteration [mutable, protected, inherited]

The current rendering iteration (can only increase).

float CSS::AbsoluteLength::millimeterInPixels [static, protected]

The pixel size in millimeter (should be set once).

AbsoluteUnit CSS::AbsoluteLength::unit [protected]

The absolute unit.

float CSS::Length::value [protected, inherited]

The value.


The documentation for this struct was generated from the following files:

(C) An X-Ryl669 project 2007

This document describes Unlimited Zooming Interface source code. UZI stands for Unlimited Zooming Interface, and source code license is