pub trait CustomWindow: 'static {
    type Param;

    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

User parameter type

Required Methods

Invoke user-defined custom routine

Custom add-primitives / update function called from user code by DrawCustom::custom.

Implementations on Foreign Types

A dummy implementation (does nothing)

Implementors