API ReferenceSandbox.UI
public sealed class Sandbox.UI.StyleSelector
A CSS selector like "Panel.button.red:hover .text"
Constructors
Showing 1 constructors
public StyleSelector()
No results match this filter.
Methods
Showing 4 methods
public void Finalize(Sandbox.UI.StyleBlock block)
public bool Test(Sandbox.UI.IStyleTarget target, Sandbox.UI.PseudoClass forceFlag = 0)
Test whether target passes our selector test. We use forceFlag to do alternate tests for flags like ::before and ::after. It's basically added to the target's pseudo class list for the test.
Parameters
forceFlag: Default: 0
public bool TestBroadphase(Sandbox.UI.IStyleTarget target)
public bool TestParent(Sandbox.UI.IStyleTarget target, bool recusive = True)
Parameters
recusive: Default: True
No results match this filter.
Properties
Showing 3 properties
public string[] Sandbox.UI.StyleSelector.Classes { get; set; }
public string Sandbox.UI.StyleSelector.Id { get; set; }
The Id selector - minus the # https://developer.mozilla.org/en-US/docs/Web/CSS/ID_selectors
public int Sandbox.UI.StyleSelector.Score { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.UI |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.UI.StyleSelector |