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§
Sourcefn new(
device: &Device,
config: &SurfaceConfiguration,
chart_data: ChartData,
) -> Selfwhere
Self: Sized,
fn new(
device: &Device,
config: &SurfaceConfiguration,
chart_data: ChartData,
) -> Selfwhere
Self: Sized,
Create a new renderer for window context
Sourcefn update_data(&mut self, device: &Device, chart_data: &ChartData)
fn update_data(&mut self, device: &Device, chart_data: &ChartData)
Update the chart data