Struct sdl2::video::WindowContext
source · pub struct WindowContext { /* private fields */ }
Expand description
Holds a SDL_Window
When the WindowContext
is dropped, it destroys the SDL_Window
Implementations§
source§impl WindowContext
impl WindowContext
sourcepub unsafe fn from_ll(
subsystem: VideoSubsystem,
raw: *mut SDL_Window,
) -> WindowContext
pub unsafe fn from_ll( subsystem: VideoSubsystem, raw: *mut SDL_Window, ) -> WindowContext
Unsafe if the *mut SDL_Window
is used after the WindowContext
is dropped
Trait Implementations§
source§impl Drop for WindowContext
impl Drop for WindowContext
source§impl From<WindowContext> for Window
impl From<WindowContext> for Window
source§fn from(context: WindowContext) -> Window
fn from(context: WindowContext) -> Window
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WindowContext
impl RefUnwindSafe for WindowContext
impl !Send for WindowContext
impl !Sync for WindowContext
impl Unpin for WindowContext
impl UnwindSafe for WindowContext
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