class EE::UI::CSS::StyleSheetSelector

Overview

#include <stylesheetselector.hpp>

class StyleSheetSelector {
public:
    // construction

    StyleSheetSelector();
    StyleSheetSelector(const std::string& selectorName);

    // methods

    const std::string& getName() const;
    const Int64& getSpecificity() const;
    void setSpecificity(const Int64& specificity);
    bool select(UIWidget* element, const bool& applyPseudo = true) const;
    bool isCacheable() const;
    bool hasPseudoClasses() const;
    SmallVector<UIWidget*, 8> getRelatedElements(UIWidget* element, bool applyPseudo = true) const;
    bool isStructurallyVolatile() const;
    const StyleSheetSelectorRule& getRule(const Uint32& index) const;
    const std::string& getSelectorId() const;
    const std::string& getSelectorTagName() const;
};

Detailed Documentation

Methods

SmallVector<UIWidget*, 8> getRelatedElements(UIWidget* element, bool applyPseudo = true) const

Returns:

The elements other than the subject whose pseudo-class state can change whether this selector matches element: the union of the tracked compounds over every matching path, each element once. Empty when the selector does not match.