ControlRuntime Module
MVU runtime tracking control focus, hover, press, caret/selection, composition, drag, and derived visual state.
Functions and values
| Function or value |
Description
|
Full Usage:
deriveVisualState model controlId
Parameters:
ControlRuntimeModel
controlId : ControlId
Returns: VisualState
|
Feature 096 (R1): the pure, total, deterministic projection from live interaction state to a single VisualState. Selects the highest-ranked runtime-derivable state for `controlId` under the fixed closed order Pressed > Selected > Focused > Hover > Normal (the runtime-derivable tail of FR-002's Disabled > Validation > Loading > Pressed > Selected > Focused > Hover > Normal). A control named by no interaction state yields `Normal`. No per-kind branching; identical inputs always yield an identical result.
|
Full Usage:
diagnostics model
Parameters:
ControlRuntimeModel
Returns: ControlDiagnostic list
|
Returns the `ControlDiagnostic` list currently accumulated in `model`.
|
|
Seeds an empty `ControlRuntimeModel` with no focus or interaction and its initial effects.
|
Full Usage:
update msg model
Parameters:
ControlRuntimeMsg
model : ControlRuntimeModel
Returns: ControlRuntimeModel * ControlRuntimeEffect list
|
Pure transition applying `msg` to `model`, returning the next model and the `ControlRuntimeEffect` list it raises.
|