Skip to main content

Crate glory_render

Crate glory_render 

Source
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§

AnchorPlacement
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.
AnchorPosition
ButtonProps
Capabilities
CheckProps
ClipboardText
Programmatic clipboard source, not a promise that the host permits writing.
CollapseConfig
ContextPoint
Descriptor
DescriptorView
DisplayEvents
Finite event targets of one opaque display instance, not element identities.
Environment
FileCapabilities
FileChunk
One exact bounded read response, never an ambient filesystem path.
FileConfig
FileDocumentId
Distinguishes independent consumers even when they share one RuntimeId.
FileEvent
FileImageInfo
FileInfo
FilePreview
FilePreviewLimits
FileProps
FileRead
FileToken
FocusScopeConfig
FormControl
Submission metadata is separate from the accessible name. Text input values come from InputProps; Check/Button may supply an explicit successful value.
GraphicPoint
GraphicProps
One nonzero-winding path, uniformly scaled and centered in its content box. Geometry is clipped to that box. Multiple colors are separate semantic nodes.
GraphicStroke
GraphicTransition
A finite transition between compatible paths. Creation paints the endpoint; only a later accepted path replacement supplies a previous geometry.
ImageProps
InputAssist
Omitted members preserve the intrinsic Purpose hint. No actual OS keyboard or autofill service is implied; native hosts may retain these as hints.
InputEditCapture
InputProps
ItemPosition
Position in the logical collection, not in the mounted render window.
KeyboardInput
LanguageTag
Layer
LinkProps
LiveDescriptor
MenuItemSemantics
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.
OptionSemantics
Options
Process-local, typed mapping metadata. It is deliberately not a wire format.
Plan
PlanNode
ProgressValue
Read-only progress. None is indeterminate, never an invented zero value.
QueryToken
RangeValue
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
RichBlock
RichDocument
RichEditorProps
RichMarks
RichPoint
RichRun
RichSelection
RichSnapshot
RuntimeId
An application instance, independent of the selected backend.
ScrollAck
Last accepted programmatic assignment, retained on later observations so native movement before the first acknowledgement is still distinguishable.
ScrollCommand
ScrollMetrics
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.
ScrollRequest
SelectGroup
SelectOption
SelectProps
SelectSelection
SemanticId
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.
SheetConfig
SliderValue
One actual slider’s accepted configuration, separate from passive progress and separator resizing. Hosts propose changes; they do not own the value.
SpinValue
SwipeCapture
TextProps
TextSelection
TranslationMotion
TranslationOffset
TranslationPhase
Deterministic current host phase. No identities, callbacks, or history. Times are monotonic host seconds, independent from application state.
TreeItem
TreeNavigation
ViewportPlacement
A manually positioned viewport layer. Position is independent of its logical ancestors and never implies a popup anchor or a source lookup.
WeakPlan

Enums§

Action
AnchorAlign
AnchorSide
Physical viewport side; independent of document writing direction.
Change
A patch distinguishes absence, replacement and reset to the default value.
CheckMode
Finite native check semantics. Mixed preserves indeterminacy independently of the stored checked bit; Switch and Radio never expose a mixed state.
ChoiceCommand
ClipboardOutcome
ComboboxKind
ContextEditPolicy
ContextSource
Current
The current location in a related set, independent of selection or visits.
Direction
DismissReason
DocumentPart
Structural document parts are fixed for a live node’s lifetime. Groups are transparent; lists contain items and description lists contain terms/values.
DragCapture
Immediate primary-pointer capture on a boxed View. Applications provide separate semantic keyboard controls; capture does not invent a control role.
DragPhase
Error
Event
EventKind
FieldPart
Structural form content, fixed for a node’s lifetime on HTML adapters.
FileFilter
FileImageFormat
FileOrigin
FileOutcome
FilePreviewError
FileRejection
FocusMode
Host-native default, programmatic focus only, or a normal tab stop.
FormAction
The host captures requests; application policy owns validation and transport.
GraphicAnimation
A finite host-owned graphic rotation. There is no application frame task.
GridCommand
ImageStatus
Input
InputAutofill
InputEdit
InputEditIntent
InputEditRejection
InputMode
KeyboardCommand
LayerFocus
Host-managed top layer. Presence declares a focus scope; hidden controls whether it participates in the stack. Relations resolve only live names.
LayerPlacement
LinkOpen
Native links may use their current context or request a separate one. Opening a system browser remains an outer native host service.
MenuCommand
MenuItemKind
MotionPreference
Native hosts explicitly choose their preference. Unknown defaults to Reduce.
Mutation
Navigation
Logical collection navigation, independent of a host’s key codes.
NavigationPanel
NavigationPanelCommand
Orientation
Patch
PathCommand
PointerPhase
PopupKind
The popup role is one typed value, never an independent boolean flag.
Props
Purpose
Query
QueryValue
RangeCommand
Finite range proposals. Application state remains application-owned.
RichBlockKind
RichCommand
RichFormat
Role
Structural roles belong to View. Other widgets keep their intrinsic control/text/image semantics rather than impersonating unrelated widgets.
ScrollAxes
ScrollMovement
SelectEntry
SelectionDirection
SheetCommand
SortDirection
Current ordering of an explicitly sortable column header.
StrokeCap
TableMetadata
TagHostRejection
TagKey
TagSeparators
TagsCommand
TextKind
TranslationKind
TreeCheckState
TreeCommand
VirtualPart
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