#[repr(C)]pub struct Window<'a, UserData = ()> { /* private fields */ }
Implementations§
source§impl<'a, UserData> Window<'a, UserData>
impl<'a, UserData> Window<'a, UserData>
pub fn schedule_window_destruction(&mut self)
pub fn on_window_close<F: FnMut(&mut WWindState<UserData>, &mut Window<'_, UserData>) + 'static>( &mut self, closure: F )
pub fn on_redraw<F: FnMut(&mut WWindState<UserData>, &mut Window<'_, UserData>, RectRegion) + 'static>( &mut self, closure: F )
pub fn on_keydown<F: FnMut(&mut WWindState<UserData>, &mut Window<'_, UserData>, u32) + 'static>( &mut self, closure: F )
pub fn get_drawing_context(&mut self) -> DrawingContext<'_>
pub fn get_size(&self) -> (u16, u16)
Auto Trait Implementations§
impl<'a, UserData> RefUnwindSafe for Window<'a, UserData>where UserData: RefUnwindSafe,
impl<'a, UserData = ()> !Send for Window<'a, UserData>
impl<'a, UserData = ()> !Sync for Window<'a, UserData>
impl<'a, UserData> Unpin for Window<'a, UserData>where UserData: Unpin,
impl<'a, UserData> UnwindSafe for Window<'a, UserData>where UserData: UnwindSafe,
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