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

Method with_icon_binding

flo/src/scenery/tools/tool.rs:104–118  ·  view source on GitHub ↗

Defines the icon using a binding program, which can use `flo_binding` values to update the icon drawn for the tool (eg, updating the colour for the colour tool)

(mut self, icon_binding: impl 'static + Send + Sync + Fn(&Arc<Mutex<TToolData>>) -> Vec<Draw>)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 2

boxedMethod · 0.80
cloneMethod · 0.45

Tested by

no test coverage detected