Cinder  0.9.1
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
cinder::svg::Value Class Reference

#include <Svg.h>

Public Types

enum  Unit {
  USER, PX, PERCENT, PT,
  PC, MM, CM, INCH,
  EM, EX
}
 

Public Member Functions

 Value ()
 
 Value (float value, Unit unit=USER)
 
float asUser (float percentOf=100, float dpi=72, float fontSize=12, float fontXHeight=7) const
 
bool isUser () const
 
bool isPercent () const
 
bool isPixels () const
 

Static Public Member Functions

static Value parse (const char **sInOut)
 
static Value parse (const std::string &s)
 

Public Attributes

Unit mUnit
 
float mValue
 

Detailed Description

SVG Value/Unit pair.

Member Enumeration Documentation

Enumerator
USER 
PX 
PERCENT 
PT 
PC 
MM 
CM 
INCH 
EM 
EX 

Constructor & Destructor Documentation

cinder::svg::Value::Value ( )
cinder::svg::Value::Value ( float  value,
Unit  unit = USER 
)

Member Function Documentation

float cinder::svg::Value::asUser ( float  percentOf = 100,
float  dpi = 72,
float  fontSize = 12,
float  fontXHeight = 7 
) const
bool cinder::svg::Value::isUser ( ) const
bool cinder::svg::Value::isPercent ( ) const
bool cinder::svg::Value::isPixels ( ) const
Value cinder::svg::Value::parse ( const char **  sInOut)
static
Value cinder::svg::Value::parse ( const std::string &  s)
static

Member Data Documentation

Unit cinder::svg::Value::mUnit
float cinder::svg::Value::mValue

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