neoGFX
Cross-platform C++ app/game engine
Loading...
Searching...
No Matches
neogfx::css::selector Class Reference

#include <css.hpp>

Public Types

enum  type_e {
  Universal , Type , Descendant , Child ,
  AdjacentSibling , GeneralSibling , Class , ID ,
  SimpleAttribute , ExactAttributeValue , PartialAttributeValue , BeginniingSubstringAttributeValue ,
  EndingSubstringAttributeValue , ArbitrarySubstringAttributeValue , LanguageAttribute
}
 
enum  pseudo_class_e {
  Empty , FirstChild , FirstOfType , Lang ,
  LastChild , LastOfType , NthChild , NthLastChild ,
  NthLastOfType , NthOfType , OnlyChild , OnlyOfType ,
  Root , Not , Active , Checked ,
  Disabled , Enabled , Focus , Hover ,
  Link , Target , Visited
}
 
typedef std::string element
 
typedef std::optional< elementoptional_element
 
typedef std::variant< std::monostate, std::string > pseudo_class_argument
 
typedef std::variant< std::monostate, std::string, std::pair< pseudo_class_e, pseudo_class_argument > > argument
 
typedef neolib::vecarray< argument, 4, -1 > arguments_type
 
typedef std::pair< type_e, arguments_typevalue_type
 

Public Member Functions

 selector (type_e aType, const arguments_type &aArguments=arguments_type())
 
type_e type () const
 
const arguments_typearguments () const
 

Detailed Description

Definition at line 32 of file css.hpp.

Member Typedef Documentation

◆ argument

typedef std::variant<std::monostate, std::string, std::pair<pseudo_class_e, pseudo_class_argument> > neogfx::css::selector::argument

Definition at line 85 of file css.hpp.

◆ arguments_type

Definition at line 86 of file css.hpp.

◆ element

typedef std::string neogfx::css::selector::element

Definition at line 35 of file css.hpp.

◆ optional_element

Definition at line 36 of file css.hpp.

◆ pseudo_class_argument

typedef std::variant<std::monostate, std::string> neogfx::css::selector::pseudo_class_argument

Definition at line 84 of file css.hpp.

◆ value_type

Definition at line 87 of file css.hpp.

Member Enumeration Documentation

◆ pseudo_class_e

Enumerator
Empty 
FirstChild 
FirstOfType 
Lang 
LastChild 
LastOfType 
NthChild 
NthLastChild 
NthLastOfType 
NthOfType 
OnlyChild 
OnlyOfType 
Root 
Not 
Active 
Checked 
Disabled 
Enabled 
Focus 
Hover 
Link 
Target 
Visited 

Definition at line 55 of file css.hpp.

◆ type_e

Enumerator
Universal 
Type 
Descendant 
Child 
AdjacentSibling 
GeneralSibling 
Class 
ID 
SimpleAttribute 
ExactAttributeValue 
PartialAttributeValue 
BeginniingSubstringAttributeValue 
EndingSubstringAttributeValue 
ArbitrarySubstringAttributeValue 
LanguageAttribute 

Definition at line 37 of file css.hpp.

Constructor & Destructor Documentation

◆ selector()

neogfx::css::selector::selector ( type_e  aType,
const arguments_type aArguments = arguments_type() 
)

Member Function Documentation

◆ arguments()

const arguments_type & neogfx::css::selector::arguments ( ) const

◆ type()

type_e neogfx::css::selector::type ( ) const

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