WindowRenderer

Trait WindowRenderer 

Source
pub trait WindowRenderer: Renderer {
    // Required methods
    fn new(
        device: &Device,
        config: &SurfaceConfiguration,
        chart_data: ChartData,
    ) -> Self
       where Self: Sized;
    fn update_data(&mut self, device: &Device, chart_data: &ChartData);
}
Expand description

WindowRenderer trait - specialized for native window contexts (e.g., Python bindings)

Use this when:

  • Creating desktop applications with native windows
  • You have direct access to device/queue/surface
  • You want simple, self-contained rendering

Required Methods§

Source

fn new( device: &Device, config: &SurfaceConfiguration, chart_data: ChartData, ) -> Self
where Self: Sized,

Create a new renderer for window context

Source

fn update_data(&mut self, device: &Device, chart_data: &ChartData)

Update the chart data

Implementors§