Scripting API

Scripting API

SheetRule

Record in Abyss.Core, from Abyss.Core.

A rule of a stylesheet, as the Style Sheets panel lists it.

public record SheetRule

Constructors

SheetRule

public SheetRule(string Selector, SheetRuleKind Kind, int Depth, int Line, bool Valid, IReadOnlyList<SheetDeclaration> Declarations)

A rule of a stylesheet, as the Style Sheets panel lists it.

Parameters

  • Selector: Its selector as written, or a group's or another at-rule's with its name.
  • Kind: What it is.
  • Depth: How many groups and rules it is in.
  • Line: The line its selector is on, from one.
  • Valid: Whether bevy_flair reads its selector; one it refuses is skipped as the sheet is read.
  • Declarations: Its own declarations, in order.

Properties

Selector

public string Selector { get; init; }

Its selector as written, or a group's or another at-rule's with its name.

Kind

public SheetRuleKind Kind { get; init; }

What it is.

Depth

public int Depth { get; init; }

How many groups and rules it is in.

Line

public int Line { get; init; }

The line its selector is on, from one.

Valid

public bool Valid { get; init; }

Whether bevy_flair reads its selector; one it refuses is skipped as the sheet is read.

Declarations

public IReadOnlyList<SheetDeclaration> Declarations { get; init; }

Its own declarations, in order.