Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
donner::css::SelectorRule Struct Reference

A rule in a stylesheet, which consists of a selector and a list of declarations. More...

#include "donner/css/Stylesheet.h"

Collaboration diagram for donner::css::SelectorRule:
[legend]

Public Attributes

Selector selector
 Selector for this rule.
 
std::vector< Declarationdeclarations
 Declarations for this rule.
 

Friends

std::ostream & operator<< (std::ostream &os, const SelectorRule &rule)
 Output a human-readable representation of the delector to a stream.
 

Detailed Description

A rule in a stylesheet, which consists of a selector and a list of declarations.

For example, the following is a valid rule:

path.withColor {
fill: red;
stroke: blue;
}

The selector is path.withColor, and the declarations are fill: red and stroke: blue.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const SelectorRule & rule )
friend

Output a human-readable representation of the delector to a stream.

Parameters
osOutput stream.
ruleSelectorRule to output.

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