AeonGUI
A portable video game graphic user interface library.
Loading...
Searching...
No Matches
AeonGUI::SimpleSelector Struct Reference

A single simple selector component (type, id, class, or attribute). More...

#include </d/a/AeonGUI/AeonGUI/include/aeongui/CSSSelector.hpp>

Collaboration diagram for AeonGUI::SimpleSelector:
[legend]

Public Types

enum  Type {
  Universal , TypeSel , Id , Class ,
  Attribute
}
 Kind of simple selector. More...
enum  AttrOp {
  Exists , Equals , Includes , DashMatch ,
  Prefix , Suffix , Substring
}
 Attribute matching operator. More...

Public Attributes

Type type {Universal}
 The selector kind.
std::string name {}
 Selector name (tag name, id, class, or attribute name).
std::string value {}
AttrOp attrOp {Exists}
 The attribute match operation.

Detailed Description

A single simple selector component (type, id, class, or attribute).

Member Enumeration Documentation

◆ AttrOp

Attribute matching operator.

Enumerator
Exists 

[attr]

Equals 

[attr=value]

Includes 

[attr~=value]

DashMatch 

[attr|=value]

Prefix 

[attr^=value]

Suffix 

[attr$=value]

Substring 

[attr*=value]

◆ Type

Kind of simple selector.

Enumerator
Universal 
TypeSel 

e.g. rect, text

Id 

#myId

Class 

.myClass

Attribute 

[attr] or [attr=value]

Member Data Documentation

◆ value

std::string AeonGUI::SimpleSelector::value {}

For attribute selectors with a value.


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