Style value returned by style classes. More...
#include <style_get_value.h>
Public Member Functions | |
Colorf | color () const |
Value color. More... | |
StyleDimension | dimension () const |
Dimension used by value. More... | |
bool | is_angle () const |
Check if value is an angle. More... | |
bool | is_color () const |
Check if value is a color. More... | |
bool | is_frequency () const |
Check if value is a frequency. More... | |
bool | is_keyword () const |
Check if value is a keyword. More... | |
bool | is_keyword (const char *keyword) const |
bool | is_keyword (const std::string &keyword) const |
bool | is_length () const |
Check if value is a length. More... | |
bool | is_number () const |
Check if value is a number. More... | |
bool | is_percentage () const |
Check if value is a percentage. More... | |
bool | is_resolution () const |
Check if value is a resolution. More... | |
bool | is_string () const |
Check if value is a string. More... | |
bool | is_time () const |
Check if value is a time. More... | |
bool | is_undefined () const |
Check if value is undefined. More... | |
bool | is_url () const |
Check if value is an url. More... | |
float | number () const |
Value number. More... | |
const char * | text () const |
Text when the type is a text string. More... | |
StyleValueType | type () const |
Variant type. More... | |
Static Public Member Functions | |
static StyleGetValue | from_angle (float angle, StyleDimension dimension=StyleDimension::rad) |
Create style value from an angle. More... | |
static StyleGetValue | from_color (const Colorf &color) |
Create style value from a color. More... | |
static StyleGetValue | from_frequency (float freq, StyleDimension dimension=StyleDimension::hz) |
Create style value from a frequency. More... | |
static StyleGetValue | from_keyword (const char *keyword) |
Create style value from a keyword. More... | |
static StyleGetValue | from_length (float length, StyleDimension dimension=StyleDimension::px) |
Create style value from a length. More... | |
static StyleGetValue | from_number (float number) |
Create style value from a number. More... | |
static StyleGetValue | from_percentage (float percentage) |
Create style value from a percentage. More... | |
static StyleGetValue | from_resolution (float resolution, StyleDimension dimension=StyleDimension::dppx) |
Create style value from a resolution. More... | |
static StyleGetValue | from_string (const char *text) |
Create style value from a string. More... | |
static StyleGetValue | from_time (float t, StyleDimension dimension=StyleDimension::s) |
Create style value from a time. More... | |
static StyleGetValue | from_url (const char *url) |
Create style value from an url. More... | |
Style value returned by style classes.
|
inline |
Value color.
References clan::color.
|
inline |
Dimension used by value.
References clan::angle, clan::frequency, clan::length, clan::px, clan::resolution, and clan::time.
|
inlinestatic |
Create style value from an angle.
References clan::angle, dimension, and clan::v.
|
inlinestatic |
Create style value from a color.
References clan::color, color, and clan::v.
|
inlinestatic |
Create style value from a frequency.
References dimension, clan::frequency, and clan::v.
|
inlinestatic |
Create style value from a keyword.
References clan::keyword, and clan::v.
|
inlinestatic |
Create style value from a length.
References dimension, clan::length, and clan::v.
|
inlinestatic |
Create style value from a number.
References clan::number, number, and clan::v.
|
inlinestatic |
Create style value from a percentage.
References clan::percentage, and clan::v.
|
inlinestatic |
Create style value from a resolution.
References dimension, clan::resolution, and clan::v.
|
inlinestatic |
Create style value from a string.
References clan::string, text, and clan::v.
|
inlinestatic |
Create style value from a time.
References dimension, clan::t, clan::time, and clan::v.
|
inlinestatic |
|
inline |
Check if value is an angle.
References clan::angle.
|
inline |
Check if value is a color.
References clan::color.
|
inline |
Check if value is a frequency.
References clan::frequency.
|
inline |
Check if value is a keyword.
References clan::keyword.
|
inline |
References is_keyword(), and clan::keyword.
Referenced by is_keyword().
|
inline |
References is_keyword(), and clan::keyword.
Referenced by is_keyword().
|
inline |
Check if value is a length.
References clan::length.
|
inline |
Check if value is a number.
References clan::number.
|
inline |
Check if value is a percentage.
References clan::percentage.
|
inline |
Check if value is a resolution.
References clan::resolution.
|
inline |
Check if value is a string.
References clan::string.
|
inline |
Check if value is a time.
References clan::time.
|
inline |
Check if value is undefined.
References clan::undefined.
|
inline |
Check if value is an url.
References clan::url.
|
inline |
Value number.
References clan::angle, clan::frequency, clan::length, clan::number, clan::percentage, clan::resolution, and clan::time.
|
inline |
Text when the type is a text string.
References clan::keyword, clan::string, and clan::url.
|
inline |
Variant type.
float clan::StyleGetValue::color[4] |
Referenced by from_color().
StyleDimension clan::StyleGetValue::dimension |
Referenced by from_angle(), from_frequency(), from_length(), from_resolution(), and from_time().
struct { ... } clan::StyleGetValue::float_value |
float clan::StyleGetValue::number |
Referenced by from_number().
const char* clan::StyleGetValue::text |
Referenced by from_string().