Skip to main content

NodeDrawClosure

Type Alias NodeDrawClosure 

Source
pub type NodeDrawClosure = Rc<dyn Fn(&mut DrawScopeDefault)>;
Expand description

A deferred draw closure returned by DrawModifierNode::create_draw_closure: it records into a scope the renderer provides at render time, so the recording’s identity stays with the consumer rather than with a closure-owned vector.

Aliased Type§

pub struct NodeDrawClosure { /* private fields */ }