class
GUIStyleSheetCascade
Contains a set of multiple style sheets, sorted by importance.
Public
Methods
BuildRules
Same as GUIStyleSheet::BuildRules(const GUIRenderable & , StringView, StringView, const GUIStyleSheetRules*), except it gathers rules for all style sheets in the cascade.
BuildRules
Same as GUIStyleSheet::BuildRuleset(StringView, StringView, StringView, StringView, StringView, const GUIStyleSheetRules*), except it gathers rules for all style sheets in the cascade.
BuildStateRulesets
Same as GUIStyleSheet::BuildStateRulesets(const GUIRenderable & , StringView), except it gathers rules for all style sheets in the cascade.
HasRulesetForClass
Checks if the cascade has any style sheets with a ruleset for this particular class.
- elementClass
- Class name to check.
- elementType
- Optional name of the GUI element type. If not empty, only classes matching this element will be considered.
Returns: True if there is at least one ruleset for the class.
RegisterStyleSheet
Registers a new style sheet in the cascade.
- styleSheet
- Style sheet to register.
- importance
- Style sheets with higher importance will override style sheet rules from ones with lower importance.
Private
Fields
mStyleSheets
mCachedStateRulesets
Cached state rulesets to avoid re-building them on every call.