|
|
Donner
C++20 SVG rendering library
|
A QualifiedRule has a list of component values and a block, this is the intermediate representation of a stylesheet rule. More...
#include "donner/css/Rule.h"
Public Member Functions | |
| QualifiedRule (std::vector< ComponentValue > &&prelude, SimpleBlock &&block) | |
| Constructor, takes ownership of the prelude and block. | |
| ~QualifiedRule ()=default | |
| Destructor. | |
| QualifiedRule (const QualifiedRule &other)=default | |
| Copy constructor. | |
| QualifiedRule & | operator= (const QualifiedRule &other)=default |
| Copy assignment operator. | |
| QualifiedRule (QualifiedRule &&other)=default | |
| Move constructor. | |
| QualifiedRule & | operator= (QualifiedRule &&other)=default |
| Move assignment operator. | |
| bool | operator== (const QualifiedRule &other) const =default |
| Equality operator. | |
Public Attributes | |
| std::vector< ComponentValue > | prelude |
| A list of component values before the block definition. | |
| SimpleBlock | block |
| Block with an opening associated token, such as '{', '[', or '(', and a list of tokens within the block. | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const QualifiedRule &qualifiedRule) |
| Ostream output operator for the QualifiedRule, in a human-readable but verbose format, to be used for debugging and testing. | |
A QualifiedRule has a list of component values and a block, this is the intermediate representation of a stylesheet rule.
For example, for a stylesheet rule:
|
friend |
Ostream output operator for the QualifiedRule, in a human-readable but verbose format, to be used for debugging and testing.
For example:
Would be:
| SimpleBlock donner::css::QualifiedRule::block |
Block with an opening associated token, such as '{', '[', or '(', and a list of tokens within the block.
For stylesheet rules, this is the '{ color: red }' part of the rule.
| std::vector<ComponentValue> donner::css::QualifiedRule::prelude |
A list of component values before the block definition.
For a > b { color: red }, a > b is the prelude, and it would be parsed into five token ComponentValue, a, ' ', >, b, ' '.