ELinks 0.18.0
|
The struct css_property_info describes what values the properties can have and what internal type they have. More...
#include <property.h>
Data Fields | |
const char * | name |
enum css_property_type | type |
enum css_property_value_type | value_type |
This is the storage type, basically describing what to save to css_property.value. | |
css_property_value_parser_T | parser |
This is the property value parser, processing the written form of a property value. | |
void * | parser_data |
In case you use a generic parser, it can be useful to still give it some specific data. | |
The struct css_property_info describes what values the properties can have and what internal type they have.
const char* css_property_info::name |
css_property_value_parser_T css_property_info::parser |
This is the property value parser, processing the written form of a property value.
Its job is to take the value string (or scanner's token list in the future) and transform it to a union css_property_value according to the property's value_type. Although some properties can share a parser, it is expected that most properties will either use a custom one or use a generic parser with property-specific backend specified in parser_data.
void* css_property_info::parser_data |
enum css_property_type css_property_info::type |
enum css_property_value_type css_property_info::value_type |
This is the storage type, basically describing what to save to css_property.value.
Many properties can share the same valtype. The value is basically output of the value parser.