#include <Property.h>

Public Types | |
| enum | Unit { UNKNOWN = 1 << 0, KEYWORD = 1 << 1, STRING = 1 << 2, NUMBER = 1 << 3, PX = 1 << 4, COLOUR = 1 << 5, ABSOLUTE_UNIT = NUMBER | PX | COLOUR, EM = 1 << 6, PERCENT = 1 << 7, RELATIVE_UNIT = EM | PERCENT } |
Public Member Functions | |
| template<typename PropertyType> | |
| Property (PropertyType value, Unit unit, int specificity=-1) | |
| String | ToString () const |
| Get the value of the property as a string. | |
| template<typename T> | |
| T | Get () const |
| Templatised accessor. | |
Data Fields | |
| Variant | value |
| Unit | unit |
| int | specificity |
| const PropertyDefinition * | definition |
| int | parser_index |
| String | source |
| int | source_line_number |