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
sourceimpl 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
sourceimpl Drop for WindowContext
impl Drop for WindowContext
sourceimpl From<WindowContext> for Window
impl From<WindowContext> for Window
sourcefn from(context: WindowContext) -> Window
fn from(context: WindowContext) -> Window
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for WindowContext
impl !Send for WindowContext
impl !Sync for WindowContext
impl Unpin for WindowContext
impl UnwindSafe for WindowContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more