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
Parameter [input]: _size Requested dimention
Parameter [input]: _type Unit of the Dimention
ewol::Dimension ()
Dimension(const std::string & _config);
Constructor
Parameter [input]: _config dimension configuration.
ewol::Dimension ()
Dimension(const char * _config);
Constructor
Parameter [input]: _config dimension configuration.
ewol::~Dimension ()
~Dimension(void);
Destructor
string ()
void string(void);
string cast :
get ()
vec2 get(enum distance _type);
get the current dimention in requested type
Parameter [input]: _type Type of unit requested.
Return: dimention requested.
set ()
void set(const vec2 & _size,
enum distance _type);
set the current dimention in requested type
Parameter [input]: _size Dimention to set
Parameter [input]: _type Type of unit requested.
getPixel ()
vec2 getPixel(void);
get the current dimention in pixel
Return: dimention in Pixel
getPourcent ()
vec2 getPourcent(void);
get the current dimention in Pourcent
Return: dimention in Pourcent
getMeter ()
vec2 getMeter(void);
get the current dimention in Meter
Return: dimention in Meter
getCentimeter ()
vec2 getCentimeter(void);
get the current dimention in Centimeter
Return: dimention in Centimeter
getMillimeter ()
vec2 getMillimeter(void);
get the current dimention in Millimeter
Return: dimention in Millimeter
getKilometer ()
vec2 getKilometer(void);
get the current dimention in Kilometer
Return: dimention in Kilometer
getInch ()
vec2 getInch(void);
get the current dimention in Inch
Return: dimention in Inch
getFoot ()
vec2 getFoot(void);
get the current dimention in Foot
Return: 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
Parameter [input]: _config dimension configuration.
ewol::Dimension ()
Dimension(void);
Constructor (default :0,0 mode pixel)
ewol::Dimension ()
Dimension(const vec2 & _size, enum ewol::Dimension::distance _type);
Constructor
-
Parameter [input]: _size Requested dimention
Parameter [input]: _type Unit of the Dimention
ewol::Dimension ()
Dimension(const std::string & _config);
Constructor
-
Parameter [input]: _config dimension configuration.
ewol::Dimension ()
Dimension(const char * _config);
Constructor
-
Parameter [input]: _config dimension configuration.
ewol::~Dimension ()
~Dimension(void);
Destructor
string ()
void string(void);
string cast :
get ()
vec2 get(enum distance _type);
get the current dimention in requested type
-
Parameter [input]: _type Type of unit requested.
Return: dimention requested.
set ()
void set(const vec2 & _size, enum distance _type);
set the current dimention in requested type
-
Parameter [input]: _size Dimention to set
Parameter [input]: _type Type of unit requested.
getPixel ()
vec2 getPixel(void);
get the current dimention in pixel
-
Return: dimention in Pixel
getPourcent ()
vec2 getPourcent(void);
get the current dimention in Pourcent
-
Return: dimention in Pourcent
getMeter ()
vec2 getMeter(void);
get the current dimention in Meter
-
Return: dimention in Meter
getCentimeter ()
vec2 getCentimeter(void);
get the current dimention in Centimeter
-
Return: dimention in Centimeter
getMillimeter ()
vec2 getMillimeter(void);
get the current dimention in Millimeter
-
Return: dimention in Millimeter
getKilometer ()
vec2 getKilometer(void);
get the current dimention in Kilometer
-
Return: dimention in Kilometer
getInch ()
vec2 getInch(void);
get the current dimention in Inch
-
Return: dimention in Inch
getFoot ()
vec2 getFoot(void);
get the current dimention in Foot
-
Return: 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
-
Parameter [input]: _config dimension configuration.