Public Types | Public Member Functions | Static Public Member Functions | Public Attributes
cinder::svg::Value Class Reference

SVG Value/Unit pair. More...

#include <Svg.h>

List of all members.

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 ( 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
Value cinder::svg::Value::parse ( const char **  sInOut) [static]
Value cinder::svg::Value::parse ( const std::string &  s) [static]

Member Data Documentation


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