Orcus
|
#include <css_parser.hpp>
Public Member Functions | |
void | at_rule_name (std::string_view name) |
void | simple_selector_type (std::string_view type) |
void | simple_selector_class (std::string_view cls) |
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 (std::string_view id) |
void | end_simple_selector () |
void | end_selector () |
void | combinator (orcus::css::combinator_t combinator) |
void | property_name (std::string_view name) |
void | value (std::string_view value) |
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 (std::string_view url) |
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 upon encountering an at-rule.
name | name of the at-rule. |
|
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 a single property expression. Each property expression may consist of
terminated by either a ; or }.
|
inline |
Calling upon encountering a combinator. A combinator is an operator that combines other selectors. Given the following CSS block:
the > is the combinator that combines the div and p selectors.
combinator | type of combinator encountered. |
|
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 a single property expression.
|
inline |
Called at the end of a selector expression.
|
inline |
Called at the end of a simple selector expression.
|
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.
name | 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 upon encountering a simple selector class. A simple selector may consist of
and this function only passes the class part of the simple selector expression.
cls | simple selector class. |
|
inline |
Called upon encountering a simple selector id. A simple selector may consist of
and this function only passes the id part of the simle selector expression.
id | simple selector id. |
|
inline |
Called upon encountering a pseudo class of a simple selector. For instance, given the following CSS block:
the hover part is the pseudo class of the selector named button.
pc | pseudo class of a simple selector. |
|
inline |
Called upon encountering a pseudo element of a simple selector. For instance, given the following CSS block:
the first-line part is the pseudo element of the selector named p.
pe | pseudo element of a simple selector. |
|
inline |
Called upon encountering a simple selector type. A simple selector may consist of
and this function only passes the type part of the simple selector expression.
type | simple selector type. |
|
inline |
Called at each URL value of a property.
url | URL value string. |
|
inline |
Called at each ordinary property value string.
value | value string. |