HTML::MEASUREMENT Class Reference

A measurement of some kind in a STYLE. More...

#include <mi32/htmlmeasurement.h>

List of all members.

Public Types

enum  RELATIVETO {
  RELATIVETO_NotAllowed = 0, RELATIVETO_ParentBlockWidth, RELATIVETO_ParentBlockHeight, RELATIVETO_TextHeight,
  RELATIVETO_ParentTextHeight, RELATIVETO_LineHeight, RELATIVETO_SelfHeight, RELATIVETO_SelfWidth
}

Public Member Functions

 MEASUREMENT (const MEASUREMENT &)
 MEASUREMENT (CSS_PROPERTY property, RELATIVETO relative=RELATIVETO_NotAllowed)
void Clear ()
void Combine (const MEASUREMENT &rhs)
SCREENUNIT GetUnits () const
double GetValue (MGD::CONTEXT *gc, const ELEMENT *Element) const
double GetValue () const
MISTRING GetValueCSS () const
bool IsAuto () const
bool IsPercent () const
bool IsSet () const
bool operator!= (const MEASUREMENT &rhs) const
bool operator== (const MEASUREMENT &rhs) const
const char * Parse (const char *)
void Set (double value, SCREENUNIT units)
void SetProperty (CSS_PROPERTY property)
void SetRelativeTo (RELATIVETO rel)

Detailed Description

A measurement of some kind in a STYLE.


Member Enumeration Documentation

Enumerator:
RELATIVETO_NotAllowed 
RELATIVETO_ParentBlockWidth 
RELATIVETO_ParentBlockHeight 
RELATIVETO_TextHeight 
RELATIVETO_ParentTextHeight 
RELATIVETO_LineHeight 
RELATIVETO_SelfHeight 
RELATIVETO_SelfWidth 

Constructor & Destructor Documentation

HTML::MEASUREMENT::MEASUREMENT ( CSS_PROPERTY  property,
RELATIVETO  relative = RELATIVETO_NotAllowed 
)
HTML::MEASUREMENT::MEASUREMENT ( const MEASUREMENT  ) 

Member Function Documentation

void HTML::MEASUREMENT::Clear (  )  [inline]
void HTML::MEASUREMENT::Combine ( const MEASUREMENT rhs  ) 
SCREENUNIT HTML::MEASUREMENT::GetUnits (  )  const [inline]
double HTML::MEASUREMENT::GetValue ( MGD::CONTEXT gc,
const ELEMENT Element 
) const

Get the value converted to pixels relative to the given device Note: This does not work if IsPercent() returns true.

double HTML::MEASUREMENT::GetValue (  )  const [inline]
MISTRING HTML::MEASUREMENT::GetValueCSS (  )  const

Get the value of the measurement as a string that can be parsed as a valid CSS measurement.

If the value is not set, it will return an empty string.

bool HTML::MEASUREMENT::IsAuto (  )  const [inline]
bool HTML::MEASUREMENT::IsPercent (  )  const [inline]
bool HTML::MEASUREMENT::IsSet (  )  const [inline]
bool HTML::MEASUREMENT::operator!= ( const MEASUREMENT rhs  )  const
bool HTML::MEASUREMENT::operator== ( const MEASUREMENT rhs  )  const
const char* HTML::MEASUREMENT::Parse ( const char *   ) 
void HTML::MEASUREMENT::Set ( double  value,
SCREENUNIT  units 
) [inline]
void HTML::MEASUREMENT::SetProperty ( CSS_PROPERTY  property  )  [inline]
void HTML::MEASUREMENT::SetRelativeTo ( RELATIVETO  rel  )  [inline]

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

Generated on Sun Oct 7 21:35:01 2012 for TNTsdk 2012 by  doxygen 1.6.1