ELinks 0.18.0
css_property_info Struct Reference

The struct css_property_info describes what values the properties can have and what internal type they have. More...

#include <property.h>

Collaboration diagram for css_property_info:

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.

Detailed Description

The struct css_property_info describes what values the properties can have and what internal type they have.

Field Documentation

◆ name

const char* css_property_info::name

◆ parser

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.

◆ parser_data

void* css_property_info::parser_data

In case you use a generic parser, it can be useful to still give it some specific data.

You can do so through parser_data. The content is parser-specific.

◆ type

enum css_property_type css_property_info::type

◆ value_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.


The documentation for this struct was generated from the following file: