43 bool from_token(
const css_token& token,
int options,
const string& predefined_keywords =
"");
121 return (
int) ((double) width * (
double)
m_value / 100.0);
Definition css_length.h:22
bool m_is_predefined
Definition css_length.h:29
static css_length predef_value(int val=0)
Definition css_length.cpp:71
void set_value(float val, css_units units)
Definition css_length.h:94
float m_value
Definition css_length.h:25
int predef() const
Definition css_length.h:85
css_length()
Definition css_length.h:51
css_units units() const
Definition css_length.h:110
bool is_predefined() const
Definition css_length.h:74
float val() const
Definition css_length.h:101
bool from_token(const css_token &token, int options, const string &predefined_keywords="")
Definition css_length.cpp:7
string to_string() const
Definition css_length.cpp:62
int m_predef
Definition css_length.h:26
css_units m_units
Definition css_length.h:28
int calc_percent(int width) const
Definition css_length.h:115
css_length & operator=(float val)
Definition css_length.h:66
Definition background.h:12
vector< css_length > length_vector
Definition css_length.h:47
@ f_integer
Definition css_length.h:15
@ f_length_percentage
Definition css_length.h:13
@ f_number
Definition css_length.h:14
@ f_length
Definition css_length.h:11
@ f_positive
Definition css_length.h:16
@ f_percentage
Definition css_length.h:12
css_units
Definition types.h:500
@ css_units_px
Definition types.h:510
@ css_units_percentage
Definition types.h:502
@ css_units_none
Definition types.h:501
Definition css_tokenizer.h:69