MCPcopy Create free account
hub / github.com/Logicalshift/flowbetween / immediate_mode_subprogram

Function immediate_mode_subprogram

flo/src/scenery/immediate_mode.rs:95–114  ·  view source on GitHub ↗

An 'immediate mode' subprogram is one that runs in two phases: it updates some state in one phase and updates that state based on messages in another. This is a style used in libraries like egui, but is adapted here for flo_scene to support a wide range of possible interactions. This takes two functions. `update_state()` takes the previous state along with a future that receives the input for th

(
    input:          InputStream<TInput>, 
    context:        SceneContext, 
    update_state:   impl 'static + Send + Sync + for<'a> Fn(BoxFuture<'a, Option<Vec<TInput>>>, TState, SceneContext) -> 

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected