|
|
Donner
C++20 SVG rendering library
|
#include "donner/base/element/ElementLike.h"Classes | |
| struct | donner::css::SelectorMatchOptions< T > |
| Options for matching a selector against an element. 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. | |
| struct donner::css::SelectorMatchOptions |
Options for matching a selector against an element.
This is used to pass additional information to the matching algorithm, such as the element to match against for relative queries.
| T | A type that fulfills the ElementLike concept, matching the Selector::matches method. |
| Class Members | ||
|---|---|---|
| const T * | relativeToElement | Enables relative querying and uses this element as the reference point. For example, > div will match div that is a child of relativeToElement. |
| const T * | scopeElement = nullptr | Element to match against :scope queries. Cannot be matched directly, but can be used for relative matching. |