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

The bucket one selector-list entry is filed under in a RuleIndex: a simple selector of its subject (rightmost) compound that every element it matches must carry. More...

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

Public Types

enum class  Kind : std::uint8_t {
  Id ,
  Class ,
  Attribute ,
  Type ,
  Universal
}
 What the key names, in order of preference when a compound has several. More...

Public Member Functions

bool operator== (const RuleIndexKey &) const =default
 Equality operator.

Public Attributes

Kind kind = Kind::Universal
 What name names.
RcString name
 Key text, lowercased for Kind::Attribute and Kind::Type.

Friends

std::ostream & operator<< (std::ostream &os, const RuleIndexKey &key)
 Print the key, for test failure output.

Detailed Description

The bucket one selector-list entry is filed under in a RuleIndex: a simple selector of its subject (rightmost) compound that every element it matches must carry.

Member Enumeration Documentation

◆ Kind

enum class donner::svg::components::RuleIndexKey::Kind : std::uint8_t
strong

What the key names, in order of preference when a compound has several.

Enumerator
Id 

#name, compared exactly.

Class 

.name, compared exactly.

Attribute 

[name] with no namespace, compared as an ASCII-lowercased local name.

Type 

A type name, compared ASCII-lowercased; a universal type gives no key.

Universal 

No key: the entry is a candidate for every element.


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