Skip to documentation
SLOP

tiny.ui.abi

Reference tiny.ui abi

Defined in tiny.ui.

Envelope namespace of extern records and closed vocabularies.

API (33)

Actions

Public operations.

Types and contracts

Public types and contracts.

Values and defaults

Public values and defaults.

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

Source

Source: lib/ui/src/abi/scalar.zig:36

zig
pub const AssetHandle = extern struct {    index: u32 = 0,    generation: u32 = 0,};

Source: lib/ui/src/abi/scalar.zig:29

zig
pub const Color = extern struct {    r: u8 = 0,    g: u8 = 0,    b: u8 = 0,    a: u8 = 0,};

Source: lib/ui/src/abi/scalar.zig:22

zig
pub const IRect = extern struct {    x: i32 = 0,    y: i32 = 0,    width: u32 = 0,    height: u32 = 0,};

Source: lib/ui/src/abi/vocabulary.zig:65

zig
/// `Flag` names bit positions in `Node.flags`.pub const Flag = enum(u4) {    focusable,    scroll_x,    scroll_y,    clip,    hidden,    presentational,    retained,    modal,    live,    selectable_text,    solved,};

Source: lib/ui/src/abi/vocabulary.zig:81

zig
/// `State` names bit positions in `Node.state`, in the same order as `css.selector.states`./// A test holds that order.pub const State = enum(u5) {    selected,    disabled,    expanded,    checked,    mixed,    pressed,    busy,    invalid,    required,    current,};

Source: lib/ui/src/abi/envelope.zig:14

zig
/// `abi_version` is 1. A publish whose header carries another value is rejected with/// `error.AbiVersionMismatch`.pub const abi_version: u32 = 1;

Source: lib/ui/src/abi/envelope.zig:188

zig
pub const header_bytes: u32 = @sizeOf(Header);

Source: lib/ui/src/abi/envelope.zig:10

zig
/// `magic` is 0x31495554. Its four bytes read "TUI1"./// A publish whose header carries another value is rejected with `error.MagicMismatch`.pub const magic: u32 = 0x31_49_55_54;

Source: lib/ui/src/abi/envelope.zig:186

zig
/// `text_absent` is 0. Entry 0 of the text table is reserved and never dereferenced./// `View.textOf` returns null for it, and the survey reads a text record only for a/// nonzero index.pub const text_absent: u32 = 0;

Source: lib/ui/src/abi/scalar.zig:50

zig
/// `atom_absent` is 0. Entry 0 of the atom table is reserved and never dereferenced. `View.text`/// returns an empty slice for it. The survey still bounds-checks its record like every other atom.pub const atom_absent: u32 = 0;

Source: lib/ui/src/abi/vocabulary.zig:115

zig
/// `active` reports whether a state word has that state's bit set.pub fn active(states: u32, value: State) bool {    return states & state(value) != 0;}
Called byCallstest sourcelib.ui.src.abi.vocabularytest: every state bit names the css p...abistateabiactive
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/ui/src/abi/vocabulary.zig:100

zig
/// `flag` returns the single bit for a `Flag`.pub fn flag(value: Flag) u16 {    return @as(u16, 1) << @backingInt(value);}
Called byCallsNo direct callsabiholdstest sourcelib.ui.src.abi.vocabularytest: a flag bit is one shift and nev...abiflag
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/ui/src/abi/vocabulary.zig:96

zig
pub const flag_count: usize = 11;

Source: lib/ui/src/abi/vocabulary.zig:120

zig
/// `flag_mask` has every defined flag bit set, 0x07FF.pub const flag_mask: u16 = (@as(u16, 1) << flag_count) - 1;

Source: lib/ui/src/abi/vocabulary.zig:110

zig
/// `holds` reports whether a flags word has that flag's bit set.pub fn holds(flags: u16, value: Flag) bool {    return flags & flag(value) != 0;}
Called byCallstest sourcelib.ui.src.abi.vocabularytest: a flag bit is one shift and nev...abiflagabiholds
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/ui/src/abi/vocabulary.zig:94

zig
pub const kind_count: usize = 7;

Source: lib/ui/src/abi/vocabulary.zig:95

zig
pub const role_count: usize = 46;

Source: lib/ui/src/abi/vocabulary.zig:105

zig
/// `state` returns the single bit for a `State`.pub fn state(value: State) u32 {    return @as(u32, 1) << @backingInt(value);}
Called byCallsNo direct callsabiactivetest sourcelib.ui.src.abi.vocabularytest: every state bit names the css p...abistate
Static calls · unresolved targets: 0 · external targets: 0.

Source: lib/ui/src/abi/vocabulary.zig:97

zig
pub const state_count: usize = 10;

Source: lib/ui/src/abi/vocabulary.zig:122

zig
/// `state_mask` has every defined state bit set, 0x03FF.pub const state_mask: u32 = (@as(u32, 1) << state_count) - 1;

Source: lib/ui/src/abi/root.zig

zig
//! Envelope namespace of extern records and closed vocabularies.//!//! Every record is an extern struct whose size and alignment are asserted at comptime.//! `Header` is 152 bytes. `Node` is 64 bytes. `magic` is 0x31495554. `abi_version` is 1.//! Closed vocabularies limit `Kind` to 7 values, `Role` to 46, `Flag` to 11, and `State` to 10.const css = @import("css");const envelope = @import("envelope.zig");const scalar = @import("scalar.zig");const vocabulary = @import("vocabulary.zig");pub const Declaration = css.value.Declaration;pub const PropertyId = css.property.Id;pub const Span = scalar.Span;pub const Rect = scalar.Rect;pub const IRect = scalar.IRect;pub const Color = scalar.Color;pub const AssetHandle = scalar.AssetHandle;pub const Atom = scalar.Atom;pub const atom_absent = scalar.atom_absent;pub const Header = envelope.Header;pub const Node = envelope.Node;pub const TextRecord = envelope.TextRecord;pub const TextRun = envelope.TextRun;pub const Relation = envelope.Relation;pub const SolvedRoot = envelope.SolvedRoot;pub const magic = envelope.magic;pub const abi_version = envelope.abi_version;pub const header_bytes = envelope.header_bytes;pub const text_absent = envelope.text_absent;pub const Kind = vocabulary.Kind;pub const Role = vocabulary.Role;pub const Flag = vocabulary.Flag;pub const State = vocabulary.State;pub const kind_count = vocabulary.kind_count;pub const role_count = vocabulary.role_count;pub const flag_count = vocabulary.flag_count;pub const state_count = vocabulary.state_count;pub const flag_mask = vocabulary.flag_mask;pub const state_mask = vocabulary.state_mask;pub const flag = vocabulary.flag;pub const state = vocabulary.state;pub const holds = vocabulary.holds;pub const active = vocabulary.active;

Source: lib/ui/src/root.zig:8

zig
pub const abi = @import("abi/root.zig");

Audit

Definitions21
Public names22
Members31
Version26.7.0
Revisiondaab053ee433