Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
ComplexSelector.h File Reference
Include dependency graph for ComplexSelector.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  donner::css::SelectorMatchResult
 Returned by Selector::matches to indicate whether the selector matched, and if so, the specificity of the match. More...
 
struct  donner::css::ComplexSelector
 A complex selector is a sequence of one or more compound selectors, separated by combinators. More...
 
struct  donner::css::ComplexSelector::Entry
 A single entry in a complex selector, which is a compound selector and a combinator. More...
 

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
 
namespace  donner::css
 Donner CSS library, a standalone composable CSS parser.
 

Enumerations

enum class  donner::css::Combinator {
  donner::css::Descendant ,
  donner::css::Child ,
  donner::css::NextSibling ,
  donner::css::SubsequentSibling ,
  donner::css::Column
}
 Between two compound selectors, there can be a combinator, which specifies how the two elements are associated in the tree. More...
 

Functions

std::ostream & donner::css::operator<< (std::ostream &os, Combinator combinator)
 Ostream output operator.
 

Class Documentation

◆ donner::css::ComplexSelector::Entry

struct donner::css::ComplexSelector::Entry

A single entry in a complex selector, which is a compound selector and a combinator.

Collaboration diagram for donner::css::ComplexSelector::Entry:
[legend]
Class Members
Combinator combinator The combinator between this compound selector and the next. For regular selector lists, the first entry is set to Combinator::Descendant but it has no effect. For relative selector lists, the first entry is the leading combinator, for example "> div".
CompoundSelector compoundSelector The compound selector.