public sealed class Sandbox.UI.StyleBlock
A CSS rule - ie ".chin { width: 100%; height: 100%; }"
Constructors
Showing 1 constructors
public StyleBlock()
No results match this filter.
Methods
Showing 5 methods
public virtual sealed System.Collections.Generic.List`1<Sandbox.UI.IStyleBlock.StyleProperty> GetRawValues()
Get the list of raw style values
public virtual sealed bool SetRawValue(string key, string value, string originalValue = null)
Update a raw style value
Parameters
originalValue: Default: null
public bool SetSelector(string selector, Sandbox.UI.StyleBlock parent = null)
Parameters
parent: Default: null
public Sandbox.UI.StyleSelector Test(Sandbox.UI.IStyleTarget target, Sandbox.UI.PseudoClass forceFlag = 0)
Test whether target passes our selector tests. 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)
Tests a few broadphase conditions to build a list of feasible styleblocks tailored for a panel.
No results match this filter.
Properties
Showing 5 properties
public virtual sealed string Sandbox.UI.StyleBlock.AbsolutePath { get; set; }
The absolute on disk filename for this style block (or null if not on disk)
public virtual sealed int Sandbox.UI.StyleBlock.FileLine { get; set; }
The line in the file containing this style block
public virtual sealed string Sandbox.UI.StyleBlock.FileName { get; set; }
The filename of the file containing this style block (or null if none)
public Sandbox.UI.StyleSelector[] Sandbox.UI.StyleBlock.Selectors { get; set; }
A list of appropriate selectors for this block (ie ".button")
public virtual sealed System.Collections.Generic.IEnumerable`1<string> Sandbox.UI.StyleBlock.SelectorStrings { get; set; }
A list of selectors for this block
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.UI |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.UI.StyleBlock |