Class: ewol::Dimension


Synopsis:

+                     Dimension      (void);
+ Dimension (const vec2 & _size,
enum ewol::Dimension::distance _type);
+ Dimension (const std::string & _config);
+ Dimension (const char * _config);
+ ~Dimension (void);
+ void string (void);
+ vec2 get (enum distance _type);
+ void set (const vec2 & _size,
enum distance _type);
+ vec2 getPixel (void);
+ vec2 getPourcent (void);
+ vec2 getMeter (void);
+ vec2 getCentimeter (void);
+ vec2 getMillimeter (void);
+ vec2 getKilometer (void);
+ vec2 getInch (void);
+ vec2 getFoot (void);
+ const Dimension & operator= (const Dimension & _obj);
+ bool operator== (const Dimension & _obj);
+ bool operator!= (const Dimension & _obj);
- void set (std::string _config);

Description:

/** * @brief in the dimention class we store the data as the more usefull unit (pixel) * but one case need to be dynamic the %, then when requested in % the register the % value */

Detail:

ewol::Dimension ()

Dimension(void);

Constructor (default :0,0 mode pixel)


ewol::Dimension ()

Dimension(const vec2 & _size,
          enum ewol::Dimension::distance _type);

Constructor


ewol::Dimension ()

Dimension(const std::string & _config);

Constructor


ewol::Dimension ()

Dimension(const char * _config);

Constructor


ewol::~Dimension ()

~Dimension(void);

Destructor


string ()

void string(void);

string cast :


get ()

vec2 get(enum distance _type);

get the current dimention in requested type


set ()

void set(const vec2 & _size,
         enum distance _type);

set the current dimention in requested type


getPixel ()

vec2 getPixel(void);

get the current dimention in pixel


getPourcent ()

vec2 getPourcent(void);

get the current dimention in Pourcent


getMeter ()

vec2 getMeter(void);

get the current dimention in Meter


getCentimeter ()

vec2 getCentimeter(void);

get the current dimention in Centimeter


getMillimeter ()

vec2 getMillimeter(void);

get the current dimention in Millimeter


getKilometer ()

vec2 getKilometer(void);

get the current dimention in Kilometer


getInch ()

vec2 getInch(void);

get the current dimention in Inch


getFoot ()

vec2 getFoot(void);

get the current dimention in Foot


operator= ()

const Dimension & operator=(const Dimension & _obj);



operator== ()

bool operator==(const Dimension & _obj);



operator!= ()

bool operator!=(const Dimension & _obj);



set ()

void set(std::string _config);

set the current dimention in requested type