API ReferenceSandbox.UI
StyleSelectorclass
A CSS selector like "Panel.button.red:hover .text"
object→StyleSelector
Constructors1
Showing 1 constructors
public StyleSelector()
No results match this filter.
Methods4
Showing 4 methods
public void Finalize(Sandbox.UI.StyleBlock block)
| Parameter | Type | Description |
|---|---|---|
| block | StyleBlock | — |
Returns:
void—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.
| Parameter | Type | Description |
|---|---|---|
| target | IStyleTarget | — |
| forceFlag = 0 | PseudoClass | — |
Returns:
bool—public bool TestBroadphase(Sandbox.UI.IStyleTarget target)
| Parameter | Type | Description |
|---|---|---|
| target | IStyleTarget | — |
Returns:
bool—public bool TestParent(Sandbox.UI.IStyleTarget target, bool recusive = True)
| Parameter | Type | Description |
|---|---|---|
| target | IStyleTarget | — |
| recusive = True | bool | — |
Returns:
bool—No results match this filter.
Properties3
Showing 3 properties
public string[] Sandbox.UI.StyleSelector.Classes { get; set; }
Returns:
string[]—public string Sandbox.UI.StyleSelector.Id { get; set; }
The Id selector - minus the # https://developer.mozilla.org/en-US/docs/Web/CSS/ID_selectors
Returns:
string—public int Sandbox.UI.StyleSelector.Score { get; set; }
Returns:
int—No results match this filter.