neoGFX
Cross-platform C++ app/game engine
|
#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< element > | optional_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_type > | value_type |
Public Member Functions | |
selector (type_e aType, const arguments_type &aArguments=arguments_type()) | |
type_e | type () const |
const arguments_type & | arguments () const |
typedef std::variant<std::monostate, std::string, std::pair<pseudo_class_e, pseudo_class_argument> > neogfx::css::selector::argument |
typedef neolib::vecarray<argument, 4, -1> neogfx::css::selector::arguments_type |
typedef std::string neogfx::css::selector::element |
typedef std::optional<element> neogfx::css::selector::optional_element |
typedef std::variant<std::monostate, std::string> neogfx::css::selector::pseudo_class_argument |
typedef std::pair<type_e, arguments_type> neogfx::css::selector::value_type |
neogfx::css::selector::selector | ( | type_e | aType, |
const arguments_type & | aArguments = arguments_type() |
||
) |
const arguments_type & neogfx::css::selector::arguments | ( | ) | const |
type_e neogfx::css::selector::type | ( | ) | const |