s&box docs
API ReferenceSandbox.UI

public sealed class Sandbox.UI.StyleSelector

A CSS selector like "Panel.button.red:hover .text"

Constructors

Showing 1 constructors

Methods

Showing 4 methods

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 TestParent(Sandbox.UI.IStyleTarget target, bool recusive = True)

Parameters

  • recusive: Default: True

Properties

Showing 3 properties

public string Sandbox.UI.StyleSelector.Id { get; set; }

The Id selector - minus the # https://developer.mozilla.org/en-US/docs/Web/CSS/ID_selectors

Metadata

FieldValue
NamespaceSandbox.UI
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.UI.StyleSelector

On this page