CSS::Length Struct Reference

#include <CSSUnit.hpp>

Inheritance diagram for CSS::Length:

CSS::AbsoluteLength CSS::AutoLength CSS::LineHeight CSS::RelativeLength List of all members.

Detailed Description

A length is either a relative value, or an absolute measurement.


Public Member Functions

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 Member Functions

 Length (const float _value)
 Construction.

Protected Attributes

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


Constructor & Destructor Documentation

CSS::Length::Length ( const float  _value  )  [inline, protected]

Construction.


Member Function Documentation

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

Get this length in pixels.

Returns:
the number of pixel used for this length

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

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

Get the computed value.

Reimplemented in CSS::LineHeight.

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

Is this length absolute (for performance reason) ?

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

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

Is this length auto ?

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

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

Set the computed value.

Reimplemented in CSS::LineHeight.

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

Set the declared value.

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

Zero this object.

Reimplemented in CSS::LineHeight.


Member Data Documentation

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

The last computed value (in pixels).

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

The current rendering iteration (can only increase).

float CSS::Length::value [protected]

The value.


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

(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