pub struct Window<'a, Pixel> { /* private fields */ }Expand description
Window object contains renderable layers and handles events
Implementations§
Source§impl<'a, Pixel> Window<'a, Pixel>
impl<'a, Pixel> Window<'a, Pixel>
Sourcepub fn new(
w: usize,
h: usize,
renderer: Option<&'a mut (dyn Renderable<Pixel> + 'a)>,
) -> Self
pub fn new( w: usize, h: usize, renderer: Option<&'a mut (dyn Renderable<Pixel> + 'a)>, ) -> Self
Create a new window for rendering
Trait Implementations§
Auto Trait Implementations§
impl<'a, Pixel> Freeze for Window<'a, Pixel>
impl<'a, Pixel> !RefUnwindSafe for Window<'a, Pixel>
impl<'a, Pixel> !Send for Window<'a, Pixel>
impl<'a, Pixel> !Sync for Window<'a, Pixel>
impl<'a, Pixel> Unpin for Window<'a, Pixel>
impl<'a, Pixel> !UnwindSafe for Window<'a, Pixel>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more