Expand description
A finite semantic UI contract. No HTML tags, engine types or reactive handles. Rendering adapters translate this contract into their own objects and ranges.
Re-exports§
pub use glory_style as style;
Modules§
- memory
- Reference semantics for adapters. This interpreter performs no layout/paint. It stores live objects and one generation watermark per allocated slot. Child sequences separately bound their unread numeric prefixes.
- profile
- Opt-in, fixed-size inclusive phase measurements. No event/row/frame history.
Structs§
- Anchor
Placement - Finite anchored-layer policy, in viewport CSS pixels. Flip compares the requested and opposite side; shift clamps both axes to viewport padding. Neither policy changes the declared side or the logical anchor relation.
- Anchor
Position - Button
Props - Capabilities
- Check
Props - Clipboard
Text - Programmatic clipboard source, not a promise that the host permits writing.
- Collapse
Config - Context
Point - Descriptor
- Descriptor
View - Display
Events - Finite event targets of one opaque display instance, not element identities.
- Environment
- File
Capabilities - File
Chunk - One exact bounded read response, never an ambient filesystem path.
- File
Config - File
Document Id - Distinguishes independent consumers even when they share one RuntimeId.
- File
Event - File
Image Info - File
Info - File
Preview - File
Preview Limits - File
Props - File
Read - File
Token - Focus
Scope Config - Form
Control - Submission metadata is separate from the accessible name. Text input values come from InputProps; Check/Button may supply an explicit successful value.
- Graphic
Point - Graphic
Props - One nonzero-winding path, uniformly scaled and centered in its content box. Geometry is clipped to that box. Multiple colors are separate semantic nodes.
- Graphic
Stroke - Graphic
Transition - A finite transition between compatible paths. Creation paints the endpoint; only a later accepted path replacement supplies a previous geometry.
- Image
Props - Input
Assist - Omitted members preserve the intrinsic Purpose hint. No actual OS keyboard or autofill service is implied; native hosts may retain these as hints.
- Input
Edit Capture - Input
Props - Item
Position - Position in the logical collection, not in the mounted render window.
- Keyboard
Input - Language
Tag - Layer
- Link
Props - Live
Descriptor - Menu
Item Semantics - Finite intrinsic-control refinement. Owner is a named Menu View, also used to keep menu check controls outside any enclosing successful form controls.
- NodeId
- A logical presentation identity, never a DOM node or hydration address.
- NodeIds
- Reusable identities with bounded storage. Exhausted generations are retired, never wrapped, so an old event cannot address a new object in the same slot.
- NodeMap
- A single-runtime index with at most one live identity per numeric slot. Callers validate creation/generation watermarks before insertion. Every read and removal compares the complete identity, including runtime/generation.
- Option
Semantics - Options
- Process-local, typed mapping metadata. It is deliberately not a wire format.
- Plan
- Plan
Node - Progress
Value - Read-only progress.
Noneis indeterminate, never an invented zero value. - Query
Token - Range
Value - A finite, inclusive numeric position in a nonempty range.
- Receipt
- Applying nodes does not imply pixels have been displayed. Successful nonempty apply calls strictly advance this renderer-local watermark; empty calls preserve it. It is not a displayed-frame sequence.
- Rect
- Rich
Block - Rich
Document - Rich
Editor Props - Rich
Marks - Rich
Point - RichRun
- Rich
Selection - Rich
Snapshot - Runtime
Id - An application instance, independent of the selected backend.
- Scroll
Ack - Last accepted programmatic assignment, retained on later observations so native movement before the first acknowledgement is still distinguishable.
- Scroll
Command - Scroll
Metrics - Logical pixels at one accepted query watermark. Native/browser offsets can be negative (RTL/elastic scrolling); dimensions are finite and nonnegative. Content dimensions are independent and need not exceed viewport dimensions.
- Scroll
Request - Select
Group - Select
Option - Select
Props - Select
Selection - Semantic
Id - Semantics
- Optional and finite: ordinary nodes allocate none of this metadata. Named relations may refer forward or to an unmounted target; adapters resolve only live names in their document. Removing a target retains no owning reference.
- Sheet
Config - Slider
Value - One actual slider’s accepted configuration, separate from passive progress and separator resizing. Hosts propose changes; they do not own the value.
- Spin
Value - Swipe
Capture - Text
Props - Text
Selection - Translation
Motion - Translation
Offset - Translation
Phase - Deterministic current host phase. No identities, callbacks, or history. Times are monotonic host seconds, independent from application state.
- Tree
Item - Tree
Navigation - Viewport
Placement - A manually positioned viewport layer. Position is independent of its logical ancestors and never implies a popup anchor or a source lookup.
- Weak
Plan
Enums§
- Action
- Anchor
Align - Anchor
Side - Physical viewport side; independent of document writing direction.
- Change
- A patch distinguishes absence, replacement and reset to the default value.
- Check
Mode - Finite native check semantics. Mixed preserves indeterminacy independently of the stored checked bit; Switch and Radio never expose a mixed state.
- Choice
Command - Clipboard
Outcome - Combobox
Kind - Context
Edit Policy - Context
Source - Current
- The current location in a related set, independent of selection or visits.
- Direction
- Dismiss
Reason - Document
Part - Structural document parts are fixed for a live node’s lifetime. Groups are transparent; lists contain items and description lists contain terms/values.
- Drag
Capture - Immediate primary-pointer capture on a boxed View. Applications provide separate semantic keyboard controls; capture does not invent a control role.
- Drag
Phase - Error
- Event
- Event
Kind - Field
Part - Structural form content, fixed for a node’s lifetime on HTML adapters.
- File
Filter - File
Image Format - File
Origin - File
Outcome - File
Preview Error - File
Rejection - Focus
Mode - Host-native default, programmatic focus only, or a normal tab stop.
- Form
Action - The host captures requests; application policy owns validation and transport.
- Graphic
Animation - A finite host-owned graphic rotation. There is no application frame task.
- Grid
Command - Image
Status - Input
- Input
Autofill - Input
Edit - Input
Edit Intent - Input
Edit Rejection - Input
Mode - Keyboard
Command - Layer
Focus - Host-managed top layer. Presence declares a focus scope;
hiddencontrols whether it participates in the stack. Relations resolve only live names. - Layer
Placement - Link
Open - Native links may use their current context or request a separate one. Opening a system browser remains an outer native host service.
- Menu
Command - Menu
Item Kind - Motion
Preference - Native hosts explicitly choose their preference. Unknown defaults to Reduce.
- Mutation
- Navigation
- Logical collection navigation, independent of a host’s key codes.
- Navigation
Panel - Navigation
Panel Command - Orientation
- Patch
- Path
Command - Pointer
Phase - Popup
Kind - The popup role is one typed value, never an independent boolean flag.
- Props
- Purpose
- Query
- Query
Value - Range
Command - Finite range proposals. Application state remains application-owned.
- Rich
Block Kind - Rich
Command - Rich
Format - Role
- Structural roles belong to View. Other widgets keep their intrinsic control/text/image semantics rather than impersonating unrelated widgets.
- Scroll
Axes - Scroll
Movement - Select
Entry - Selection
Direction - Sheet
Command - Sort
Direction - Current ordering of an explicitly sortable column header.
- Stroke
Cap - Table
Metadata - TagHost
Rejection - TagKey
- TagSeparators
- Tags
Command - Text
Kind - Translation
Kind - Tree
Check State - Tree
Command - Virtual
Part - Optional windowed-view metadata. Engines can show a flow preview before geometry is available without changing logical ownership or identity.
Constants§
- MAX_
CELL_ HEADERS - MAX_
CLIPBOARD_ BYTES - MAX_
COLLAPSE_ MILLIS - MAX_
FILE_ BYTES - MAX_
FILE_ CHUNK_ BYTES - MAX_
FILE_ COUNT - MAX_
FILE_ FILTERS - MAX_
FILE_ FILTER_ BYTES - MAX_
FILE_ HEADER_ BYTES - MAX_
FILE_ METADATA_ BYTES - MAX_
FILE_ MIME_ BYTES - MAX_
FILE_ NAME_ BYTES - MAX_
FILE_ READS - MAX_
FOCUS_ SCOPES - MAX_
FOCUS_ SCOPE_ NODES - MAX_
GRAPHIC_ COMMANDS - MAX_
GRAPHIC_ COORDINATE - MAX_
INPUT_ EDIT_ BYTES - MAX_
INPUT_ PLACEHOLDER_ BYTES - MAX_
PLAN_ NODES - MAX_
PREVIEW_ DIMENSION - MAX_
PREVIEW_ ENCODED_ BYTES - MAX_
PREVIEW_ PIXELS - MAX_
RICH_ BLOCKS - MAX_
RICH_ LINK_ BYTES - MAX_
RICH_ METADATA_ BYTES - MAX_
RICH_ RUNS - MAX_
RICH_ TEXT_ BYTES - MAX_
SELECT_ BYTES - MAX_
SELECT_ GROUPS - MAX_
SELECT_ OPTIONS - MAX_
SHEET_ SNAPS - MAX_
TABLE_ SPAN - MAX_
TAG_ INPUT_ BYTES - MAX_
TAG_ PASTE_ BYTES - MAX_
TRANSLATION_ COORDINATE - MAX_
TYPEAHEAD_ MILLIS
Traits§
- Render
- Local calls are typed and require no serialization. Each request observes every preceding successful apply; adapters must not coalesce across requests. A response carries the watermark at request acceptance, even if delivered after later commits. Capture results at that barrier, not from a newer tree. Errors may leave an applied prefix; adapters do not promise rollback.
Functions§
- inspect_
file_ preview - normalize_
text - Canonical editable text: CRLF/CR become LF in multiline controls, line breaks are removed from single-line host input, and NUL becomes U+FFFD. Programmatic single-line values must reject line breaks before calling this. Already canonical text is borrowed without an allocation.
- validate_
input_ placeholder - Validate a presentation hint without rewriting an editor’s business value.
- validate_
typeahead