Skip to documentation
SLOP

tiny.css.StyleSheet

Reference tiny.css StyleSheet

Defined in sheet.

A parsed stylesheet.

API (9)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callssheetStyleSheet
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/css/src/sheet.zig:61

zig
/// A parsed stylesheet. Every slice borrows from one placement and from the/// caller owned source bytes.pub const StyleSheet = struct {    source: []const u8 = &.{},    rules: []const Rule = &.{},    diagnostics: []const []const u8 = &.{},    atoms: atom.Table = .{ .records = &.{}, .slots = &.{}, .arena = &.{} },    classes: []const u32 = &.{},    nths: []const selector.nth.Nth = &.{},    /// The atom this sheet gave `text`, or `atom.none` when no selector in the    /// sheet named it. A consumer resolves its element tags through this once.    pub fn token(self: *const StyleSheet, text: []const u8) u32 {        return self.atoms.lookup(text);    }    /// The text behind an atom this sheet interned.    pub fn name(self: *const StyleSheet, id: u32) []const u8 {        return self.atoms.name(id);    }    /// The matching context the selector engine reads for this sheet.    pub fn context(self: *const StyleSheet) matching.Context {        return .{ .classes = self.classes, .nths = self.nths };    }};

Source: lib/css/src/root.zig:57

zig
pub const StyleSheet = sheet.StyleSheet;
Called byCallsNo direct callersatom.TablenameStyleSheetname
Static calls · unresolved targets: 0 · external targets: 0.
Called byCallsNo direct callersatom.TablelookupStyleSheettoken
Static calls · unresolved targets: 0 · external targets: 0.

Audit

Definitions4
Public names8
Members6
Version26.7.0
Revisiondaab053ee433