#include <style_set_value.h>
| Public Member Functions | |
| bool | is_angle () const | 
| Check if value is an angle. | |
| bool | is_color () const | 
| Check if value is a color. | |
| bool | is_frequency () const | 
| Check if value is a frequency. | |
| bool | is_keyword () const | 
| Check if value is a keyword. | |
| 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. | |
| bool | is_number () const | 
| Check if value is a number. | |
| bool | is_percentage () const | 
| Check if value is a percentage. | |
| bool | is_resolution () const | 
| Check if value is a resolution. | |
| bool | is_string () const | 
| Check if value is a string. | |
| bool | is_time () const | 
| Check if value is a time. | |
| bool | is_undefined () const | 
| Check if value is undefined. | |
| bool | is_url () const | 
| Check if value is an url. | |
| Static Public Member Functions | |
| static StyleSetValue | from_angle (float angle, StyleDimension dimension=StyleDimension::rad) | 
| Create style value from an angle. | |
| static StyleSetValue | from_color (const Colorf &color) | 
| Create style value from a color. | |
| static StyleSetValue | from_frequency (float freq, StyleDimension dimension=StyleDimension::hz) | 
| Create style value from a frequency. | |
| static StyleSetValue | from_keyword (const std::string &keyword) | 
| Create style value from a keyword. | |
| static StyleSetValue | from_length (float length, StyleDimension dimension=StyleDimension::px) | 
| Create style value from a length. | |
| static StyleSetValue | from_number (float number) | 
| Create style value from a number. | |
| static StyleSetValue | from_percentage (float percentage) | 
| Create style value from a percentage. | |
| static StyleSetValue | from_resolution (float resolution, StyleDimension dimension=StyleDimension::dppx) | 
| Create style value from a resolution. | |
| static StyleSetValue | from_string (const std::string &text) | 
| Create style value from a string. | |
| static StyleSetValue | from_time (float t, StyleDimension dimension=StyleDimension::s) | 
| Create style value from a time. | |
| static StyleSetValue | from_url (const std::string &url) | 
| Create style value from an url. | |
| Public Attributes | |
| Colorf | color | 
| Value color. | |
| StyleDimension | dimension = StyleDimension::px | 
| Dimension used by value. | |
| float | number = 0.0f | 
| Value number. | |
| std::string | text | 
| Text when the type is a text string. | |
| StyleValueType | type = StyleValueType::undefined | 
| Variant type. | |
Style value variable.
| 
 | inlinestatic | 
Create style value from an angle.
References clan::angle, dimension, type, and clan::v.
| 
 | inlinestatic | 
Create style value from a color.
References color, clan::color, type, and clan::v.
| 
 | inlinestatic | 
Create style value from a frequency.
References dimension, clan::frequency, type, and clan::v.
| 
 | inlinestatic | 
Create style value from a keyword.
References clan::keyword, type, and clan::v.
| 
 | inlinestatic | 
Create style value from a length.
References dimension, clan::length, type, and clan::v.
| 
 | inlinestatic | 
Create style value from a number.
References number, clan::number, type, and clan::v.
| 
 | inlinestatic | 
Create style value from a percentage.
References clan::percentage, type, and clan::v.
| 
 | inlinestatic | 
Create style value from a resolution.
References dimension, clan::resolution, type, and clan::v.
| 
 | inlinestatic | 
Create style value from a string.
References clan::string, text, type, and clan::v.
| 
 | inlinestatic | 
Create style value from a time.
References dimension, clan::t, clan::time, type, and clan::v.
| 
 | inlinestatic | 
| 
 | inline | 
Check if value is an angle.
References clan::angle, and type.
| 
 | inline | 
Check if value is a color.
References clan::color, and type.
| 
 | inline | 
Check if value is a frequency.
References clan::frequency, and type.
| 
 | inline | 
Check if value is a keyword.
References clan::keyword, and type.
| 
 | inline | 
References is_keyword(), clan::keyword, and text.
Referenced by is_keyword().
| 
 | inline | 
References is_keyword(), clan::keyword, and text.
Referenced by is_keyword().
| 
 | inline | 
Check if value is a length.
References clan::length, and type.
| 
 | inline | 
Check if value is a number.
References clan::number, and type.
| 
 | inline | 
Check if value is a percentage.
References clan::percentage, and type.
| 
 | inline | 
Check if value is a resolution.
References clan::resolution, and type.
| 
 | inline | 
Check if value is a string.
References clan::string, and type.
| 
 | inline | 
Check if value is a time.
References clan::time, and type.
| 
 | inline | 
Check if value is undefined.
References type, and clan::undefined.
| 
 | inline | 
| Colorf clan::StyleSetValue::color | 
Value color.
Referenced by from_color().
| StyleDimension clan::StyleSetValue::dimension = StyleDimension::px | 
Dimension used by value.
Referenced by from_angle(), from_frequency(), from_length(), from_resolution(), and from_time().
| float clan::StyleSetValue::number = 0.0f | 
Value number.
Referenced by from_number().
| std::string clan::StyleSetValue::text | 
Text when the type is a text string.
Referenced by from_string(), is_keyword(), and is_keyword().
| StyleValueType clan::StyleSetValue::type = StyleValueType::undefined | 
Variant type.
Referenced by from_angle(), from_color(), from_frequency(), from_keyword(), from_length(), from_number(), from_percentage(), from_resolution(), from_string(), from_time(), from_url(), is_angle(), is_color(), is_frequency(), is_keyword(), is_length(), is_number(), is_percentage(), is_resolution(), is_string(), is_time(), is_undefined(), and is_url().