28 #ifndef ROCKETCOREPROPERTY_H
29 #define ROCKETCOREPROPERTY_H
37 class PropertyDefinition;
58 ABSOLUTE_UNIT = NUMBER | PX | COLOUR,
70 PPI_UNIT = INCH | CM | MM | PT | PC,
73 RELATIVE_UNIT = EM | REM | PERCENT
77 template <
typename PropertyType >
78 Property(PropertyType value,
Unit unit,
int specificity = -1) : value(
Variant(value)), unit(unit), specificity(specificity)
83 source_line_number = 0;
95 return value.Get<T>();
#define NULL
Definition: Types.h:33
Unit unit
Definition: Property.h:99
T Get() const
Templatised accessor.
Definition: Property.h:93
int parser_index
Definition: Property.h:103
Definition: PropertyDefinition.h:42
String source
Definition: Property.h:105
const PropertyDefinition * definition
Definition: Property.h:102
Definition: Clipboard.h:33
int specificity
Definition: Property.h:100
Property(PropertyType value, Unit unit, int specificity=-1)
Definition: Property.h:78
Definition: StringBase.h:42
int source_line_number
Definition: Property.h:106
Definition: Property.h:43
Unit
Definition: Property.h:46
Variant value
Definition: Property.h:98