Rocket::Core::Property Class Reference

#include <Property.h>

Collaboration diagram for Rocket::Core::Property:

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>
Get () const
 Templatised accessor.

Data Fields

Variant value
Unit unit
int specificity
const PropertyDefinitiondefinition
int parser_index
String source
int source_line_number

Detailed Description

Author:
Peter Curry

The documentation for this class was generated from the following files:
  • Include/Rocket/Core/Property.h
  • Source/Core/Property.cpp