tiny.ui.Node
Defined in tiny.ui.
Node is one 64 byte record.
API (17)
Fields and members
Public fields and members.
actionclass_countclass_firstdeclaration_countdeclaration_firstflagsfocus_orderididentifierkindnameparentrevisionrolestatesubtree_counttext
Source
Source: lib/ui/src/abi/envelope.zig:52
zig
/// `Node` is one 64 byte record. Nodes sit in one flat array in preorder.pub const Node = extern struct { /// `Node.id` must be unique within one publish, or `error.DuplicateNodeId`. /// The splice finds a retained node by this id. id: u64 = 0, /// `Node.revision` stamps the content of the node's whole subtree. /// The splice compares `Node.revision` with the revision of the retained node /// that has the same `id`. The comparison is for equality only, never for order. /// A producer that changes a descendant must also change the revision of every ancestor. revision: u64 = 0, /// `Node.parent` is the array index of the parent. The root stores 0, or the publish is /// rejected with `error.RootParentMismatch`. The parent must be the nearest enclosing /// ancestor, or `error.ParentNotAncestor`. parent: u32 = 0, /// `Node.subtree_count` is the number of descendants. /// They occupy the next `subtree_count` entries of the array. subtree_count: u32 = 0, /// `Node.identifier` is an index into the atom table, and 0 means absent. identifier: u32 = 0, declaration_first: u32 = 0, /// `Node.class_first` is the index of the node's first entry in the class table. /// Each entry is an atom index. class_first: u32 = 0, /// `Node.text` is an index into the text table, and 0 means absent. text: u32 = 0, /// `Node.name` is an index into the atom table, and 0 means absent. name: u32 = 0, /// `Node.action` is an index into the atom table, and 0 means absent. action: u32 = 0, declaration_count: u16 = 0, /// `Node.class_count` is the number of the node's entries in the class table. class_count: u16 = 0, /// `Node.kind` holds a `Kind`. kind: u16 = 0, /// `Node.role` holds a `Role`. role: u16 = 0, /// `Node.flags` holds the bits of `Flag`. flags: u16 = 0, focus_order: u16 = 0, /// `Node.state` holds the bits of `State`. state: u32 = 0,};Source: lib/ui/src/root.zig:20
zig
pub const Node = abi.Node;Also reachable as
Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 17 |
| Version | 26.7.0 |
| Revision | daab053ee433 |