pub trait CustomWindow: 'static {
type Param;
// Required method
fn invoke(&mut self, pass: PassId, rect: Rect, param: Self::Param);
}
Expand description
Per-window state for a custom draw pipe
One instance is constructed per window. Since the CustomPipe
is not
accessible during a widget’s kas::Layout::draw
calls, this struct must
batch per-frame draw data.
Required Associated Types§
Required Methods§
Implementations on Foreign Types§
Source§impl CustomWindow for ()
A dummy implementation (does nothing)
impl CustomWindow for ()
A dummy implementation (does nothing)