ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
ZenitUI::SimpleSelector Struct Reference

One component of a CSS selector chain. More...

#include <Style.hpp>

Classes

struct  NegatedItem
 Single compound argument inside a :not(...) pseudo-class. More...
struct  Negation
 One :not(a, b, ...) clause; matches when none of items match. More...

Public Types

enum class  Kind : uint8_t { Tag , Class , Id , Any }

Public Attributes

std::string name
Kind kind {Kind::Tag}
SelectorCombinator combinator {SelectorCombinator::Descendant}
std::vector< std::pair< Kind, std::string > > extras
std::vector< Negation > negations
bool requireHover {false}
bool requirePressed {false}
bool requireFocus {false}
bool requireDisabled {false}
bool requireChecked {false}

Detailed Description

One component of a CSS selector chain.

Member Enumeration Documentation

◆ Kind

enum class ZenitUI::SimpleSelector::Kind : uint8_t
strong
Enumerator
Any 

Universal selector * or implicit base for standalone :not(...) / :hover.


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