Logo FS-Skia-UI

ControlRuntime Module

MVU runtime tracking control focus, hover, press, caret/selection, composition, drag, and derived visual state.

Functions and values

Function or value Description

deriveVisualState model controlId

Full Usage: deriveVisualState model controlId

Parameters:
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.

model : ControlRuntimeModel
controlId : ControlId
Returns: VisualState

diagnostics model

Full Usage: diagnostics model

Parameters:
Returns: ControlDiagnostic list

Returns the `ControlDiagnostic` list currently accumulated in `model`.

model : ControlRuntimeModel
Returns: ControlDiagnostic list

init ()

Full Usage: init ()

Parameters:
    () : unit

Returns: ControlRuntimeModel * ControlRuntimeEffect list

Seeds an empty `ControlRuntimeModel` with no focus or interaction and its initial effects.

() : unit
Returns: ControlRuntimeModel * ControlRuntimeEffect list

update msg model

Full Usage: update msg model

Parameters:
Returns: ControlRuntimeModel * ControlRuntimeEffect list

Pure transition applying `msg` to `model`, returning the next model and the `ControlRuntimeEffect` list it raises.

msg : ControlRuntimeMsg
model : ControlRuntimeModel
Returns: ControlRuntimeModel * ControlRuntimeEffect list

Type something to start searching.