Orcus
|
#include <css_parser.hpp>
Public Member Functions | |
void | at_rule_name (const char *p, size_t n) |
void | simple_selector_type (const char *p, size_t n) |
void | simple_selector_class (const char *p, size_t n) |
void | simple_selector_pseudo_element (orcus::css::pseudo_element_t pe) |
void | simple_selector_pseudo_class (orcus::css::pseudo_class_t pc) |
void | simple_selector_id (const char *p, size_t n) |
void | end_simple_selector () |
void | end_selector () |
void | combinator (orcus::css::combinator_t combinator) |
void | property_name (const char *p, size_t n) |
void | value (const char *p, size_t n) |
void | rgb (uint8_t red, uint8_t green, uint8_t blue) |
void | rgba (uint8_t red, uint8_t green, uint8_t blue, double alpha) |
void | hsl (uint8_t hue, uint8_t sat, uint8_t light) |
void | hsla (uint8_t hue, uint8_t sat, uint8_t light, double alpha) |
void | url (const char *p, size_t n) |
void | begin_parse () |
void | end_parse () |
void | begin_block () |
void | end_block () |
void | begin_property () |
void | end_property () |
Empty handler for CSS parser. Sub-class from it and implement necessary methods.
|
inline |
Called at the beginning of each block. An opening brace '{' marks the beginning of a block.
|
inline |
Called when the parsing begins.
|
inline |
Called at the beginning of each property.
|
inline |
Called at the end of each block. A closing brace '}' marks the end of a block.
|
inline |
Called when the parsing ends.
|
inline |
Called at the end of each property.
|
inline |
Called at each HSL color value of a property.
hue | hue |
sat | saturation |
light | lightness |
|
inline |
Called at each HSL color value of a property with alpha transparency value.
hue | hue |
sat | saturation |
light | lightness |
alpha | alpha value |
|
inline |
Called at each property name.
p | pointer to the char-array containing the property name string. |
n | length of the property name string. |
|
inline |
Called at each RGB color value of a property.
red | value of red (0-255) |
green | value of green (0-255) |
blue | value of blue (0-255) |
|
inline |
Called at each RGB color value of a property with alpha transparency value.
red | value of red (0-255) |
green | value of green (0-255) |
blue | value of blue (0-255) |
alpha | alpha transparency value |
|
inline |
Called at each URL value of a property.
p | pointer to the char-array containing the URL value string. |
n | length of the URL value string. |
|
inline |
Called at each ordinary property value string.
p | pointer to the char-array containing the value string. |
n | length of the value string. |