class EE::UI::CSS::StyleSheetSelectorRule¶
#include <stylesheetselectorrule.hpp> class StyleSheetSelectorRule { public: // enums enum PatternMatch; enum PseudoClasses; enum SelectorType; enum SpecificityVal; enum TypeIdentifier; // fields static constexpr auto PseudoClassesTotal = 6; // construction StyleSheetSelectorRule(const std::string& selectorFragment, PatternMatch mPatternMatch); // methods static PseudoClasses toPseudoClass(std::string_view cls); static std::vector<const char*> fromPseudoClass(Uint32 cls); void pushSelectorTypeIdentifier(TypeIdentifier selectorTypeIdentifier, std::string name); void parseFragment(const std::string& selectorFragment); const PatternMatch& getPatternMatch() const; const int& getSpecificity() const; bool matches(UIWidget* element, const bool& applyPseudo = true) const; bool hasClass(const std::string& cls) const; bool hasPseudoClasses() const; bool hasPseudoClass(const std::string& cls) const; Uint32 getPseudoClasses() const; bool hasStructuralPseudoClasses() const; const std::vector<std::string>& getStructuralPseudoClasses() const; bool hasStructuralPseudoClass(const std::string& cls) const; const std::string& getTagName() const; const std::string& getId() const; };