struct GUIStyleSheetSelector

Determines to which GUI elements a particular style will be applied to.

Public

Constructors

GUIStyleSheetSelector

GUIStyleSheetSelector() = default

GUIStyleSheetSelector

GUIStyleSheetSelector(const String &name, GUIStyleSheetSelectorType selectorType, GUIStyleSheetCombinatorType combinatorType)

Methods

IsMatching

bool IsMatching(const GUIRenderable &element, StringView pseudoElement = "", StringView pseudoClass = "", bool ignorePseudoClass = false) const

Checks does the selector match the provided GUI element.

IsMatching

bool IsMatching(StringView elementType, StringView elementClass = "", StringView elementId = "", StringView pseudoElement = "", StringView pseudoClass = "", bool ignorePseudoClass = false) const

Checks does the selector matches a GUI element with the provided type/class/id/pseudo-element/pseudo-class.

Fields

Name

String Name

SelectorType

CombinatorType