[][src]Trait kas_wgpu::draw::CustomWindow

pub trait CustomWindow {
    type Param;
    fn invoke(&mut self, pass: Pass, rect: Rect, param: Self::Param);
}

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.

Associated Types

type Param

User parameter type

Loading content...

Required methods

fn invoke(&mut self, pass: Pass, rect: Rect, param: Self::Param)

Invoke user-defined custom routine

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

Loading content...

Implementations on Foreign Types

impl CustomWindow for ()[src]

A dummy implementation (does nothing)

type Param = Void

Loading content...

Implementors

Loading content...