WindowCanvas

Type Alias WindowCanvas 

Source
pub type WindowCanvas = Canvas<Window, WindowContext>;
Expand description

A Canvas that renders to a Window on the screen.

Aliased Type§

pub struct WindowCanvas { /* private fields */ }

Implementations§

Source§

impl WindowCanvas

Source

pub fn new(inner: SdlCanvas<Window>) -> Self

Create a new Canvas from the specified sdl2 WindowCanvas that draws to a window on the screen