|
|
Donner 0.5.1
Embeddable browser-grade SVG2 engine
|
A CSS function, such as rgb(255, 0, 0), parsed into a function name and a list of parameter values. More...
#include "donner/css/ComponentValue.h"
Public Member Functions | |
| Function (RcString name, const FileOffset &sourceOffset) | |
| Construct a new Function object with a name and an empty parameter list. | |
| bool | operator== (const Function &other) const |
| Equality operator. | |
| std::string | toCssText () const |
| Serialize this function back to its CSS text representation, e.g. | |
Public Attributes | |
| RcString | name |
| Function name, such as "rgb". | |
| std::vector< ComponentValue > | values |
| List of parameter values. | |
| FileOffset | sourceOffset |
| Offset of the function name in the source string. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Function &func) |
| Output a human-readable representation of the function to a stream. | |
A CSS function, such as rgb(255, 0, 0), parsed into a function name and a list of parameter values.
Compared to Token::Function, this has the next level of parsing, where the function's parameters have been extracted as a list of ComponentValue. Token::Function would only include "rgb(" part of the function.
| donner::css::Function::Function | ( | RcString | name, |
| const FileOffset & | sourceOffset ) |
| std::string donner::css::Function::toCssText | ( | ) | const |
Serialize this function back to its CSS text representation, e.g.
rgb(255, 0, 0).
|
friend |
Output a human-readable representation of the function to a stream.
| os | Output stream. |
| func | Function to output. |