Donner SVG main
0.8.0 ยท 766e862a0.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::svg::components::SelectorDependency Struct Reference

Which elements' selector matching can change when an element gains or loses a name (an id, a class, or an attribute), relative to that element. More...

#include "donner/svg/components/style/SelectorDependencySummary.h"

Public Types

enum  Bits : std::uint8_t {
  Subject = 1 << 0 ,
  Descendants = 1 << 1 ,
  FollowingSiblings = 1 << 2 ,
  PrecedingSiblings = 1 << 3 ,
  Ancestors = 1 << 4
}
 One relation between the element whose name changed and the elements to restyle. More...

Static Public Attributes

static constexpr std::uint8_t kAll
 Every relation: what a wildcard attribute selector implies for any attribute name.

Detailed Description

Which elements' selector matching can change when an element gains or loses a name (an id, a class, or an attribute), relative to that element.

A bit set of Bits values.

Member Enumeration Documentation

◆ Bits

One relation between the element whose name changed and the elements to restyle.

Enumerator
Subject 

The element itself.

Descendants 

Its descendants.

FollowingSiblings 

Its following siblings and their descendants.

PrecedingSiblings 

Its preceding siblings and their descendants.

Ancestors 

Its ancestors and their preceding siblings, through :has().

Member Data Documentation

◆ kAll

std::uint8_t donner::svg::components::SelectorDependency::kAll
staticconstexpr
Initial value:
=
@ PrecedingSiblings
Its preceding siblings and their descendants.
Definition SelectorDependencySummary.h:25
@ FollowingSiblings
Its following siblings and their descendants.
Definition SelectorDependencySummary.h:24
@ Ancestors
Its ancestors and their preceding siblings, through :has().
Definition SelectorDependencySummary.h:26
@ Descendants
Its descendants.
Definition SelectorDependencySummary.h:23
@ Subject
The element itself.
Definition SelectorDependencySummary.h:22

Every relation: what a wildcard attribute selector implies for any attribute name.


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