mirror of
https://github.com/Facepunch/sbox-public.git
synced 2026-01-29 16:51:05 -05:00
This commit imports the C# engine code and game files, excluding C++ source code. [Source-Commit: ceb3d758046e50faa6258bc3b658a30c97743268]
23 lines
578 B
C#
23 lines
578 B
C#
|
|
namespace Sandbox.UI;
|
|
|
|
/// <summary>
|
|
/// Everything the style system needs to work out a style
|
|
/// </summary>
|
|
public interface IStyleTarget
|
|
{
|
|
string ElementName { get; }
|
|
string Id { get; }
|
|
PseudoClass PseudoClass { get; }
|
|
IStyleTarget Parent { get; }
|
|
IReadOnlyList<IStyleTarget> Children { get; }
|
|
int SiblingIndex { get; }
|
|
|
|
bool HasClasses( string[] classes );
|
|
|
|
/// <summary>
|
|
/// Returns true if this is ::before or ::after
|
|
/// </summary>
|
|
internal bool IsBeforeOrAfter => PseudoClass.Contains( PseudoClass.Before ) || PseudoClass.Contains( PseudoClass.After );
|
|
}
|